libvirt should not require dynamic_ownership off for secure Cinder/Quobyte settings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
tl;dr
When running Quobyte Cinder storage with nas_secure_file_* settings set to true libvirt is currently required to be configured with dynamic_ownership=0 (off). This is not recommended with Nova.
Expected results: secure settings in Cinder should work with Nova and unmodified dynamic_ownership in libvirt config
Actual results: The option in libvirt is required
More detailed:
When run with dynamic_ownership=1 libvirt changes file ownership on guest files to root:root at some point. Running Cinder with the Quobyte driver in nas_secure_
A correction proposal was made by Daniel Berrange at https:/
"[..]If so, a much better approach is to enhance nova so that it can set a <seclabel> element against *just* the quobyte backed disks, that tells libvirt to skip ownership changes for those disks. That way operation of libvirt / QEMU in general will not be affect, thus avoiding nasty side-effects such as this console.log problem.[..]"
Changed in nova: | |
assignee: | nobody → Silvan Kaiser (2-silvan) |
Changed in nova: | |
status: | New → In Progress |
Changed in nova: | |
status: | Expired → New |
Thanks for your comments on my CR here: https:/ /review. openstack. org/#/c/ 301966/