-
I have ManageIQ installed connected to vCenter as a VM provider, and I realized that when I want to delete a VM that was not provisioned from ManageIQ itself but was created from vCenter, the removal process ends without errors but the VM still exists in the vCenter. I'm connecting to "[email protected]" to rule out any "permissions and privileges" issues. a) VM created/provisioned from ManageIQ : Lifecycle -> Remove Selected Item:
b) VM created/discovered from vCenter: Lifecycle -> Remove Select Item:
Regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey @flealf yes this is correct when retiring a VM MIQ will only delete it from the underlying provider if it was provisioned by MIQ: https://github.com/ManageIQ/manageiq-content/blob/master/content/automate/ManageIQ/Infrastructure/VM/Retirement/StateMachines/Methods.class/__methods__/remove_from_provider.rb#L39 We seem to have gone back and forth on this, it was removed in #6290 then added back in #9233 If you want VM retirement to remove the vm from the underlying provider you can tag it with |
Beta Was this translation helpful? Give feedback.
-
Thank you so much @agrare for your help. Let me check the links you recommend to adjust my settings. Best regards |
Beta Was this translation helpful? Give feedback.
Hey @flealf yes this is correct when retiring a VM MIQ will only delete it from the underlying provider if it was provisioned by MIQ: https://github.com/ManageIQ/manageiq-content/blob/master/content/automate/ManageIQ/Infrastructure/VM/Retirement/StateMachines/Methods.class/__methods__/remove_from_provider.rb#L39
We seem to have gone back and forth on this, it was removed in #6290 then added back in #9233
If you want VM retirement to remove the vm from the underlying provider you can tag it with
lifecycle/retire_full
according to that PR. Surprisingly I don't see this in our documentation but it is in pemgc's automate guide https://github.com/pemcg/manageiq-automation-howto-guide/blob/mast…