← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1512443] [NEW] config drive on RBD leaves orphaned loopback device mounts

 

Public bug reported:

Version: Juno (with https://review.openstack.org/#/c/123073/ backported)

Reproduce:
1) Create a VM with config-drive on ceph/rbd.

Expected result:
When the VM is created, part of the above patch copies the config drive onto RBD by way of using a loopback device to copy the contents.  It is expected that once this is completed, the loopback device will be properly cleaned up.  The end result being no loopback devices left open and the config drive being properly stored on RBD.

Actual result:
After the config drive is copied to RBD, a loopback device is left mounted to a deleted file:
/dev/loop0: [0807]:33682451 (/var/lib/nova/instances/0925ed53-16f1-48f2-a190-ab19706b80c6_del/disk.config (deleted))
The config drive is successfully copied to RBD, but eventually all the loopback devices are consumed, causing subsequent VM creations (on the hypervisor in question) to fail and requiring the hypervisor to be rebooted to clean them up.

** 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/1512443

Title:
  config drive on RBD leaves orphaned loopback device mounts

Status in OpenStack Compute (nova):
  New

Bug description:
  Version: Juno (with https://review.openstack.org/#/c/123073/
  backported)

  Reproduce:
  1) Create a VM with config-drive on ceph/rbd.

  Expected result:
  When the VM is created, part of the above patch copies the config drive onto RBD by way of using a loopback device to copy the contents.  It is expected that once this is completed, the loopback device will be properly cleaned up.  The end result being no loopback devices left open and the config drive being properly stored on RBD.

  Actual result:
  After the config drive is copied to RBD, a loopback device is left mounted to a deleted file:
  /dev/loop0: [0807]:33682451 (/var/lib/nova/instances/0925ed53-16f1-48f2-a190-ab19706b80c6_del/disk.config (deleted))
  The config drive is successfully copied to RBD, but eventually all the loopback devices are consumed, causing subsequent VM creations (on the hypervisor in question) to fail and requiring the hypervisor to be rebooted to clean them up.

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


Follow ups