Bug 1132053 - Device busy when detaching encrypted volume.
Summary: Device busy when detaching encrypted volume.
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 5.0 (RHEL 6)
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: 5.0 (RHEL 6)
Assignee: Nikola Dipanov
QA Contact: Jaroslav Henner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-20 14:43 UTC by Jaroslav Henner
Modified: 2019-09-09 16:44 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-15 15:14:29 UTC
Target Upstream Version:
Embargoed:
jhenner: needinfo-
jhenner: needinfo-


Attachments (Terms of Use)
detach of in-use volume (19.82 KB, text/plain)
2014-08-20 14:43 UTC, Jaroslav Henner
no flags Details
another traceback, probably during trying to detach (3.91 KB, text/plain)
2014-08-20 14:45 UTC, Jaroslav Henner
no flags Details
sequence of atach detach delete detach (66.19 KB, text/plain)
2014-08-20 14:50 UTC, Jaroslav Henner
no flags Details

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?


Note You need to log in before you can comment on or make changes to this bug.