Activity log for bug #1942766

Date Who What changed Old value New value Message
2021-09-06 11:30:28 wlfightup bug added bug
2021-09-06 11:38:25 wlfightup description def _detach_with_retry( if persistent_dev: try: self._detach_from_persistent( guest, instance_uuid, persistent_dev, get_device_conf_func, device_name) 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. Description ================== When the detach disk timeout, and then soft reboot the virtual machine, the disk that was detach timeout was lost, but it is displayed in nova database and bind the vm in nova database. Steps to reproduce ================== 1. create a windows vm,attach a disk to vm. make a big io to the disk. 2. detach disk timeout 3. soft reboot 4. disk is lost Cause Analysis ================== 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(        if persistent_dev:             try:                 self._detach_from_persistent(                     guest, instance_uuid, persistent_dev, get_device_conf_func,                     device_name)
2021-09-07 12:11:22 Balazs Gibizer tags compute libvirt
2021-09-07 12:11:27 Balazs Gibizer nova: status New Triaged
2021-09-07 12:11:30 Balazs Gibizer nova: importance Undecided Low