live-migration and attached cinder volume

Bug #1156788 reported by Adrien
6
This bug affects 1 person
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://pastebin.com/7zivCAsq

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://bugs.launchpad.net/nova/+bug/1066887) but the bug reported is merged since 2012.2.1, i'm using the 2012.2.3 for cinder and nova.

Revision history for this message
Chuck Short (zulcss) wrote :

Which vesion and which os are you using?

Changed in nova:
status: New → Incomplete
Revision history for this message
Adrien (adrrob) wrote :

I use Debian Wheezy (testing) on both hosts.

uname -a:
Linux host1 3.2.0-4-amd64 #1 SMP Debian 3.2.39-2 x86_64 GNU/Linux

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.