Using LVM on a cinder volume exposes the data to the host

Solution Verified - Updated -


The following issues may appear on the computes or the controllers in the environment

  • LVM appears to be see volume groups from my guests
  • LVM is reporting that there are duplicate volume group names
  • Volume detachments fail because the multipath device is still used

    2021-07-12 12:34:56.789 8 ERROR oslo_messaging.rpc.server [...] Exception during message handling: ProcessExecutionError: Unexpected error while running command.
    Command: multipath -f <wwn>
    Exit code: 1
    Stdout: u'Jul 12 12:34:56 | <wwn>1: map in use\nJul 12 12:34:56 | failed to remove multipath map <wwn>\n'
    Stderr: u''
  • My guests fail to boot due to problems with LVM

  • The LVM on my guest machine is in a partial state due to a missing disk that actually exists
  • Cinder actions fail on devices that have LVM built on them
  • Cinder snapshots fail to remove correctly

    Nov 22 16:22:52 overcloud-volume01 cinder-volume[28404]: Stdout: u"Unexpected error while running command.\nCommand: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvremove --config activation { retry_deactivation = 1} devices { ignore_suspended_devices = 1} -f cinder-volumes/_snapshot-<UUID>\nExit code: 5\nStdout: u''\nStderr: u'File descriptor 7 (/dev/urandom) leaked on lvremove invocation. Parent PID 39750: /usr/bin/python2\\n  Logical volume cinder-volumes/_snapshot-<UUID> is used by another device.\\n'"


  • Red Hat Openstack Platform
  • LVM configured on the volumes attached to instances
  • Non-LVM cinder backend

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content