Red Hat Bugzilla – Bug 1474992
Failed VMs are not rolling back end-to-end
Last modified: 2017-10-03 15:30:46 EDT
Description of problem:
Cloudforms is not rolling back the VM end-to-end. Particularly, it’s not deleting it from vCenter & VMDB.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
VMs created outside of the ManageIQ Lifecycle provisioning will not have the MIQ GUID property nor will they have a "miq_provision" which is what we check in the default remove_from_provider method in automate.
My guess is that the VM is not really being created through the ManageIQ provisioning task.
Can you describe how the VM is being provisioned as well as what is being used to verify that the VM was provisioned by a ManageIQ provision task?
As the above method shows you can also create the tag "lifecycle/retire_full" and apply that to the VM to have it removed from the provider.
The screenshots are showing that we are passing the expected VM notes value to VMware during provisioning.
Was the customer able to confirm that the VM was created with that note? Also, is there any other process that might be updating/replacing the notes on a VM within their VMware environment.
Can they track a VM that we have provisioned and compare the notes we pass (based on the provision logging) and what is on the VM when the process fails?
I would also highly suggest reviewing the last comment in https://bugzilla.redhat.com/show_bug.cgi?id=1474992#c6 and possibly changing their process to use the miq_provision relationship instead of the notes value.
Can we close this ticket? There hasn't been any customer response in over a month.