
This is no longer required when Kolla-Ansible is patched. Note this is *not* safe to backport as it requires the user to have Kolla-Ansible patched, i.e. would normally break most. Change-Id: Ic5b9a58d212711a4d6c13822548c92013a6bae50 Related-Bug: #1681461 Depends-On: https://review.opendev.org/735441
17 lines
465 B
Bash
17 lines
465 B
Bash
#!/bin/bash
|
|
|
|
# Mount xenfs for libxl to work
|
|
if [[ $(lsmod | grep xenfs) ]]; then
|
|
mount -t xenfs xenfs /proc/xen
|
|
fi
|
|
|
|
if [[ ! -e "/var/log/kolla/libvirt/libvirtd.log" ]]; then
|
|
mkdir -p /var/log/kolla/libvirt
|
|
touch /var/log/kolla/libvirt/libvirtd.log
|
|
chmod 644 /var/log/kolla/libvirt/libvirtd.log
|
|
fi
|
|
if [[ $(stat -c %a /var/log/kolla/libvirt) != "755" ]]; then
|
|
chmod 755 /var/log/kolla/libvirt
|
|
chmod 644 /var/log/kolla/libvirt/libvirtd.log
|
|
fi
|