Bug 1408672 - Can't run VM with payload - permission denied trying to access payload
Summary: Can't run VM with payload - permission denied trying to access payload
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: vdsm
Classification: oVirt
Component: Core
Version: 4.19.11
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.2.0
: 4.20.9
Assignee: Dan Kenigsberg
QA Contact: Raz Tamir
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-26 10:29 UTC by Yaniv Kaul
Modified: 2017-12-06 11:22 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-04 11:45:03 UTC
oVirt Team: Virt
Embargoed:
rule-engine: ovirt-4.2?
rule-engine: blocker+


Attachments (Terms of Use)
vdsm log (20.34 KB, application/x-xz)
2016-12-26 10:29 UTC, Yaniv Kaul
no flags Details
engine log (210.76 KB, application/x-xz)
2016-12-26 10:29 UTC, Yaniv Kaul
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 69163 0 master MERGED tmpfiles: let qemu read payload 2016-12-27 10:27:59 UTC

Description Yaniv Kaul 2016-12-26 10:29:08 UTC
Created attachment 1235330 [details]
vdsm log

Description of problem:
When trying to run VM with payload, it fails due to permission denied:
2016-12-26 05:16:56,805 ERROR (vm/a54b4957) [virt.vm] (vmId='a54b4957-308e-409e-90c1-470a68cd754a') The vm start process failed (vm:616)
Traceback (most recent call last):
  File "/usr/share/vdsm/virt/vm.py", line 552, in _startUnderlyingVm
    self._run()
  File "/usr/share/vdsm/virt/vm.py", line 1993, in _run
    self._connection.createXML(domxml, flags),
  File "/usr/lib/python2.7/site-packages/vdsm/libvirtconnection.py", line 123, in wrapper
    ret = f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 941, in wrapper
    return func(inst, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3782, in createXML
    if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self)
libvirtError: internal error: process exited while connecting to monitor: 2016-12-26T10:16:56.605466Z qemu-kvm: -drive file=/var/run/vdsm/payload/a54b4957-308e-409e-90c1-470a68cd754a.57ae79e33f43177978fa6f9cfef8
b5de.img,format=raw,if=none,id=drive-ide0-1-1,readonly=on: Could not open '/var/run/vdsm/payload/a54b4957-308e-409e-90c1-470a68cd754a.57ae79e33f43177978fa6f9cfef8b5de.img': Permission denied
2016-12-26 05:16:56,809 INFO  (vm/a54b4957) [virt.vm] (vmId='a54b4957-308e-409e-90c1-470a68cd754a') Changed state to Down: internal error: process exited while connecting to monitor: 2016-12-26T10:16:56.605466Z 
qemu-kvm: -drive file=/var/run/vdsm/payload/a54b4957-308e-409e-90c1-470a68cd754a.57ae79e33f43177978fa6f9cfef8b5de.img,format=raw,if=none,id=drive-ide0-1-1,readonly=on: Could not open '/var/run/vdsm/payload/a54b4
957-308e-409e-90c1-470a68cd754a.57ae79e33f43177978fa6f9cfef8b5de.img': Permission denied (code=1) (vm:1198)


Version-Release number of selected component (if applicable):
vdsm-4.19.1-32.git08f506f.el7.centos.x86_64.rpm

How reproducible:
Always - and seems to be a regression from 4.0.

Steps to Reproduce:
1. Run ovirt-system-tests on Master (or 4.1)

Comment 1 Red Hat Bugzilla Rules Engine 2016-12-26 10:29:15 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 2 Yaniv Kaul 2016-12-26 10:29:46 UTC
Created attachment 1235331 [details]
engine log

Comment 3 Tomas Jelinek 2017-01-04 10:54:21 UTC
@Dan: can this really happen also on the 4.1? I see the patch causing the issue was merged only to master.

Comment 4 Dan Kenigsberg 2017-01-04 11:45:03 UTC
Correct. This is master only, and needs no further follow up.


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