← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 956589] Re: Device is busy error on lxc instance shutdown

 

This is an automated cleanup. This bug report has been closed because it
is older than 18 months and there is no open code change to fix this.
After this time it is unlikely that the circumstances which lead to
the observed issue can be reproduced.

If you can reproduce the bug, please:
* reopen the bug report (set to status "New")
* AND add the detailed steps to reproduce the issue (if applicable)
* AND leave a comment "CONFIRMED FOR: <RELEASE_NAME>"
  Only still supported release names are valid (LIBERTY, MITAKA, OCATA, NEWTON).
  Valid example: CONFIRMED FOR: LIBERTY


** Changed in: nova
   Importance: Low => Undecided

** Changed in: nova
       Status: Confirmed => Expired

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/956589

Title:
  Device is  busy error on lxc instance shutdown

Status in OpenStack Compute (nova):
  Expired

Bug description:
  Sometimes, I have this error when I'm shutting down an instance:

  
  2012-03-15 19:49:33 ERROR nova.virt.disk.api [-] Failed to remove container: Unexpected error while running command.
  Command: sudo nova-rootwrap kpartx -d /dev/nbd9
  Exit code: 1
  Stdout: ''
  Stderr: 'device-mapper: remove ioctl failed: Device or resource busy\n'
  (nova.virt.disk.api): TRACE: Traceback (most recent call last):
  (nova.virt.disk.api): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/virt/disk/api.py", line 288, in destroy_container
  (nova.virt.disk.api): TRACE:     img.umount()
  (nova.virt.disk.api): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/virt/disk/api.py", line 216, in umount
  (nova.virt.disk.api): TRACE:     self._mounter.do_umount()
  (nova.virt.disk.api): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/virt/disk/mount.py", line 125, in do_umount
  (nova.virt.disk.api): TRACE:     self.unmap_dev()
  (nova.virt.disk.api): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/virt/disk/mount.py", line 92, in unmap_dev
  (nova.virt.disk.api): TRACE:     utils.execute('kpartx', '-d', self.device, run_as_root=True)
  (nova.virt.disk.api): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 240, in execute
  (nova.virt.disk.api): TRACE:     cmd=' '.join(cmd))
  (nova.virt.disk.api): TRACE: ProcessExecutionError: Unexpected error while running command.
  (nova.virt.disk.api): TRACE: Command: sudo nova-rootwrap kpartx -d /dev/nbd9
  (nova.virt.disk.api): TRACE: Exit code: 1
  (nova.virt.disk.api): TRACE: Stdout: ''
  (nova.virt.disk.api): TRACE: Stderr: 'device-mapper: remove ioctl failed: Device or resource busy\n'
  (nova.virt.disk.api): TRACE:

  It happens when I have a daemon running inside the lxc instance.
  I'm using the current trunk and this is my nova.conf file:

  
  --auth_strategy=keystone
  --sql_connection=postgresql://nova:password@localhost:5432/nova
  --allow_admin_api
  --allow_ec2_admin_api
  --img_handlers=nbd

  --dhcpbridge_flagfile=/etc/nova/nova.conf
  --dhcpbridge=/usr/bin/nova-dhcpbridge
  --logdir=/var/log/nova
  --state_path=/var/lib/nova
  --lock_path=/var/lock/nova
  --force_dhcp_release
  --iscsi_helper=tgtadm
  --libvirt_use_virtio_for_bridges
  --connection_type=libvirt
  --root_helper=sudo nova-rootwrap
  --verbose

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/956589/+subscriptions