Created attachment 636693[details]
sosreport
Description of problem:
When VM is stater in paused mode and user tries to unpause it, follwoing error appears in GUI (see screenshot)
Error while executing action: Cannot run VM. There are no available running Hosts in the Host Cluster.
Version-Release number of selected component (if applicable):
RHEV-M
rhevm-3.1.0-25.el6ev.noarch.rpm
LIBVIRT
libvirt-0.9.10-21.el6.x86_64.rpm
VDSM
vdsm-4.9.6-40.0.el6_3.x86_64.rpm
QEMU-KVM
qemu-kvm-rhev-0.12.1.2-2.295.el6_3.4.x86_64.rpm
How reproducible:
100%
Steps to Reproduce:
1. Create new VM with disk
2. Run once -> start in paused mode
3. Try to run the machine
Actual results:
Error message appears, VM does not start
Expected results:
VM starts
Additional info:
logs from host are in following path in attache logcollector
/mp-rhevm31-2012110115261351779964/tmp/logcollector/RHEVH-and-PostgreSQL-reports/dell-r210ii-05.rhev.lab.eng.brq.redhat.com/
vdsm.log
Thread-1823::WARNING::2012-11-01 14:20:46,124::libvirtvm::1622::vm.Vm::(_readPauseCode) vmId=`a7efc488-0442-49bd-ad5b-b8e334ffc3d1`::_readPauseCode unsupported by libvirt vm
engine.log
2012-11-01 15:20:45,436 INFO [org.ovirt.engine.core.vdsbroker.CreateVmVDSCommand] (ajp-/127.0.0.1:8702-8) [3e5835e9] IncreasePendingVms::CreateVmIncreasing vds dell-r210ii-05.rhev.lab.eng.brq.redhat.com pending vcpu count, now 1. Vm: START_PAUSED
This is not a libvirt bug. The functionality works as expected when libvirt is used directly. Moreover, according to the logs nothing even tried to call any API for that domain except for getting block stats. Also, the message from vdsm.log is just a warning and it does not in fact have anything to do with libvirt. Look at _readPauseCode implementation in libvirtvm.py:
def _readPauseCode(self, timeout):
self.log.warning('_readPauseCode unsupported by libvirt vm')
return 'NOERR'
I'm moving this bug to vdsm so that they can check where the real issue is.
I'm afraid this has to go further up the management stack as - at least in the attached logs - there is no trace of someone requesting to "cont" the vm a7efc488-0442-49bd-ad5b-b8e334ffc3d1.
I vdsm reporting the Paused state, but no attempt to change it later.
engine.log:2012-11-01 15:20:47,477 INFO [org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo] (QuartzScheduler_Worker-86) VM START_PAUSED a7efc488-0442-49bd-ad5b-b8e334ffc3d1 moved from WaitForLaunch --> Paused
Created attachment 636693 [details] sosreport Description of problem: When VM is stater in paused mode and user tries to unpause it, follwoing error appears in GUI (see screenshot) Error while executing action: Cannot run VM. There are no available running Hosts in the Host Cluster. Version-Release number of selected component (if applicable): RHEV-M rhevm-3.1.0-25.el6ev.noarch.rpm LIBVIRT libvirt-0.9.10-21.el6.x86_64.rpm VDSM vdsm-4.9.6-40.0.el6_3.x86_64.rpm QEMU-KVM qemu-kvm-rhev-0.12.1.2-2.295.el6_3.4.x86_64.rpm How reproducible: 100% Steps to Reproduce: 1. Create new VM with disk 2. Run once -> start in paused mode 3. Try to run the machine Actual results: Error message appears, VM does not start Expected results: VM starts Additional info: logs from host are in following path in attache logcollector /mp-rhevm31-2012110115261351779964/tmp/logcollector/RHEVH-and-PostgreSQL-reports/dell-r210ii-05.rhev.lab.eng.brq.redhat.com/ vdsm.log Thread-1823::WARNING::2012-11-01 14:20:46,124::libvirtvm::1622::vm.Vm::(_readPauseCode) vmId=`a7efc488-0442-49bd-ad5b-b8e334ffc3d1`::_readPauseCode unsupported by libvirt vm engine.log 2012-11-01 15:20:45,436 INFO [org.ovirt.engine.core.vdsbroker.CreateVmVDSCommand] (ajp-/127.0.0.1:8702-8) [3e5835e9] IncreasePendingVms::CreateVmIncreasing vds dell-r210ii-05.rhev.lab.eng.brq.redhat.com pending vcpu count, now 1. Vm: START_PAUSED