
ceph.conf is loaded by qemu, not libvirt. Since qemu runs as the nova user, ceph.conf owned by root causes a permission error. The logs in /var/log/libvirt/qemu/instance-*.log reveal the error. This change fixes the issue by changing the ownership of ceph.conf in nova-libvirt to the nova user. Adapted for Stein and below by amending paths (no cells). Closes-Bug: #1861513 Change-Id: I1881f51a6c8508f0f186a5623443343dc1df41d4 Signed-off-by: Ning Yao <yaoning@unitedstack.com> (cherry picked from commit 91910d2a455f66e5f014a04bedf132fe0cab55ea) (cherry picked from commit e2c600d9a1317422acd95f460f726201f84d4187)
30 lines
954 B
Django/Jinja
30 lines
954 B
Django/Jinja
{
|
|
"command": "/usr/sbin/libvirtd --listen",
|
|
"config_files": [
|
|
{
|
|
"source": "{{ container_config_directory }}/libvirtd.conf",
|
|
"dest": "/etc/libvirt/libvirtd.conf",
|
|
"owner": "root",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/qemu.conf",
|
|
"dest": "/etc/libvirt/qemu.conf",
|
|
"owner": "root",
|
|
"perm": "0600"
|
|
}{% if nova_backend == "rbd" or cinder_backend_ceph | bool %},
|
|
{
|
|
"source": "{{ container_config_directory }}/secrets",
|
|
"dest": "/etc/libvirt/secrets",
|
|
"owner": "root",
|
|
"perm": "0600"
|
|
}{% endif %}{% if nova_backend == "rbd" %},
|
|
{
|
|
"source": "{{ container_config_directory }}/ceph.conf",
|
|
"dest": "/etc/ceph/ceph.conf",
|
|
"owner": "nova",
|
|
"perm": "0600"
|
|
}{% endif %}
|
|
]
|
|
}
|