Swapping volume will not result in correct status
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
Ryan McNair |
Bug Description
Swap volume API can swap a in-use volume with available volume.
Therefore in-use volume should be available and available will be in-use.
In face, volumes will stay in detaching and attaching respectively after send swap volume request to nova.
But those volumes had been swapped.
Following are commands flow.
> cinder list
+------
| ID | Status | Name | Size | Volume Type | Bootable | Multiattach | Attached to |
+------
| 8a3440f7-
| cafc833a-
+------
> sudo iscsiadm -m node
10.0.2.15:3260,-1 iqn.2010-
* Ready to send swap volume request *
> curl -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" 127.0.0.
> cinder list
+------
| ID | Status | Name | Size | Volume Type | Bootable | Multiattach | Attached to |
+------
| 8a3440f7-
| cafc833a-
+------
> sudo iscsiadm -m node
10.0.2.15:3260,-1 iqn.2010-
My devstack environments:
nova (12.0.0.0b3.dev508, /opt/stack/nova)
python-novaclient (2.26.0)
cinder (7.0.0.0b3.dev296, /opt/stack/cinder)
python-cinderclient (1.3.1)
Changed in nova: | |
assignee: | nobody → Chung Chih, Hung (lyanchih) |
tags: | added: volumes |
Changed in nova: | |
assignee: | Chung Chih, Hung (lyanchih) → nobody |
Changed in cinder: | |
importance: | Undecided → Medium |
no longer affects: | nova |
I had found attach and detach function were removed since /review. openstack. org/#/c/ 101933/ 3
https:/
Therefore those volumes were stay in attaching or detaching.