images directory has incorrect permissions

Bug #1608704 reported by David Lapsley
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
uvtool
New
Undecided
Unassigned

Bug Description

uvt-kvm is unable to destroy a vm once it has been created (this is on xenial.

For example:

root@martian3:~# uvt-kvm destroy secondtest
uvt-kvm: error: libvirt: cannot unlink file '/var/lib/uvtool/libvirt/images/secondtest.qcow': Permission denied

Looking at the directory permissions:

root@martian3:~# cd /var/lib/uvtool/libvirt/
root@martian3:/var/lib/uvtool/libvirt# ls -ltr
total 8
drwxr-xr-x 2 root root 4096 Aug 1 13:42 images
drwxrwxr-x 2 root libvirtd 4096 Aug 1 13:42 metadata

Libvirt is not able to make changes to the images directory. Changing the directory permissions to the following:

root@martian3:/var/lib/uvtool/libvirt# ls -l
total 8
drwxrwxr-x 2 root libvirtd 4096 Aug 1 14:46 images
drwxrwxr-x 2 root libvirtd 4096 Aug 1 13:42 metadata

Fixes the problem.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.