ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
N/A
OS / ENVIRONMENT
N/A
SUMMARY
If a deploy-as-is template (VMWare vApp, for example) is removed using 'Force delete', the VMs using it won't be able to start properly because the details in the 'template_deploy_as_is_details' are removed.
STEPS TO REPRODUCE
Register a deploy-as-is template (enabling the Read VM settings from OVA ), start a VM with this template, then remove the template using 'Force delete' and stop/start the VM.
Note: There is another regression bug in 4.17 - 4.18.1 that makes reproducing this one much harder:
https://github.com/apache/cloudstack/issues/7998
So to reproduce it you'll need a 4.16 environment or 4.18 branch that includes the fix.
EXPECTED RESULTS
ACTUAL RESULTS