Description of problem: On version: rhevm-3.5.0-0.1000.2890.efcac0a.master.el6ev.noarch, export VM fail for 3.3 cluster. Steps to Reproduce: It was found on this test: http://jenkins-ci.eng.lab.tlv.redhat.com/view/0%20Unstable%203.5/job/rhevm_3.5_automation_coretools_two_hosts_restapi_vms_nfs_rest_factory/27/ In the test we export VM, on 3.3 dc/cluster, remove the VM locally, and then import it. The Import fail on backend error: "Cannot import VM. The relevant Cluster doesn't exist." Relevant section from engine.log: 2014-05-05 15:29:59,963 INFO [org.ovirt.engine.core.bll.ImportVmCommand] (ajp-/127.0.0.1:8702-8) [476] Lock Acquired to object EngineLock [exclusiveLocks= key: restvm_export value: VM_NAME , sharedLocks= key: 6eb9d103-d4e2-41ab-a242-fc43c35aa5f0 value: REMOTE_VM ] 2014-05-05 15:29:59,963 WARN [org.ovirt.engine.core.bll.ImportVmCommand] (ajp-/127.0.0.1:8702-8) [476] CanDoAction of action ImportVm failed. Reasons:VAR__ACTION__IMPORT,VAR__TYPE__VM,ACTION_TYPE_FAILED_CLUSTER_CAN_NOT_BE_EMPTY 2014-05-05 15:29:59,964 INFO [org.ovirt.engine.core.bll.ImportVmCommand] (ajp-/127.0.0.1:8702-8) [476] Lock freed to object EngineLock [exclusiveLocks= key: restvm_export value: VM_NAME , sharedLocks= key: 6eb9d103-d4e2-41ab-a242-fc43c35aa5f0 value: REMOTE_VM ] 2014-05-05 15:29:59,968 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (ajp-/127.0.0.1:8702-8) Operation Failed: [Cannot import VM. The relevant Cluster doesn't exist.]
Created attachment 893191 [details] logs
does this happen all the time? is this reproducible manually as well?
Yes it happens all the time, ever since this test started to run on rhevm 3.5: http://jenkins-ci.eng.lab.tlv.redhat.com/view/0%20Unstable%203.5/job/rhevm_3.5_automation_coretools_two_hosts_restapi_vms_nfs_rest_factory/ As for manual reproduce - I'll update once I'll have a 3.5 setup.
Same problem on 3.5 pre
This bug happen on a 3.5 setup, for DC\Cluster 3.4 as well (Seen that looking on recent build of this test: http://jenkins-ci.eng.lab.tlv.redhat.com/view/0%20Unstable%203.5/job/rhevm_3.5_automation_coretools_two_hosts_restapi_vms_nfs_rest_factory/) Patch seem to resolve the problem, since for 5 test builds, since May 22, this same import VM test case has been passing.
This failure do not appear any more for that same jenkins job, mentioned in description, for run at Jul 29.
RHEV-M 3.5.0 has been released