LXC termination fails using LVM for root

Bug #1172691 reported by Olivier
10
This bug affects 2 people
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_images_type=lvm
libvirt_images_volume_group=nova_local

Error: (The full stack can be find in attached log)
2013-04-25 12:02:59.119 10796 TRACE nova.openstack.common.rpc.amqp ProcessExecutionError: Unexpected error while running command.
2013-04-25 12:02:59.119 10796 TRACE nova.openstack.common.rpc.amqp Command: sudo nova-rootwrap /etc/nova/rootwrap.conf lvremove -f /dev/nova_local/instance-00000004_disk
2013-04-25 12:02:59.119 10796 TRACE nova.openstack.common.rpc.amqp Exit code: 5
2013-04-25 12:02:59.119 10796 TRACE nova.openstack.common.rpc.amqp Stdout: ''
2013-04-25 12:02:59.119 10796 TRACE nova.openstack.common.rpc.amqp Stderr: ' Can\'t remove open logical volume "instance-00000004_disk"\n'

Tags: lxc
Revision history for this message
Olivier (oliviernicaise) wrote :
tags: added: lxc
Michael Still (mikal)
Changed in nova:
status: New → Triaged
importance: Undecided → Medium
Olivier (oliviernicaise)
information type: Public → Public Security
information type: Public Security → Public
Revision history for this message
Alexey I. Froloff (raorn) wrote :

Problem in nova/virt/libvirt/utils.py:find_disk(). It doesn't handle LVM volumes.

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.