nforgeio / neonKUBE

Public NeonKUBE Kubernetes distribution related projects
https://neonkube.io
Apache License 2.0
80 stars 13 forks source link

XenServer gets in bad state if VM template install interrupted #1173

Closed jefflill closed 3 years ago

jefflill commented 3 years ago

When a VM template install is interrupted, the template shows up on XenCenter but it can't be deleted via the UI. This is likely to happen fairly often in the wild. We need a way to identify partial templates and then delete them. Here are some XE commands to do this:

xe template-param-set other-config:default_template=false uuid=[uuid]
xe template-param-set is-a-template=false uuid=[uuid]
xe vm-reset-powerstate uuid=[uuid]
xe vm-destroy uuid=[uuid]
jefflill commented 3 years ago

XenServer does end up dealing with interrupted template installs. I didn't immediately realize that the xe command process installing the template was still running after I terminated cluster setup. Once I terminated the command, XenServer removed the partial upload.