LXC termination fails using LVM for root
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Hello,
Terminating an instance running on LXC with LVM as instance root storage fails with an exception.
The LVM volume is wiped using dd, but it is not disconnected from qemu-nbd before the LVM volume gets removed.
The instance in itself on the compute node is stopped but still marked as Active, Deleting in nova. qemu-nbd is sill running.
After first failure, disconnecting the qemu-nbd process manually and relaunching the instance termination works
Log file in debug attached
Environment:
Ubuntu 12.04
OpenStack grizzly
Configuration for LVM:
libvirt_
libvirt_
Error: (The full stack can be find in attached log)
2013-04-25 12:02:59.119 10796 TRACE nova.openstack.
2013-04-25 12:02:59.119 10796 TRACE nova.openstack.
2013-04-25 12:02:59.119 10796 TRACE nova.openstack.
2013-04-25 12:02:59.119 10796 TRACE nova.openstack.
2013-04-25 12:02:59.119 10796 TRACE nova.openstack.
Changed in nova: | |
status: | New → Triaged |
importance: | Undecided → Medium |
information type: | Public → Public Security |
information type: | Public Security → Public |
Problem in nova/virt/ libvirt/ utils.py: find_disk( ). It doesn't handle LVM volumes.