-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core: temporary disable exporter service #12118
Conversation
3d98097
to
8ac79fb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one small nit
if _, err := k8sutil.CreateOrUpdateService(r.opManagerContext, r.context.Clientset, cephCluster.Namespace, service); err != nil { | ||
return errors.Wrap(err, "failed to create ceph-exporter metrics service") | ||
} | ||
if cephVersion.IsAtLeast(cephver.CephVersion{Major: 18, Minor: 0, Extra: 0}) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a short comment on "why" Ceph version 18 is required here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this version is used in two places, let's create a package var for it, and then add the comment there about the reason.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a MinVersionForCephExporter
var
if cephVersion.IsAtLeast(cephver.CephVersion{Major: 18, Minor: 0, Extra: 0}) { | ||
logger.Debugf("ceph exporter successfully reconciled for node %q. operation: %q", node.Name, op) | ||
// create the metrics service | ||
service, err := MakeCephExporterMetricsService(cephCluster, exporterServiceMetricName, r.scheme) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PLease update the PR description,
And also the PR tracker link where you disabled exporter pods.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
Create the exporter service only if exporter pods are created. Signed-off-by: avanthakkar <avanjohn@gmail.com>
8ac79fb
to
32b2445
Compare
I tested these changes on ocp and it is working
we can see no svc was created and all the ceph daemons are created successfully. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
core: temporary disable exporter service (backport #12118)
The exporter service should only be created if exporter pods are created. Recently the creation was disabled temporarily due to some regression detected in Ceph v17.2.6 #12077
Signed-off-by: avanthakkar avanjohn@gmail.com
Description of your changes:
Create the exporter service only if exporter pods are created.
Which issue is resolved by this Pull Request:
Resolves #
Checklist:
skip-ci
on the PR.