Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Created attachment 791399[details]
libvirt, vdsm + qemu logs
Description of problem:
Attempting to start a start vm with a disk on a local storage domain fails with the following error in vdsm logs:
Thread-274::ERROR::2013-08-28 15:54:12,811::vm::2062::vm.Vm::(_startUnderlyingVm) vmId=`c4a4ced9-d8c2-4cf7-afed-969c70858d87`::The vm start process failed
Traceback (most recent call last):
File "/usr/share/vdsm/vm.py", line 2022, in _startUnderlyingVm
self._run()
File "/usr/share/vdsm/vm.py", line 2917, in _run
self._connection.createXML(domxml, flags),
File "/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py", line 76, in wrapper
ret = f(*args, **kwargs)
File "/usr/lib64/python2.6/site-packages/libvirt.py", line 2662, in createXML
if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self)
libvirtError: internal error process exited while connecting to monitor: qemu-kvm: -drive file=/rhev/data-center/02f47292-25d7-4058-99ff-e709d3fbab0a/a4474389-b66c-4fc0-b8b4-2a23bdfef4a1/images/35540597-c861-47b8-8acd-99ef71cbc9df/82c1b34e-f349-4e42-8516-d0efc752bbaf,if=none,id=drive-virtio-disk0,format=raw,serial=35540597-c861-47b8-8acd-99ef71cbc9df,cache=none,werror=stop,rerror=stop,aio=threads: could not open disk image /rhev/data-center/02f47292-25d7-4058-99ff-e709d3fbab0a/a4474389-b66c-4fc0-b8b4-2a23bdfef4a1/images/35540597-c861-47b8-8acd-99ef71cbc9df/82c1b34e-f349-4e42-8516-d0efc752bbaf: Permission denied
The file exists:
root@aqua-vds5 qemu]# ll /rhev/data-center/02f47292-25d7-4058-99ff-e709d3fbab0a/a4474389-b66c-4fc0-b8b4-2a23bdfef4a1/images/35540597-c861-47b8-8acd-99ef71cbc9df/82c1b34e-f349-4e42-8516-d0efc752bbaf
-rw-rw----. 1 vdsm kvm 8589934592 Aug 28 15:54 /rhev/data-center/02f47292-25d7-4058-99ff-e709d3fbab0a/a4474389-b66c-4fc0-b8b4-2a23bdfef4a1/images/35540597-c861-47b8-8acd-99ef71cbc9df/82c1b34e-f349-4e42-8516-d0efc752bbaf
however /var/log/messages shows avc denied messages for virsh:
Aug 27 14:22:43 aqua-vds5 kernel: type=1400 audit(1377602563.180:48299): avc: denied { create } for pid=21975 comm="virsh" scontext=unconfined_u:system_r:xm_t:s0 tcontext=unconfined_u:system_r:xm_t:s0 tclass=un
ix_dgram_socket
Aug 27 14:22:43 aqua-vds5 kernel: type=1400 audit(1377602563.182:48300): avc: denied { create } for pid=21975 comm="virsh" scontext=unconfined_u:system_r:xm_t:s0 tcontext=unconfined_u:system_r:xm_t:s0 tclass=un
ix_dgram_socket
Aug 27 14:22:43 aqua-vds5 kernel: type=1400 audit(1377602563.182:48301): avc: denied { create } for pid=21975 comm="virsh" scontext=unconfined_u:system_r:xm_t:s0 tcontext=unconfined_u:system_r:xm_t:s0 tclass=un
ix_dgram_socket
Attempting to create the vm directly from virsh using xml fails with same error:
[root@aqua-vds5 qemu]# virsh create /tmp/vm.xml
Please enter your authentication name: 1
Please enter your password:
error: Failed to create domain from /tmp/vm.xml
error: internal error process exited while connecting to monitor: qemu-kvm: -drive file=/rhev/data-center/02f47292-25d7-4058-99ff-e709d3fbab0a/a4474389-b66c-4fc0-b8b4-2a23bdfef4a1/images/35540597-c861-47b8-8acd-99ef71cbc9df/82c1b34e-f349-4e42-8516-d0efc752bbaf,if=none,id=drive-virtio-disk0,format=raw,serial=35540597-c861-47b8-8acd-99ef71cbc9df,cache=none,werror=stop,rerror=stop,aio=threads: could not open disk image /rhev/data-center/02f47292-25d7-4058-99ff-e709d3fbab0a/a4474389-b66c-4fc0-b8b4-2a23bdfef4a1/images/35540597-c861-47b8-8acd-99ef71cbc9df/82c1b34e-f349-4e42-8516-d0efc752bbaf: Permission denied
Version-Release number of selected component (if applicable):
vdsm-4.12.0-72.git287bb7e.el6ev.x86_64
libvirt-0.10.2-22.el6.x86_64
qemu-kvm-rhev-tools-0.12.1.2-2.398.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.398.el6.x86_64
How reproducible:
100%
Steps to Reproduce:
1. Create local storage DC
2. Create VM with disk
3. Start VM
Actual results:
Fails to start vm
Expected results:
VM should start
Additional info:
The AVC denials are completely unrelated to this issues. Since you can reproduce, could you switch SELinux into permissive mode, run the same domain that did not start in enforcing mode, and provide SELinux errors reported in permissive mode?
Indeed, these symptoms match those of 964359. I'd appreciate confirmation from testing with the scratch build, but I'll probably close this as a dup of that one if we don't hear further in a couple days.
Created attachment 791399 [details] libvirt, vdsm + qemu logs Description of problem: Attempting to start a start vm with a disk on a local storage domain fails with the following error in vdsm logs: Thread-274::ERROR::2013-08-28 15:54:12,811::vm::2062::vm.Vm::(_startUnderlyingVm) vmId=`c4a4ced9-d8c2-4cf7-afed-969c70858d87`::The vm start process failed Traceback (most recent call last): File "/usr/share/vdsm/vm.py", line 2022, in _startUnderlyingVm self._run() File "/usr/share/vdsm/vm.py", line 2917, in _run self._connection.createXML(domxml, flags), File "/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py", line 76, in wrapper ret = f(*args, **kwargs) File "/usr/lib64/python2.6/site-packages/libvirt.py", line 2662, in createXML if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self) libvirtError: internal error process exited while connecting to monitor: qemu-kvm: -drive file=/rhev/data-center/02f47292-25d7-4058-99ff-e709d3fbab0a/a4474389-b66c-4fc0-b8b4-2a23bdfef4a1/images/35540597-c861-47b8-8acd-99ef71cbc9df/82c1b34e-f349-4e42-8516-d0efc752bbaf,if=none,id=drive-virtio-disk0,format=raw,serial=35540597-c861-47b8-8acd-99ef71cbc9df,cache=none,werror=stop,rerror=stop,aio=threads: could not open disk image /rhev/data-center/02f47292-25d7-4058-99ff-e709d3fbab0a/a4474389-b66c-4fc0-b8b4-2a23bdfef4a1/images/35540597-c861-47b8-8acd-99ef71cbc9df/82c1b34e-f349-4e42-8516-d0efc752bbaf: Permission denied The file exists: root@aqua-vds5 qemu]# ll /rhev/data-center/02f47292-25d7-4058-99ff-e709d3fbab0a/a4474389-b66c-4fc0-b8b4-2a23bdfef4a1/images/35540597-c861-47b8-8acd-99ef71cbc9df/82c1b34e-f349-4e42-8516-d0efc752bbaf -rw-rw----. 1 vdsm kvm 8589934592 Aug 28 15:54 /rhev/data-center/02f47292-25d7-4058-99ff-e709d3fbab0a/a4474389-b66c-4fc0-b8b4-2a23bdfef4a1/images/35540597-c861-47b8-8acd-99ef71cbc9df/82c1b34e-f349-4e42-8516-d0efc752bbaf however /var/log/messages shows avc denied messages for virsh: Aug 27 14:22:43 aqua-vds5 kernel: type=1400 audit(1377602563.180:48299): avc: denied { create } for pid=21975 comm="virsh" scontext=unconfined_u:system_r:xm_t:s0 tcontext=unconfined_u:system_r:xm_t:s0 tclass=un ix_dgram_socket Aug 27 14:22:43 aqua-vds5 kernel: type=1400 audit(1377602563.182:48300): avc: denied { create } for pid=21975 comm="virsh" scontext=unconfined_u:system_r:xm_t:s0 tcontext=unconfined_u:system_r:xm_t:s0 tclass=un ix_dgram_socket Aug 27 14:22:43 aqua-vds5 kernel: type=1400 audit(1377602563.182:48301): avc: denied { create } for pid=21975 comm="virsh" scontext=unconfined_u:system_r:xm_t:s0 tcontext=unconfined_u:system_r:xm_t:s0 tclass=un ix_dgram_socket Attempting to create the vm directly from virsh using xml fails with same error: [root@aqua-vds5 qemu]# virsh create /tmp/vm.xml Please enter your authentication name: 1 Please enter your password: error: Failed to create domain from /tmp/vm.xml error: internal error process exited while connecting to monitor: qemu-kvm: -drive file=/rhev/data-center/02f47292-25d7-4058-99ff-e709d3fbab0a/a4474389-b66c-4fc0-b8b4-2a23bdfef4a1/images/35540597-c861-47b8-8acd-99ef71cbc9df/82c1b34e-f349-4e42-8516-d0efc752bbaf,if=none,id=drive-virtio-disk0,format=raw,serial=35540597-c861-47b8-8acd-99ef71cbc9df,cache=none,werror=stop,rerror=stop,aio=threads: could not open disk image /rhev/data-center/02f47292-25d7-4058-99ff-e709d3fbab0a/a4474389-b66c-4fc0-b8b4-2a23bdfef4a1/images/35540597-c861-47b8-8acd-99ef71cbc9df/82c1b34e-f349-4e42-8516-d0efc752bbaf: Permission denied Version-Release number of selected component (if applicable): vdsm-4.12.0-72.git287bb7e.el6ev.x86_64 libvirt-0.10.2-22.el6.x86_64 qemu-kvm-rhev-tools-0.12.1.2-2.398.el6.x86_64 qemu-kvm-rhev-0.12.1.2-2.398.el6.x86_64 How reproducible: 100% Steps to Reproduce: 1. Create local storage DC 2. Create VM with disk 3. Start VM Actual results: Fails to start vm Expected results: VM should start Additional info: