-
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
Disconnect storage when disconnecting the VM #18200
Disconnect storage when disconnecting the VM #18200
Conversation
Instead of having the EventHandler call disconnect_storage from an event handler, call it when disconnecting the VM. https://bugzilla.redhat.com/show_bug.cgi?id=1644770
Hey @Fryguy this is the approach I came up with to disconnect the VM's storage from EmsRefresh by looking at the type of event (overridden by vmware here). The alternate approach is to have the event_handler queue the disconnect_storage method for the refresh worker to prevent race conditions but this seems simpler (having the disconnect logic all in one place). |
This looks like a good approach. |
Everything looks good to me. I found some more potential deletions in manageiq-automation-engine and commented as such in ManageIQ/manageiq-content#472 (comment) Do you want to unWIP all of this? After that...what is the best merge order? |
Yeah I left the dependent ones WIP so they didn't get merged too soon. Merge order should be this, then ManageIQ/manageiq-providers-vmware#336, then ManageIQ/manageiq-content#472. |
Okay un-wip'd everything @Fryguy |
Automate no longer needs to call disconnect_storage
Checked commits agrare/manageiq@f24984b~...0a529d7 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.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.
👍 makes sense
@agrare since this is for a blocker, where are we with getting this merged. |
@Fryguy can you take another look? Everything is ready. |
@Fryguy can you review/merge. We need this for a blocker and this PR needs to be merged first before other dependent PRs are merged. |
…hen_disconnecting_vms Disconnect storage when disconnecting the VM (cherry picked from commit 3e466eb) https://bugzilla.redhat.com/show_bug.cgi?id=1644770
Gaprindashvili backport details:
|
@simaishi ManageIQ/manageiq-providers-vmware#343 should also be backported to hammer when you get there. |
…hen_disconnecting_vms Disconnect storage when disconnecting the VM (cherry picked from commit 3e466eb) https://bugzilla.redhat.com/show_bug.cgi?id=1644770
Hammer backport details:
|
Instead of having the EventHandler call disconnect_storage from an event
handler, call it when disconnecting the VM.
Related:
https://bugzilla.redhat.com/show_bug.cgi?id=1644770