Detach volume rescue
Bug #1126187 reported by
Nithya Ganesan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Joe Gordon |
Bug Description
Detaching a volume from a VM in "RESCUE" state does not bring the volume back to available state.
Steps to reproduce the problem
-------
1. Create a server and wait for it to get to ACTIVE state
2. Create a volume and wait for it to get to AVAILABLE state
3. Attach the volume to the server and wait for the volume to get to "IN USE" state
4. Rescue the VM and wait for the VM to get to the "RESCUE" state
5. Detach the volume from the server and wait for the volume to get to "AVAILABLE" state. This step fails
Please find the test log attached
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-rc1 → 2013.1 |
To post a comment you must log in.
Please note that the problem exists for the volumes that are attached before moving the VM to the rescue state.
Attach and detach to a VM after moving the VM to rescue state is success ful.
stack@server- 1359571136- az-1-region- a-geo-1: ~/latest_ tempest/ tempest$ nova list ------- ------- ------- ------- ----+-- ------- ---+--- -----+- ------- ------- ---+ ------- ------- ------- ------- ----+-- ------- ---+--- -----+- ------- ------- ---+ 834d-4d9c- aab0-51b82bdfb1 c9 | testrescue | RESCUE | private=10.0.0.2 | ------- ------- ------- ------- ----+-- ------- ---+--- -----+- ------- ------- ---+ 1359571136- az-1-region- a-geo-1: ~/latest_ tempest/ tempest$ nova volume-list ------- ------- ------- ------- ----+-- ------- --+---- ------- ---+--- ---+--- ------- ---+--- ------- ------- ------- ------- ------- + ------- ------- ------- ------- ----+-- ------- --+---- ------- ---+--- ---+--- ------- ---+--- ------- ------- ------- ------- ------- + a639-4407- 9bac-26a6bda18d f5 | available | None | 1 | None | | 47ca-44bc- a326-c20c787d1f da | in-use | None | 1 | None | 760c3933- 834d-4d9c- aab0-51b82bdfb1 c9 | ------- ------- ------- ------- ----+-- ------- --+---- ------- ---+--- ---+--- ------- ---+--- ------- ------- ------- ------- ------- + i-search) `det': nova volume-^Ctach 760c3933- 834d-4d9c- aab0-51b82bdfb1 c9 cc282627- 47ca-44bc- a326-c20c787d1f da 1359571136- az-1-region- a-geo-1: ~/latest_ tempest/ tempest$ no^C 1359571136- az-1-region- a-geo-1: ~/latest_ tempest/ tempest$ nova volume-attach 760c3933- 834d-4d9c- aab0-51b82bdfb1 c9 aaf44487- a639-4407- 9bac-26a6bda18d f5 /dev/vdp ----+-- ------- ------- ------- ------- ------- -+ ----+-- ------- ------- ------- ------- ------- -+ 834d-4d9c- aab0-51b82bdfb1 c9 | a639-4407- 9bac-26a6bda18d f5 | a639-4407- 9bac-26a6bda18d f5 | ----+-- ------- ------- ------- ------- ------- -+ 1359571136- az-1-region- a-geo-1: ~/latest_ tempest/ tempest$ nova volume-list ------- ------- ------- ------- ----+-- ------+ ------- ------- +------ +------ ------- +------ ------- ------- ------- ------- ----+ ------- ------- ------- ------- ----+-- ------+ ------- ------- +------ +------ ------- +------ ------- ------- ------- ------- ----+ a639-4407- 9bac-26a6bda18d f5 | in-use | None | 1 | None | 760c3933- 834d-4d9c- aab0-51b82bdfb1 c9 | 47ca-44bc- a326-c20c787d1f da | in-use | None | 1 | None | 760c3933- 834d-4d9c- aab0-51b82bdfb1 c9 | ------- ------- ------- ------- ----+-- ------+ ------- ------- +------ +------ ------- +------ ------- ------- ------- ------- ----+ 1359571136- az-1-region- a-geo-1: ...
+------
| ID | Name | Status | Networks |
+------
| 760c3933-
+------
stack@server-
+------
| ID | Status | Display Name | Size | Volume Type | Attached to |
+------
| aaf44487-
| cc282627-
+------
(reverse-
stack@server-
stack@server-
+------
| Property | Value |
+------
| device | /dev/vdp |
| serverId | 760c3933-
| id | aaf44487-
| volumeId | aaf44487-
+------
stack@server-
+------
| ID | Status | Display Name | Size | Volume Type | Attached to |
+------
| aaf44487-
| cc282627-
+------
stack@server-