v3 attach, volume shows no attachments for a short period during migrate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Steve Noyes |
Bug Description
I'm not sure if this is a bug, but the behavior seems odd to me. While debugging migrate using the new attachment_complete logic (https:/
(Migrate attaches the volume to a new host while it is still attached to the old host).
Everything ends up in the correct state, but it doesn't seem right for the attachments to disappear for a brief period.
Prior to attachment_update on new host:
$ cinder show vol1 | grep attach
| attached_servers | ['aaf54cf4-
| attachment_ids | ['a3d6e44d-
| metadata | attached_mode : rw |
| multiattach | False
$ cinder attachment-list
+------
| ID | Volume ID | Status | Server ID |
+------
| 4728edff-
| a3d6e44d-
+------
After attachment_update:
$ cinder show vol1 | grep attach
| attached_servers | [] |
| attachment_ids | [] |
| metadata | attached_mode : rw |
| multiattach | False |
| status | attaching
$ cinder attachment-list
+------
| ID | Volume ID | Status | Server ID |
+------
| 4728edff-
| a3d6e44d-
+------
after attachment complete:
$ cinder show vol1 | grep attach
| attached_servers | ['aaf54cf4-
| attachment_ids | ['4728edff-
| metadata | attached_mode : rw |
| multiattach | False |
$ cinder attachment-list
+------
| ID | Volume ID | Status | Server ID |
+------
| 4728edff-
| a3d6e44d-
+------
Changed in cinder: | |
status: | New → Confirmed |
Changed in cinder: | |
assignee: | nobody → Steve Noyes (steve-noyes) |
As the volume status is showed as 'reserved' and 'attaching' in my opinion it makes sense to have the attachment_id listed in the volume details as well since with the new flow we have it early on.
I wonder what others think?