-
Notifications
You must be signed in to change notification settings - Fork 92
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
Dont return Storage Services if They arent present #240
Dont return Storage Services if They arent present #240
Conversation
Check if the cinder and swift services are actually present before checking the names and returning them. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1458959
Use the top-level cinder mixin.
17e4678
to
5aaa513
Compare
Checked commits jerryk55/manageiq-providers-openstack@44b23b6~...5aaa513 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@roliveri since the dependent PR has been merged this can be also when you are ready. Thanks. |
@@ -30,7 +30,7 @@ class ManageIQ::Providers::Openstack::CloudManager < ManageIQ::Providers::CloudM | |||
:class_name => "ManageIQ::Providers::StorageManager", | |||
:autosave => true | |||
|
|||
include ManageIQ::Providers::Openstack::CinderManagerMixin |
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.
@jerryk55
Was this changed from CinderManagerMixin
and you're changing it back?
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 was changed by #194 and I was of the impression it was breaking my tests. Which of course means I'm probably breaking something in that PR now. Um...
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.
how does this help? The codes are identical..
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.
Oh good. Then we can delete the identical code that was added under the Openstack Provider. No need for duplicated code, right?
@jerryk55 same should be applied to graph refresh https://github.com/Ladas/manageiq-providers-openstack/blob/e263101b27a892a7e0e24f1d80cc705e775ccd0e/app/models/manageiq/providers/openstack/inventory/collector.rb#L77 And targeted refresh collector for cinder: there is no graph refresh for swift for now |
@jerryk55 also please add specs, so we are sure both old refresh and graph refresh work with storage services not defined. |
…managers Dont return Storage Services if They arent present (cherry picked from commit 97fb7ee) https://bugzilla.redhat.com/show_bug.cgi?id=1560692
Gaprindashvili backport details:
|
Fine backport (to manageiq repo) details:
|
Check if the cinder and swift services are actually present before
checking the names and returning them.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1458959
along with ManageIQ/manageiq#17067.
Order of merging is irrelevant. Related PR was ManageIQ/manageiq#16922
@roliveri @hsong-rh please review and merge when appropriate.