Skip to content

Allow deleting used without "force" #8157

@MartinEmrich

Description

@MartinEmrich
ISSUE TYPE
  • Improvement Request
  • Documentation Report
COMPONENT NAME
UI, Documentation
CLOUDSTACK VERSION
4.18.1
CONFIGURATION

Hypervisor: Xen/XCP-ng

OS / ENVIRONMENT
SUMMARY

When trying to delete a Template, it fails with a message like "Error Unable to delete template with id: 294 because VM instances: [VM instance {"id":2972,"instanceName":"i-39 ..." (continuing with a long list beyond the screen).

This can be overridden using the "force" delete option, leaving a bad feeling of "doing something dangerous".

STEPS TO REPRODUCE
  • Create a VM template (e.g. import ISO, install VM, make Template from the root device).
  • Create a new VM from this template
  • Try to delete the template
EXPECTED RESULTS

A template should be deletable at any time without error, unless there is a actual reason against it. (which could then still be overridden using the "force" option).

ACTUAL RESULTS

Error message (see above). This gives me a clear feeling of "doing something bad", without any explanation.
This suggests that there is a hidden connection between a template and VMs created from it after creation, which the" force" option would just leave dangling.

Yet the documentation (http://docs.cloudstack.apache.org/en/4.18.1.0/adminguide/templates.html) explicitly states "When templates are deleted, the VMs instantiated from them will continue to run.", which is also my observation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions