]> 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 13:48:39 +0000 (13:48 +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>
(cherry picked from commit 15812970f033206b8680cc68351952d49cc18314)

# Conflicts:
# library/ceph_volume.py

library/ceph_volume.py

index b1de87e6b50f5f151949d1a5e53df65f8b4144a4..045649ab01ecf5808382dbfd42caad787792545a 100644 (file)
@@ -182,8 +182,14 @@ def container_exec(binary, container_image):
     '''
     Build the docker CLI to run a command inside a container
     '''
+<<<<<<< HEAD
 
     command_exec = ['docker', 'run', '--rm', '--privileged', '--net=host',
+=======
+    container_binary = os.getenv('CEPH_CONTAINER_BINARY')
+    command_exec = [container_binary, 'run',
+                    '--rm', '--privileged', '--net=host', '--ipc=host',
+>>>>>>> 15812970... cv: expose host ipc namespace to ceph-volume container
                     '-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',