Red Hat Bugzilla – Bug 1316173
virsh cannot delete volume
Last modified: 2016-03-09 10:33:35 EST
Description of problem:
I am trying to delete volume, but it is not possible for some reasons I really don§t understand why:
$ sudo virsh -d 4
Welcome to virsh, the virtualization interactive terminal.
Type: 'help' for help with commands
'quit' to quit
virsh # vol-delete /var/lib/libvirt/images/projectatomic-VAGRANTSLASH-adb_vagrant_box_image_1.6.0.img
error: Failed to delete vol /var/lib/libvirt/images/projectatomic-VAGRANTSLASH-adb_vagrant_box_image_1.6.0.img
error: cannot unlink file '/var/lib/libvirt/images/projectatomic-VAGRANTSLASH-adb_vagrant_box_image_1.6.0.img': Operace zamítnuta
"Operace zamítnuta" could be translated as "Operation denied" not sure how to convince the origin of the message to speak different language :/
Also note that the same behavior exhibits virt-manager.
Version-Release number of selected component (if applicable):
$ rpm -qf `which virsh`
Steps to Reproduce:
1. Use Vagrant together with Vagrant file with config.vm.box = "projectatomic/adb"
2. Try to get rid of the volume any way.
Cannot delete volume => operation denied
Can delete volume.
File system permissions if that might be of difference:
$ ls -laZ /var/lib/libvirt/images/projectatomic-VAGRANTSLASH-adb_vagrant_box_image_1.6.0.img
-rwxr--r--. 1 qemu qemu system_u:object_r:virt_content_t:s0 1752956928 Feb 4 13:07 /var/lib/libvirt/images/projectatomic-VAGRANTSLASH-adb_vagrant_box_image_1.6.0.img
And this is my LANG environment (I got the feeling that this might be relevant somehow, due to the "Operace zamítnuta" message):
$ env | grep LANG
I think this is the same issue as 1289327
*** This bug has been marked as a duplicate of bug 1289327 ***