summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Harney <eharney@redhat.com>2017-11-01 15:47:01 -0400
committerEmilien Macchi <emilien@redhat.com>2017-11-04 05:20:35 +0000
commit4d5686b6ad85d52c8359885bc8fc74cb525f6f76 (patch)
treeaec8bf988641edd36aa31e17ae4e86b780612d96
parent97ef5a574d3df23b68dd2a9eaa66a7923fce8d39 (diff)
Set ipc=host for services attaching encrypted volumes
Without ipc=host set, cryptsetup/devicemapper will never see devices created when running "cryptsetup luksOpen", causing the command to hang. This is required for attaching encrypted Cinder volumes. Closes-Bug: #1729419 Change-Id: Ic7184b1fbbafea266f8ec1e7974d0a4a2cf4d750 (cherry picked from commit 05b61472463d5dbde3f1b1285819044409a80e2e)
-rw-r--r--docker/services/cinder-volume.yaml1
-rw-r--r--docker/services/nova-compute.yaml1
2 files changed, 2 insertions, 0 deletions
diff --git a/docker/services/cinder-volume.yaml b/docker/services/cinder-volume.yaml
index d8a93b13..46873ea8 100644
--- a/docker/services/cinder-volume.yaml
+++ b/docker/services/cinder-volume.yaml
@@ -125,6 +125,7 @@ outputs:
step_4:
cinder_volume:
image: *cinder_volume_image
+ ipc: host
net: host
privileged: true
restart: always
diff --git a/docker/services/nova-compute.yaml b/docker/services/nova-compute.yaml
index 883f438b..5163a381 100644
--- a/docker/services/nova-compute.yaml
+++ b/docker/services/nova-compute.yaml
@@ -115,6 +115,7 @@ outputs:
step_4:
nova_compute:
image: &nova_compute_image {get_param: DockerNovaComputeImage}
+ ipc: host
net: host
privileged: true
user: nova