-
Notifications
You must be signed in to change notification settings - Fork 897
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
Fix authentication of metrics credentials in RHV #13981
Conversation
@masayag please review. |
f082125
to
7e7f6ec
Compare
@@ -134,7 +134,7 @@ def rhevm_metrics_connect_options(options = {}) | |||
server = options[:hostname] || metrics_hostname || hostname | |||
username = options[:user] || authentication_userid(:metrics) | |||
password = options[:pass] || authentication_password(:metrics) | |||
database = options[:database] | |||
database = options[:database] || history_database_name |
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.
does it require a test ?
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.
yes it does, added them.
449c7e8
to
eee15ed
Compare
When the database name was not the default one the RHV metrics credentials would not use the right database name during authentication and fail. Removed some code that supported RHV 3.0 and needed to connect to the RHV api to find its version, so it caused some tests to fail.
eee15ed
to
1313a33
Compare
Checked commit borod108@1313a33 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.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.
What about v3? DEFAULT_HISTORY_DATABASE_NAME_3_0
Now this default is not being picked up anymore.
- Will this require doc updates?
- What about users having v3 and relying on the default?
@durandom I think it should be ok since the 3_0 thing is relevant up to 3.1 version of RHV which we do not support. For >3.2 it should work fine. |
@durandom Cannot apply the following label because they are not recognized: providers/rhvem |
Looks good thanks @borod108 ! |
@miq-bot remove_label euwe/yes |
Fix authentication of metrics credentials in RHV (cherry picked from commit 1f93c45) https://bugzilla.redhat.com/show_bug.cgi?id=1429649
Euwe backport details:
|
When the database name was not the default one the RHV metrics credentials
would not use the right database name during authentication and fail.