How to set a fake miq_provision?

We have production cloudforms appliances 4.2 , which deploy vms with vsphere.

We have a cloudforms lab (docker) too, connected to the same vsphere. This cloudforms see vms deployed by the production cloudforms.

We cannot use the lab cloudforms do retire production’vms because in the remove_from_provider method (remove_from_disk) vm.miq_provision is not set,.

How can we set a fake miq_provision in the lab, on a discovered vm, to allow retirement?


ok so no need to add a fake miq_provision to do that, just have to set the Lifecycle/retire_full tag on the vm to retire it.