Public bug reported:

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.

** Affects: nova
     Importance: Undecided
         Status: New

-- 
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):
  New

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to