Bug 1095223

Summary: Import VM fail on 3.3 "Cluster doesn't exist", though it does exist.
Product: Red Hat Enterprise Virtualization Manager Reporter: Ilanit Stein <istein>
Component: ovirt-engineAssignee: Omer Frenkel <ofrenkel>
Status: CLOSED CURRENTRELEASE QA Contact: Ilanit Stein <istein>
Severity: high Docs Contact:
Priority: high    
Version: 3.5.0CC: amureini, eedri, gklein, iheim, istein, lpeer, mavital, michal.skrivanek, mlipchuk, ofrenkel, pedro.aleluia, rbalakri, Rhev-m-bugs, sherold, yeylon
Target Milestone: ---Keywords: Regression
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: ovirt-3.5.0-alpha2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-17 08:26:53 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: 1142923, 1156165    
Attachments:
Description Flags
logs none

Description Ilanit Stein 2014-05-07 10:21:59 UTC
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.]

Comment 1 Ilanit Stein 2014-05-07 10:24:54 UTC
Created attachment 893191 [details]
logs

Comment 2 Omer Frenkel 2014-05-11 06:28:54 UTC
does this happen all the time? is this reproducible manually as well?

Comment 3 Ilanit Stein 2014-05-11 06:47:20 UTC
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.

Comment 4 Pedro Aleluia 2014-05-19 14:59:10 UTC
Same problem on 3.5 pre

Comment 6 Ilanit Stein 2014-05-25 09:01:46 UTC
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.

Comment 7 Ilanit Stein 2014-07-29 10:27:29 UTC
This failure do not appear any more for that same jenkins job, mentioned in description, for run at Jul 29.

Comment 8 Omer Frenkel 2015-02-17 08:26:53 UTC
RHEV-M 3.5.0 has been released