Created attachment 901236[details]
vdsm and engine logs
Description of problem:
When trying to live migrate vm disk to the same domain (through REST api) the disk is already exist in, it will cause an infinite loop of the task 'LiveMigrateDiskCommand'.
Version-Release number of selected component (if applicable):
vdsm-4.14.7-1.el6ev.x86_64
rhevm-3.4.0-0.20.el6ev.noarch
How reproducible:
100%
Steps to Reproduce:
1. start the vm
2.
POST in:
https://ratamir-upgrade.scl.lab.tlv.redhat.com/api/vms/45f276a8-fed0-4bb9-963d-e2f9d02ea737/disks/2f859bbd-e6f4-4264-a90b-2551185aafa1/move
-->
<action>
<storage_domain id="4747a9e2-d7e3-441f-a4d8-d00ca8f7f34f"/>
</action>
** 4747a9e2-d7e3-441f-a4d8-d00ca8f7f34f is the source domain!
3.
Actual results:
Infinite loop of 'LiveMigrateDiskCommand' will start
Expected results:
This action should be blocked
Additional info: