← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1942766] [NEW] After the detach volume timeout, the disk is lost after soft reboot

 

Public bug reported:

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)

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1942766

Title:
  After the detach volume timeout, the disk is lost after soft reboot

Status in OpenStack Compute (nova):
  New

Bug description:
  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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1942766/+subscriptions