Skip to content

After force deleting a deploy-as-is template, the VMs using it cannot start  #7970

@vladimirpetrov

Description

@vladimirpetrov
ISSUE TYPE
  • Bug Report
COMPONENT NAME
API, UI
CLOUDSTACK VERSION
4.16, 4.17, 4.18.1
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
The VM starts normally.
ACTUAL RESULTS
The VM cannot start.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions