]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
cv: expose host ipc namespace to ceph-volume container
authorNoah Watkins <noahwatkins@gmail.com>
Thu, 28 Feb 2019 00:05:19 +0000 (16:05 -0800)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Thu, 28 Feb 2019 12:01:18 +0000 (12:01 +0000)
this is needed to properly handle semaphore synchronization for udev
actions via dmcrypt/cryptsetup.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1683770
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
library/ceph_volume.py

index a1cb5f38ca9ec1bac1e65b19400bb40362390d69..1b51140e72f8fb815adab052192431f199ebee66 100644 (file)
@@ -189,7 +189,7 @@ def container_exec(binary, container_image):
     '''
     container_binary = os.getenv('CEPH_CONTAINER_BINARY')
     command_exec = [container_binary, 'run',
-                    '--rm', '--privileged', '--net=host',
+                    '--rm', '--privileged', '--net=host', '--ipc=host',
                     '-v', '/run/lock/lvm:/run/lock/lvm:z',
                     '-v', '/var/run/udev/:/var/run/udev/:z',
                     '-v', '/dev:/dev', '-v', '/etc/ceph:/etc/ceph:z',