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.]