Merge "Revert "nova-libvirt: fix kvm permission issue""

This commit is contained in:
Zuul 2017-12-13 13:10:55 +00:00 committed by Gerrit Code Review
commit abbc589e6a
1 changed files with 2 additions and 11 deletions

View File

@ -4,17 +4,8 @@
# Fix permissions for libvirt
# Do not remove unless CentOS has been validated
if [[ -c /dev/kvm ]]; then
if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then
chmod 660 /dev/kvm
if [[ "$(uname -m)" == "aarch64" ]]; then
chown root:kvm /dev/kvm
else
chown root:qemu /dev/kvm
fi
else
chmod 666 /dev/kvm
chown root:kvm /dev/kvm
fi
chmod 660 /dev/kvm
chown root:qemu /dev/kvm
fi
# Mount xenfs for libxl to work