← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1367363] Re: Libvirt-lxc will leak nbd devices on instance shutdown

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => kilo-1

-- 
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/1367363

Title:
  Libvirt-lxc will leak nbd devices on instance shutdown

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  Shutting down a libvirt-lxc based instance will leak the nbd device.
  This happens because _teardown_container will only be called when
  libvirt domain's are running. During a shutdown, the domain is not
  running at the time of the destroy. Thus, _teardown_container is never
  called and the nbd device is never disconnected.

  Steps to reproduce:
  1) Create devstack using local.conf: https://gist.github.com/ramielrowe/6ae233dc2c2cd479498a
  2) Create an instance
  3) Perform ps ax |grep nbd on devstack host. Observe connected nbd device
  4) Shutdown instance
  5) Perform ps ax |grep nbd on devstack host. Observe connected nbd device
  6) Delete instance
  7) Perform ps ax |grep nbd on devstack host. Observe connected nbd device

  Nova has now leaked the nbd device.

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


References