Bug 878064

Summary: engine: Error while executing action SetVmTicket: Unexpected exception
Product: Red Hat Enterprise Virtualization Manager Reporter: Dafna Ron <dron>
Component: ovirt-engineAssignee: Roy Golan <rgolan>
Status: CLOSED ERRATA QA Contact: Dafna Ron <dron>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.1.0CC: dyasny, hateya, iheim, knesenko, lpeer, michal.skrivanek, Rhev-m-bugs, sgrinber, yeylon, ykaul, zdover
Target Milestone: ---Keywords: Reopened
Target Release: 3.2.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: virt
Fixed In Version: vdsm-4.10.2-11.0.el6ev Doc Type: Bug Fix
Doc Text:
Previously, when attempting to live migrate a virtual machine from one host to another host, a TimeoutError appeared, which read "TimeoutError: Timed out during operation: cannot acquire state change lock in vdsm for setVmTicket has an exception error in UI." VDSM did not attempt to contact QEMU for storage sampling. VDSM has now been updated to contact QEMU for storage sampling. Now, when TimeoutErrors appear during live migration, they are more specific.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-10 20:34:58 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: 922807    
Attachments:
Description Flags
logs none

Description Dafna Ron 2012-11-19 15:23:06 UTC
Created attachment 647824 [details]
logs

Description of problem:

TimeoutError: Timed out during operation: cannot acquire state change lock in vdsm for setVmTicket has an exception error in UI. 

Version-Release number of selected component (if applicable):

si24.2

How reproducible:

100%

Steps to Reproduce:
1. create and run a vm 
2. live migrate the vm -> once snapshot is created try to migrate the vm to a different host
3. after migration fails try to open spice monitor to vm
  
Actual results:

 Unexpected exception in engine log will prompt error in UI: Error while executing action SetVmTicket: Unexpected exception

Expected results:

we need to have a clear error for the exception

Additional info: logs

Comment 5 Michal Skrivanek 2012-12-05 12:30:37 UTC
dafna, can you please clarify the scenario? what is "once snapshot is created"

Comment 6 Dafna Ron 2012-12-05 12:39:51 UTC
when we move a disk we create a live snapshot. 
once snapshot is created -> after the live snapshot is created for the live migration.

Comment 7 Roy Golan 2012-12-06 15:30:33 UTC
the error will not occur in that scenario after bug 872277 resolution. still worth catching this Monitor timeout exception and set the correct message in VDSM error object

Comment 9 Roy Golan 2012-12-20 15:39:05 UTC
mistakenly closed it. proposed patch for VDSM and engine:
http://gerrit.ovirt.org/#/q/topic:878064,n,z

Comment 11 Cheryn Tan 2013-04-03 07:02:23 UTC
This bug is currently attached to errata RHBA-2012:14332. If this change is not to be documented in the text for this errata please either remove it from the errata, set the requires_doc_text flag to minus (-), or leave a "Doc Text" value of "--no tech note required" if you do not have permission to alter the flag.

Otherwise to aid in the development of relevant and accurate release documentation, please fill out the "Doc Text" field above with these four (4) pieces of information:

* Cause: What actions or circumstances cause this bug to present.

* Consequence: What happens when the bug presents.

* Fix: What was done to fix the bug.

* Result: What now happens when the actions or circumstances above occur. (NB: this is not the same as 'the bug doesn't present anymore')

Once filled out, please set the "Doc Type" field to the appropriate value for the type of change made and submit your edits to the bug.

For further details on the Cause, Consequence, Fix, Result format please refer to:

https://bugzilla.redhat.com/page.cgi?id=fields.html#cf_release_notes

Thanks in advance.

Comment 12 Dafna Ron 2013-05-21 12:39:41 UTC
there is CanDoAction added to the live storage migration + live migration. 

I tested after the CanDoAction and after the live storage migration ended + live migration of the vm. 

we cannot connect to the graphic server after the vm migrated but no exception
moving to verified.

Comment 14 errata-xmlrpc 2013-06-10 20:34:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2013-0886.html