Because the detach disk first releases the persist xml now, when the live detach the disk timeout, the persist xml is also gone.
If the virtual machine is soft rebooted at this time, the virtual machine will be lost disk because the persistent xml is missing.
def _detach_with_retry(
self. _detach_ from_persistent (
guest, instance_uuid, persistent_dev, get_device_ conf_func,
device_ name)
if persistent_dev:
try:
Because the detach disk first releases the persist xml now, when the live detach the disk timeout, the persist xml is also gone.
If the virtual machine is soft rebooted at this time, the virtual machine will be lost disk because the persistent xml is missing.