← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1642628] [NEW] Detaching encryptors from volumes that are still attached to domains can result in failure

 

Public bug reported:

Description
===========
Detaching encryptors from volumes that are still attached to domains can result in failure.

Steps to reproduce
==================
- Attach an encrypted volume to an instance.
- Mount and use the volume within the instance.
- Attempt to detach the volume via Nova while the volume is in-use within the instance.

Expected result
===============
The volume is detached.

Actual result
=============
Nova first attempts to detach the encryptors from the volume that is still attached to the libvirt domain. As a result this can fail with `Device or resource busy` as I/O is still in-flight between the instance and volume.

Environment
===========
1. master, stable/newton.

2. Which hypervisor did you use?
   Libvirt + KVM

2. Which storage type did you use?
   LVM / iSCSI + LUKS

3. Which networking type did you use?
   N/A

Logs & Configs
==============

Failed to detach an encrypted volume
https://bugzilla.redhat.com/show_bug.cgi?id=1388417

** 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/1642628

Title:
  Detaching encryptors from volumes that are still attached to domains
  can result in failure

Status in OpenStack Compute (nova):
  New

Bug description:
  Description
  ===========
  Detaching encryptors from volumes that are still attached to domains can result in failure.

  Steps to reproduce
  ==================
  - Attach an encrypted volume to an instance.
  - Mount and use the volume within the instance.
  - Attempt to detach the volume via Nova while the volume is in-use within the instance.

  Expected result
  ===============
  The volume is detached.

  Actual result
  =============
  Nova first attempts to detach the encryptors from the volume that is still attached to the libvirt domain. As a result this can fail with `Device or resource busy` as I/O is still in-flight between the instance and volume.

  Environment
  ===========
  1. master, stable/newton.

  2. Which hypervisor did you use?
     Libvirt + KVM

  2. Which storage type did you use?
     LVM / iSCSI + LUKS

  3. Which networking type did you use?
     N/A

  Logs & Configs
  ==============

  Failed to detach an encrypted volume
  https://bugzilla.redhat.com/show_bug.cgi?id=1388417

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


Follow ups