live-migration and attached cinder volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
When you migrate an instance with an attached volume, the volume is not detached from the live-migration source host. So, when you want to delete the volume, after detaching it from the instance, you couldn't delete it : http://
Way to reproduce :
nova boot --flavor 1 --image cirros cirrosvm
cinder create --display-name vol-test 1
nova volume-attach cirrosvm UUID_OF_THE_VOLUME /dev/vdc
#here, i cna use the volume inside the instance
nova live-migration --block-migrate cirrosvm Host2
#migration is ok, i still can use the volume
nova volume-detach cirrosvm UUID_OF_THE_VOLUME
cinder delete vol-test
#here, the volume status is error_deleting.
To correctly delete the volume, i have to kill -9 tgtd and force-delete the volume (in 'error_deleting' state) on the source host.
To help:
When a volume is attached in a instance, on the host, you have a file in /etc/iscsi/nodes corresponding to the iscsi name of the volume. And when you detach the volume, this file is removed.
But in my case, with a live migration, the file is still on the source host : it should be deleted ?
I saw a link talking about a similar problem (https:/
Which vesion and which os are you using?