Fix qemu loading of ceph.conf (permission error)

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 91910d2a45)
(cherry picked from commit e2c600d9a1)
This commit is contained in:
Ning Yao 2019-09-06 23:54:06 +08:00 committed by Radosław Piliszek
parent de2f40e680
commit 6c950d842d
2 changed files with 6 additions and 1 deletions

View File

@ -22,7 +22,7 @@
{
"source": "{{ container_config_directory }}/ceph.conf",
"dest": "/etc/ceph/ceph.conf",
"owner": "root",
"owner": "nova",
"perm": "0600"
}{% endif %}
]

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fix qemu loading of ceph.conf (permission error).
`LP#1861513 <https://launchpad.net/bugs/1861513>`