Bug 1167315

Summary: Failed to resume VM
Product: Red Hat Enterprise Virtualization Manager Reporter: Pavol Brilla <pbrilla>
Component: rhev-hypervisorAssignee: Fabian Deutsch <fdeutsch>
Status: CLOSED DUPLICATE QA Contact: Nisim Simsolo <nsimsolo>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: ecohen, gklein, iheim, istein, lsurette, michal.skrivanek, ofrenkel, pbrilla, pstehlik, ycui, yeylon
Target Milestone: ---Flags: michal.skrivanek: needinfo?
Target Release: 3.5.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: virt
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-24 13:58:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1164311    
Attachments:
Description Flags
log collector none

Description Pavol Brilla 2014-11-24 12:55:22 UTC
Created attachment 960742 [details]
log collector

Description of problem:
If host is RHEV Hypervisor - 6.6 - 20141119.0.el6ev I got 
"Message: Failed to resume VM aab (Host: jb_borrowed, User: admin)."  when trying to resume VM from suspend state.


Version-Release number of selected component (if applicable):
rhevm-3.5.0-0.21.el6ev
Host: RHEV Hypervisor - 6.6 - 20141119.0.el6ev

How reproducible: 2-3 times from 15 cases
Not always

Steps to Reproduce:
1. Suspend machine ( it doesnt depend on OS of VM )
2. Resume VM
3. Got event message : Failed to resume VM 

Actual results:
Got error message that resuming failed, but VM looks fine 

Expected results:
No error message

Additional info:
2014-11-24 13:08:40,837 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (org.ovirt.thread.pool-7-thread-42) [3fd4fd38] Correla
tion ID: 3fd4fd38, Job ID: d59f093c-1269-4286-86e3-f1f84030e7a6, Call Stack: null, Custom Event ID: -1, Message: Failed to resume VM aab (Host: jb_borrowed
, User: admin).

Comment 1 Michal Skrivanek 2014-11-24 13:50:45 UTC
Logs indicate pause/unpause, not suspend. Please clarify

Comment 2 Michal Skrivanek 2014-11-24 13:58:15 UTC

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

Comment 3 Omer Frenkel 2014-11-24 14:00:19 UTC
(In reply to Michal Skrivanek from comment #1)
> Logs indicate pause/unpause, not suspend. Please clarify

in the log i see the vm was paused, not suspended, and the failure looks like json rpc related issue:

2014-11-24 13:08:40,743 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.ResumeBrokerVDSCommand] (org.ovirt.thread.pool-7-thread-42) [3fd4fd38] Command ResumeBrokerVDSCommand(HostName = jb_borrowed, HostId = 622092f3-2b25-4e52-b836-5620018ab2d6, vmId=87587ef2-ddb3-4a35-b910-14bb698bb6fb) execution failed. Exception: ClassCastException: java.lang.Boolean cannot be cast to java.util.Map
2014-11-24 13:08:40,743 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.ResumeBrokerVDSCommand] (org.ovirt.thread.pool-7-thread-42) [3fd4fd38] FINISH, ResumeBrokerVDSCommand, log id: 5453c1f7
2014-11-24 13:08:40,744 ERROR [org.ovirt.engine.core.vdsbroker.ResumeVDSCommand] (org.ovirt.thread.pool-7-thread-42) [3fd4fd38] VDS::pause Failed resume vm 87587ef2-ddb3-4a35-b910-14bb698bb6fb in vds = 622092f3-2b25-4e52-b836-5620018ab2d6 : jb_borrowed, error = java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.util.Map
2014-11-24 13:08:40,744 INFO  [org.ovirt.engine.core.vdsbroker.ResumeVDSCommand] (org.ovirt.thread.pool-7-thread-42) [3fd4fd38] FINISH, ResumeVDSCommand, return: Unknown, log id: 79f6d594
2014-11-24 13:08:40,744 INFO  [org.ovirt.engine.core.bll.RunVmCommand] (org.ovirt.thread.pool-7-thread-42) [3fd4fd38] Lock freed to object EngineLock [exclusiveLocks= key: 87587ef2-ddb3-4a35-b910-14bb698bb6fb value: VM
, sharedLocks= ]
2014-11-24 13:08:40,744 ERROR [org.ovirt.engine.core.bll.RunVmCommand] (org.ovirt.thread.pool-7-thread-42) [3fd4fd38] Command org.ovirt.engine.core.bll.RunVmCommand throw Vdc Bll exception. With error message VdcBLLException: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.util.Map (Failed with error ENGINE and code 5001)
2014-11-24 13:08:40,776 INFO  [org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo] (DefaultQuartzScheduler_Worker-96) [290a6eee] VM aab 87587ef2-ddb3-4a35-b910-14bb698bb6fb moved from Paused --> PoweringUp


this was fixed by bug 1163089