Bug 1408672

Summary: Can't run VM with payload - permission denied trying to access payload
Product: [oVirt] vdsm Reporter: Yaniv Kaul <ykaul>
Component: CoreAssignee: Dan Kenigsberg <danken>
Status: CLOSED NEXTRELEASE QA Contact: Raz Tamir <ratamir>
Severity: high Docs Contact:
Priority: high    
Version: 4.19.11CC: bugs, danken, tjelinek
Target Milestone: ovirt-4.2.0Keywords: AutomationBlocker, Regression
Target Release: 4.20.9Flags: rule-engine: ovirt-4.2?
rule-engine: blocker+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-04 11:45:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
vdsm log
none
engine log none

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.