← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1333827] Re: Libvirt-LXC can leave image mounted to host

 

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

** Changed in: nova
    Milestone: None => juno-2

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

Title:
  Libvirt-LXC can leave image mounted to host

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  If an error occurs creating a Libvirt+LXC domain, the code can leave
  the guest FS mounted to host preventing the `lvremove` of a delete
  from working.

  The core problem here is that any code between `setup_container` and
  `teardown_container` needs be within a `try/finally` block, so that on
  error, we unmount the image from the host.

  While we're at it, we can also cleanup the exception handling by
  reducing the 3 independent exception handlers into a single one, which
  is then followed by the `finally` clause.

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


References