Bug 1340025

Summary: v2v: import dialog - invalid error message while opening dialog saying "no Export Domain is active"
Product: [oVirt] ovirt-engine Reporter: Sharon Gratch <sgratch>
Component: BLL.VirtAssignee: Sharon Gratch <sgratch>
Status: CLOSED CURRENTRELEASE QA Contact: Nisim Simsolo <nsimsolo>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0.0CC: bugs, mburman, michal.skrivanek, nsimsolo
Target Milestone: ovirt-4.0.4Flags: rule-engine: ovirt-4.0.z+
rule-engine: planning_ack+
rule-engine: devel_ack+
mavital: testing_ack+
Target Release: 4.0.4   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-26 12:32:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Description Flags
screenshot none

Description Sharon Gratch 2016-05-26 10:39:35 UTC
Created attachment 1161885 [details]

Description of problem:
When opening the "import Virtual Machine(s)" dialog, the following error message always appears on start: "Not available when no Export Domain is active", although an active export domain does exist and active. 

Note that after selecting other source (like VMware) and then re-selecting "Export Domain" source again (without changing anything else), the error disappears.

Version-Release number of selected component (if applicable):
4.0.0 beta

How reproducible:

Steps to Reproduce:
1.make sure there is an active export domain
2.Browse webadmin and open "import" dialog.

Actual results:
an error appears: "Not available when no Export Domain is active"

Expected results:
the error is invalid and shouldn't appear

Additional info:
see attached screenshot.

Comment 1 Sharon Gratch 2016-06-09 12:38:52 UTC
After the bug fix, the dialog behavior is as follows:
1. While opening the dialog - error message and button disabling appears only if no export doamin really exists for that DC.

2. Changing the Source from other source back to be "Export Domain" - no actual verification is done for export domain existence. The previous status is kept and displayed. 

3. Selecting other Data Center for the "export Domain" source - actual verification is done by querying the DB and in case no export Domain exists then an err msg is displayed and "load" button is disabled. 

Furtheremore, this bug fix also cleans the VMs lists after selecting other Data Center.

Comment 2 Michal Skrivanek 2016-07-28 07:58:58 UTC
*** Bug 1359667 has been marked as a duplicate of this bug. ***

Comment 3 Michal Skrivanek 2016-07-28 07:59:58 UTC
let's backport it to 4.0.z

Comment 4 Nisim Simsolo 2016-09-04 12:42:09 UTC