Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1132053

Summary: Device busy when detaching encrypted volume.
Product: Red Hat OpenStack Reporter: Jaroslav Henner <jhenner>
Component: openstack-novaAssignee: Nikola Dipanov <ndipanov>
Status: CLOSED WONTFIX QA Contact: Jaroslav Henner <jhenner>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0 (RHEL 6)CC: eglynn, jhenner, kchamart, ndipanov, sgordon, yeylon
Target Milestone: ---Keywords: Automation, ZStream
Target Release: 5.0 (RHEL 6)Flags: jhenner: needinfo-
jhenner: needinfo-
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-15 15:14:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
detach of in-use volume
none
another traceback, probably during trying to detach
none
sequence of atach detach delete detach none

Description Jaroslav Henner 2014-08-20 14:43:37 UTC
Created attachment 928854 [details]
detach of in-use volume

Description of problem:
Detaching the encrypted volume is racy. It sometimes fails to detach, the image status is in-use for more than a minute.

Version-Release number of selected component (if applicable):
openstack-nova-compute-2014.1.2-1.el6ost.noarch
openstack-cinder-2014.1.2-2.el6ost.noarch

How reproducible:
about 2 from 5 trials

Steps to Reproduce:
1. Create a vm and encrypted volume (https://github.com/infn-bari-school/cinder-advanced/wiki/Encryption)
2.

ID=f95a2ddf-86f2-4908-b5ab-dc97dff5b557
nova volume-attach bar $ID
nova volume-detach bar $ID
nova delete $ID

Actual results:
| f95a2ddf-86f2-4908-b5ab-dc97dff5b557 |   in-use  |       test-encryption       |  1   |            DMCRYPT             |  false   | aa285a66-f2d1-481e-8b5c-ad907d5e70ac |


Expected results:


Additional info:

Comment 1 Jaroslav Henner 2014-08-20 14:44:03 UTC
It seems that RHEL 7 doesn't suffer from this.

Comment 2 Jaroslav Henner 2014-08-20 14:45:47 UTC
Created attachment 928856 [details]
another traceback, probably during trying to detach

Comment 3 Jaroslav Henner 2014-08-20 14:50:48 UTC
Created attachment 928858 [details]
sequence of atach detach delete detach

I think I did a sequence like

# cinder create --display-name test-encryption --volume-type DMCRYPT 1
# ID=f95a2ddf-86f2-4908-b5ab-dc97dff5b557
# nova volume-attach bar $ID
# cinder delete  $ID
# nova volume-detach bar $ID

to produce this log

Comment 6 Stephen Gordon 2014-10-08 01:28:42 UTC
Hi Jaroslav,

Would you mind filing an upstream bug for this one as well?

Thanks,

Steve

Comment 7 Kashyap Chamarthy 2015-12-15 14:28:54 UTC
[Bug triaging here]

It's been about more than a year, Jaroslav, is this still reproducible today?