aboutsummaryrefslogtreecommitdiff
path: root/docker/common/nova-compute
diff options
context:
space:
mode:
authorRyan Hallisey <rhallise@redhat.com>2015-06-25 20:13:52 -0400
committerRyan Hallisey <rhallise@redhat.com>2015-06-25 22:02:32 -0400
commit258d6ae3f3c8976fff9235dd229dff58cf1eb0f9 (patch)
tree63b27adc4961f95f1e966ccdf1c3be30ab1a7cf4 /docker/common/nova-compute
parent92f6f1f3446dcc134b3f943cac688f27b31f2ad8 (diff)
downloadkolla-258d6ae3f3c8976fff9235dd229dff58cf1eb0f9.tar.gz
kolla-258d6ae3f3c8976fff9235dd229dff58cf1eb0f9.zip
Allow /dev/pts proper permissions so cinder and libvirt work
We need to mount /dev both Libvirt and Cinder containers and /dev/pts is not correctly mounted. The /dev/pts recieves no permissions from the host so it becomes inacessable. We need to change the permissions of /dev/pts in the container to 666. Change-Id: Id197a766adc3aecb24e6b10aa84f51c23124b488 Closes-bug: #1468951
Diffstat (limited to 'docker/common/nova-compute')
-rwxr-xr-xdocker/common/nova-compute/nova-compute/start.sh9
-rwxr-xr-xdocker/common/nova-compute/nova-libvirt/start.sh9
2 files changed, 18 insertions, 0 deletions
diff --git a/docker/common/nova-compute/nova-compute/start.sh b/docker/common/nova-compute/nova-compute/start.sh
index ce3d0c0c3..ac7f781f4 100755
--- a/docker/common/nova-compute/nova-compute/start.sh
+++ b/docker/common/nova-compute/nova-compute/start.sh
@@ -6,5 +6,14 @@ set -e
sleep 6
+# https://bugs.launchpad.net/kolla/+bug/1461635
+# Cinder requires mounting /dev in the cinder-volume, nova-compute,
+# and libvirt containers. If /dev/pts/ptmx does not have proper permissions
+# on the host, then libvirt will fail to boot an instance.
+# This is a bug in Docker where it is not correctly mounting /dev/pts
+# Tech Debt tracker: https://bugs.launchpad.net/kolla/+bug/1468962
+# **Temporary fix**
+chmod 666 /dev/pts/ptmx
+
echo "Starting nova-compute."
exec /usr/bin/nova-compute --config-file /etc/nova/nova.conf
diff --git a/docker/common/nova-compute/nova-libvirt/start.sh b/docker/common/nova-compute/nova-libvirt/start.sh
index bdbe882b8..1f2ddbed8 100755
--- a/docker/common/nova-compute/nova-libvirt/start.sh
+++ b/docker/common/nova-compute/nova-libvirt/start.sh
@@ -18,5 +18,14 @@ if [[ -c /dev/kvm ]]; then
chown root:kvm /dev/kvm
fi
+# https://bugs.launchpad.net/kolla/+bug/1461635
+# Cinder requires mounting /dev in the cinder-volume, nova-compute,
+# and libvirt containers. If /dev/pts/ptmx does not have proper permissions
+# on the host, then libvirt will fail to boot an instance.
+# This is a bug in Docker where it is not correctly mounting /dev/pts
+# Tech Debt tracker: https://bugs.launchpad.net/kolla/+bug/1468962
+# **Temporary fix**
+chmod 666 /dev/pts/ptmx
+
echo "Starting libvirtd."
exec /usr/sbin/libvirtd