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
This commit is contained in:
parent
92f6f1f344
commit
258d6ae3f3
@ -32,5 +32,14 @@ crudini --set $cfg \
|
|||||||
backup_name_template \
|
backup_name_template \
|
||||||
"${CINDER_BACKUP_NAME_TEMPLATE}"
|
"${CINDER_BACKUP_NAME_TEMPLATE}"
|
||||||
|
|
||||||
|
# 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 cinder-backup"
|
echo "Starting cinder-backup"
|
||||||
exec /usr/bin/cinder-backup --config-file $cfg
|
exec /usr/bin/cinder-backup --config-file $cfg
|
||||||
|
@ -71,5 +71,14 @@ sed -i 's/udev_sync = 1/udev_sync = 0/' /etc/lvm/lvm.conf
|
|||||||
sed -i 's/udev_rules = 1/udev_rules = 0/' /etc/lvm/lvm.conf
|
sed -i 's/udev_rules = 1/udev_rules = 0/' /etc/lvm/lvm.conf
|
||||||
sed -i 's/use_lvmetad = 1/use_lvmetad = 0/' /etc/lvm/lvm.conf
|
sed -i 's/use_lvmetad = 1/use_lvmetad = 0/' /etc/lvm/lvm.conf
|
||||||
|
|
||||||
|
# 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 cinder-volume"
|
echo "Starting cinder-volume"
|
||||||
exec /usr/bin/cinder-volume --config-file /etc/cinder/cinder.conf
|
exec /usr/bin/cinder-volume --config-file /etc/cinder/cinder.conf
|
||||||
|
@ -6,5 +6,14 @@ set -e
|
|||||||
|
|
||||||
sleep 6
|
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."
|
echo "Starting nova-compute."
|
||||||
exec /usr/bin/nova-compute --config-file /etc/nova/nova.conf
|
exec /usr/bin/nova-compute --config-file /etc/nova/nova.conf
|
||||||
|
@ -18,5 +18,14 @@ if [[ -c /dev/kvm ]]; then
|
|||||||
chown root:kvm /dev/kvm
|
chown root:kvm /dev/kvm
|
||||||
fi
|
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."
|
echo "Starting libvirtd."
|
||||||
exec /usr/sbin/libvirtd
|
exec /usr/sbin/libvirtd
|
||||||
|
@ -392,11 +392,3 @@ EOF
|
|||||||
echo Please customize your FLAT_INTERFACE to a different network then your
|
echo Please customize your FLAT_INTERFACE to a different network then your
|
||||||
echo main network. The FLAT_INTERFACE is used for inter-VM communication.
|
echo main network. The FLAT_INTERFACE is used for inter-VM communication.
|
||||||
echo the FLAT_INTERFACE should not have an IP address assigned.
|
echo the FLAT_INTERFACE should not have an IP address assigned.
|
||||||
# https://bugs.launchpad.net/kolla/+bug/1461635
|
|
||||||
echo
|
|
||||||
echo Cinder requires mounting /dev in the cinder-volume, nova-compute,
|
|
||||||
echo and libvirt containers. If /dev/pts/ptmx does not have proper permissions
|
|
||||||
echo on the host, then libvirt will fail to boot an instance.
|
|
||||||
echo This is a bug in Docker where it is not correctly mounting /dev/pts
|
|
||||||
echo **Temporary fix**
|
|
||||||
echo chmod 666 /dev/pts/ptmx
|
|
||||||
|
Loading…
Reference in New Issue
Block a user