-
Notifications
You must be signed in to change notification settings - Fork 896
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
Update cluster when modified #12927
Update cluster when modified #12927
Conversation
When we change cluster for a specific vm we were not able to fetch proper cluster information. We were not able to get this information from the event due to code limitation. Now we fetch all the clusters and datacenters so we have enough information to update the vm. This patch fixes: https://bugzilla.redhat.com/1397503
Checked commit pkliczewski@80f3bf9 with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1 app/models/manageiq/providers/redhat/infra_manager/refresher.rb
spec/models/manageiq/providers/redhat/infra_manager/refresher_target_vm_spec.rb
|
@borod108 please review |
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.
Looks good to me.
I'm good with this to fix the bug but we should try to fix the event limitation if we can to return the correct cluster. @pkliczewski what event gets raised when a VMs' cluster is changed? I'm a little worried that we're reducing the effectiveness of RHEV targeted refresh if between this PR and #12959 we're pulling back all datacenters, hosts, and clusters |
Update cluster when modified (cherry picked from commit 588b5f9) https://bugzilla.redhat.com/show_bug.cgi?id=1411791
Euwe backport details:
|
When we change cluster for a specific vm we were not able to
fetch proper cluster information. We were not able to get this
information from the event due to code limitation.
Now we fetch all the clusters and datacenters so we have enough
information to update the vm.
This patch fixes:
https://bugzilla.redhat.com/1397503