Bug 50435 - Undocumentes legacy code for uvmm/kvm/qemu/dynamic_ownership,user,group breaks VM start
Undocumentes legacy code for uvmm/kvm/qemu/dynamic_ownership,user,group break...
Status: CLOSED WONTFIX
Product: UCS
Classification: Unclassified
Component: Virtualization - KVM
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on: 30949
Blocks:
  Show dependency treegraph
 
Reported: 2019-10-30 11:01 CET by Philipp Hahn
Modified: 2023-06-28 10:46 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.114
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Cleanup
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2019-10-30 11:01:40 CET
> univention-virtual-machine-manager-node (2.0.3-6) unstable; urgency=low
> 
>   * Update/review UCR variable descriptions (Bug #30949)
>     Remove UCR variable descriptions for uvmm/kvm/qemu/user, uvmm/kvm/qemu/group
>     and uvmm/kvm/qemu/dynamic_ownership. This is a legacy feature no longer relevant.
> 
>  -- Moritz Mühlenhoff <muehlenhoff@univention.de>  Tue, 10 Sep 2013 15:38:24 +0200

removed the documentation, but the code still remains in univention-virtual-machine-manager-node/conffiles/etc/libvirt/qemu.conf and breaks starting a VM with a volume created manually via
  vol-create-as --pool default --name $NAME.qcow2 --capacity 1G --format qcow2

The code should be removed (or at leas be documented again).

(This breaks starting a VM as the Volume is created 0600 owned by root, but Qemu runs as "libvirt-qemu:libvirt-qemu" and cannot access the file. With "dynamic ownership" libvirtd running as "root" changes the permissions of the volumes while the VM is running, which is upstreams default.)
Comment 1 Philipp Hahn univentionstaff 2023-06-28 10:44:06 CEST
UVMM and virtualization with UCS is deprecated and will no longer be developed in UCS 4.4; they have already been removed from UCS 5.0.