libvirt: qemu cannot access ceph.conf
Bug #1861513 reported by
Radosław Piliszek
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
Fix Released
|
Low
|
Radosław Piliszek | ||
Rocky |
Fix Released
|
Low
|
Radosław Piliszek | ||
Stein |
Fix Released
|
Low
|
Radosław Piliszek | ||
Train |
Fix Released
|
Low
|
Radosław Piliszek | ||
Ussuri |
Fix Released
|
Low
|
Radosław Piliszek |
Bug Description
Since qemu is run as nova and not root (like libvirt), it needs relaxed permissions on ceph.conf in nova_libvirt container.
The following message appears in logs (a warning):
2019-12-10 21:25:35.536879 7f3934f3b500 -1 parse_file: cannot open /etc/ceph/
No proof of effect on operation, especially on kolla ceph.
To post a comment you must log in.
Reviewed: https:/ /review. opendev. org/680740 /git.openstack. org/cgit/ openstack/ kolla-ansible/ commit/ ?id=91910d2a455 f66e5f014a04bed f132fe0cab55ea
Committed: https:/
Submitter: Zuul
Branch: master
commit 91910d2a455f66e 5f014a04bedf132 fe0cab55ea
Author: Ning Yao <email address hidden>
Date: Fri Sep 6 23:54:06 2019 +0800
Fix qemu loading of ceph.conf (permission error)
ceph.conf is loaded by qemu, not libvirt. log/libvirt/ qemu/instance- *.log reveal the error.
Since qemu runs as the nova user, ceph.conf owned by root
causes a permission error. The logs in
/var/
This change fixes the issue by changing the ownership of ceph.conf
in nova-libvirt to the nova user.
Closes-Bug: #1861513 f0f186a56234433 43dc1df41d4
Change-Id: I1881f51a6c8508
Signed-off-by: Ning Yao <email address hidden>