-
Notifications
You must be signed in to change notification settings - Fork 898
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
Don't queue metrics capture if metrics unsupported #17820
Don't queue metrics capture if metrics unsupported #17820
Conversation
3667f73
to
26c52c1
Compare
26c52c1
to
377d868
Compare
app/models/ext_management_system.rb
Outdated
@@ -292,6 +292,10 @@ def supports_authentication?(authtype) | |||
authtype.to_s == "default" | |||
end | |||
|
|||
def supports_metrics? |
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.
TODO this should be a supports_feature_mixin but kubernetes already has this method defined here
I applied the PR to 5.9.0.22 (appliance) and it corrected the problem. This looks like a clean and quick fix. I'm chuffed to bits over how elegant that fix is, with just a single line. Thanks for the PR, Adam. |
If metrics capture is unsupported by the provider then do not queue perf_capture for targets on that EMS. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1610449
377d868
to
d78c076
Compare
Checked commit agrare@d78c076 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
…argets_if_ems_doesnt_support_metrics Don't queue metrics capture if metrics unsupported (cherry picked from commit 6439a45) https://bugzilla.redhat.com/show_bug.cgi?id=1618805
Gaprindashvili backport details:
|
If metrics capture is unsupported by the provider then do not queue
perf_capture for targets on that EMS.
https://bugzilla.redhat.com/show_bug.cgi?id=1610449