Bug 1028502

Summary: don't log failed migration action from REST API in Events
Product: Red Hat Enterprise Virtualization Manager Reporter: David Jaša <djasa>
Component: ovirt-engineAssignee: Arik <ahadas>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: medium    
Version: 3.3.0CC: acathrow, iheim, lpeer, michal.skrivanek, Rhev-m-bugs, yeylon
Target Milestone: ---   
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-22 14:09:50 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:

Description David Jaša 2013-11-08 15:45:21 UTC
Description of problem:
don't log failed migration action from REST API in Events. Similar action such as shutting down VM in down status are not logged either

Version-Release number of selected component (if applicable):
is21:
rhevm-backend-3.3.0-0.31.beta1.el6ev.noarch
rhevm-restapi-3.3.0-0.31.beta1.el6ev.noarch

How reproducible:
always

Steps to Reproduce:
1. issue "POST /api/vms/UUID/migrate '<action/>'"
2. issue "POST /api/vms/UUID/migrate '<action/>'" again while VM is still migrating
3. look to Events

Actual results:
two "Migration Started" messages are logged

Expected results:
just first "Migration Started" message is logged (the one that actually results in migration)

Additional info:

Comment 1 Arik 2014-06-22 14:09:50 UTC
VM is now locked while it is migrated so there's no chance anymore that migrate command will start while another one is executing for the same VM.