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) |
|