Skip to content
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

Add policy resolution call to vm_destroy for providers. #223

Merged
merged 2 commits into from
Jan 10, 2018

Conversation

lfu
Copy link
Member

@lfu lfu commented Nov 29, 2017

vm_destroy is the policy event raised when a VM is deleted from disk from VMware side.
vm_unregister is the policy event raised when a VM is removed from inventory from VMware side.

Add vm_destroy call for all providers.

Seems VMware is the only one which has the option to remove VM from inventory besides delete VM from disk. @agrare @bronaghs, is it right?

Part of ManageIQ/manageiq#16557.

https://bugzilla.redhat.com/show_bug.cgi?id=1506520

@miq-bot add_label bug, fine/yes, gaprindashvili/yes

@gmcculloug
Copy link
Member

@lfu Are there other provider events that this policy event should be tied to?

@lfu lfu changed the title Add policy resolution call to DestroyVM_Task_Complete. Add policy resolution call to vm_destroy for providers. Jan 2, 2018
@agrare
Copy link
Member

agrare commented Jan 2, 2018

Seems VMware is the only one which has the option to remove VM from inventory besides delete VM from disk.

@lfu RHV has the option as well but as far as I know VMware is the only one with a different API call to do this

@agrare
Copy link
Member

agrare commented Jan 2, 2018

/cc @pkliczewski

@pkliczewski
Copy link
Contributor

Looks good, verified for ovirt.

@miq-bot
Copy link
Member

miq-bot commented Jan 3, 2018

Checked commits lfu/manageiq-content@2c56415~...a0b9857 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0
9 files checked, 1 offense detected

**

  • 💣 💥 🔥 🚒 - Linter/Yaml - missing config files

@gmcculloug gmcculloug merged commit 78dcaa8 into ManageIQ:master Jan 10, 2018
@gmcculloug gmcculloug added this to the Sprint 77 Ending Jan 15, 2018 milestone Jan 10, 2018
simaishi pushed a commit that referenced this pull request Jan 10, 2018
Add policy resolution call to vm_destroy for providers.
(cherry picked from commit 78dcaa8)

https://bugzilla.redhat.com/show_bug.cgi?id=1533279
@simaishi
Copy link
Contributor

Gaprindashvili backport details:

$ git log -1
commit e7b2f2de19132bbbe5285f2510fa3785a8136cdf
Author: Greg McCullough <gmccullo@redhat.com>
Date:   Wed Jan 10 14:46:17 2018 -0500

    Merge pull request #223 from lfu/destroy_vm_1506520
    
    Add policy resolution call to vm_destroy for providers.
    (cherry picked from commit 78dcaa8b162854bf77397902f51d074c1cb35fdb)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1533279

simaishi pushed a commit that referenced this pull request Jan 15, 2018
Add policy resolution call to vm_destroy for providers.
(cherry picked from commit 78dcaa8)

https://bugzilla.redhat.com/show_bug.cgi?id=1534584
@simaishi
Copy link
Contributor

Fine backport details:

$ git log -1
commit 7b13152e71410a55c692aff40e85299e1010bf54
Author: Greg McCullough <gmccullo@redhat.com>
Date:   Wed Jan 10 14:46:17 2018 -0500

    Merge pull request #223 from lfu/destroy_vm_1506520
    
    Add policy resolution call to vm_destroy for providers.
    (cherry picked from commit 78dcaa8b162854bf77397902f51d074c1cb35fdb)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1534584

@lfu lfu deleted the destroy_vm_1506520 branch September 29, 2018 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants