Bug 1316173 - virsh cannot delete volume
Summary: virsh cannot delete volume
Keywords:
Status: CLOSED DUPLICATE of bug 1289327
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-09 15:04 UTC by Vít Ondruch
Modified: 2016-03-09 15:33 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-03-09 15:33:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1306536 0 unspecified CLOSED SLES12-Libvirt: virsh vol-delete fails when deleting disk image: cannot unlink file 'XXX': Permission denied 2021-02-22 00:41:40 UTC

Internal Links: 1306536

Description Vít Ondruch 2016-03-09 15:04:44 UTC
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

virsh # 


"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`
libvirt-client-1.3.2-1.fc25.x86_64


How reproducible:


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.
3.

Actual results:
Cannot delete volume => operation denied


Expected results:
Can delete volume.


Additional info:
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
LANG=cs_CZ.utf8
GDM_LANG=cs_CZ.utf8

Comment 1 Cole Robinson 2016-03-09 15:33:35 UTC
I think this is the same issue as 1289327

*** This bug has been marked as a duplicate of bug 1289327 ***


Note You need to log in before you can comment on or make changes to this bug.