Skip to content

Commit

Permalink
Bug 2221488: monitoring: enable exporter for downstream 4.14
Browse files Browse the repository at this point in the history
All regression for ceph-exporter are fixed in downstream Ceph v6.1z2,
so enabling the exporter again.
Signed-off-by: avanthakkar <avanjohn@gmail.com>
  • Loading branch information
avanthakkar committed Aug 8, 2023
1 parent 0f51b52 commit 0b9cb2c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions pkg/operator/ceph/cluster/nodedaemon/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,11 @@ const (
)

var (
MinVersionForCephExporter = cephver.CephVersion{Major: 18, Minor: 0, Extra: 0}
MinVersionForCephExporter = cephver.CephVersion{Major: 17, Minor: 2, Extra: 6}
)

// createOrUpdateCephExporter is a wrapper around controllerutil.CreateOrUpdate
func (r *ReconcileNode) createOrUpdateCephExporter(node corev1.Node, tolerations []corev1.Toleration, cephCluster cephv1.CephCluster, cephVersion *cephver.CephVersion) (controllerutil.OperationResult, error) {
// CephVersion change is done temporarily, as some regression was detected in Ceph version 17.2.6 which is summarised here https://github.com/ceph/ceph/pull/50718#issuecomment-1505608312.
// Thus, disabling ceph-exporter for now until all the regression are fixed.
if !cephVersion.IsAtLeast(MinVersionForCephExporter) {
logger.Infof("Skipping exporter reconcile on ceph version %q", cephVersion.String())
return controllerutil.OperationResultNone, nil
Expand Down
2 changes: 1 addition & 1 deletion pkg/operator/ceph/cluster/nodedaemon/exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func TestCreateOrUpdateCephExporter(t *testing.T) {
}
cephCluster.Spec.Labels = cephv1.LabelsSpec{}
cephCluster.Spec.PriorityClassNames = cephv1.PriorityClassNamesSpec{}
cephVersion := &cephver.CephVersion{Major: 18, Minor: 0, Extra: 0}
cephVersion := &cephver.CephVersion{Major: 17, Minor: 2, Extra: 6}
ctx := context.TODO()
context := &clusterd.Context{
Clientset: test.New(t, 1),
Expand Down
2 changes: 0 additions & 2 deletions pkg/operator/ceph/cluster/nodedaemon/reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,6 @@ func (r *ReconcileNode) createOrUpdateNodeDaemons(node corev1.Node, tolerations
return errors.Wrapf(err, "ceph exporter reconcile failed on op %q", op)
}
} else {
// CephVersion change is done temporarily, as some regression was detected in Ceph version 17.2.6 which is summarised here https://github.com/ceph/ceph/pull/50718#issuecomment-1505608312.
// Thus, disabling ceph-exporter for now until all the regression are fixed.
if cephVersion.IsAtLeast(MinVersionForCephExporter) {
logger.Debugf("ceph exporter successfully reconciled for node %q. operation: %q", node.Name, op)
// create the metrics service
Expand Down

0 comments on commit 0b9cb2c

Please sign in to comment.