Bug 1176436

Summary: [ImportDomain] Import data domain should alert if was invoked on unsupported data centers
Product: Red Hat Enterprise Virtualization Manager Reporter: Tal Nisan <tnisan>
Component: ovirt-engine-webadmin-portalAssignee: Tal Nisan <tnisan>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Stehlik <pstehlik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: acanan, amureini, ecohen, gklein, iheim, kgoldbla, lsurette, mlipchuk, rbalakri, Rhev-m-bugs, sherold, tnisan, yeylon
Target Milestone: ---Keywords: UserExperience
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: ovirt-engine-3.5.0_vt13.6 Doc Type: Bug Fix
Doc Text:
In webadmin in the import storage domain dialog, in case we are selecting an import to a data center which version does not support an import of a storage domain with its entities, a warning icon will be displayed with a warning message that will be displayed when hovering above it.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-16 19:09:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1164308, 1164311    

Description Tal Nisan 2014-12-21 20:04:50 UTC
Description of problem:
Import of a data domain is available for data centers from version 3.5 and above, in case we select a 3.5 data center and then select a lower version data center, the import of a data domain options are not cleared and are selectable

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

How reproducible:
100%

Steps to Reproduce:
1. In the storage domain main tab click on "Import domain"
2. If the default domain selected is of version <3.5 select "None" and then return to the default domain 
3. If the default domain select is 3.5 select a version <3.5 domain

Actual results:
When the domain with a version lower than 3.5 is selected the import data domain options will not disappear and remain selectable even though the action is not supported

Expected results:
The options should not be selectable for domain lower than version 3.5

Additional info:

Comment 1 Allon Mureinik 2014-12-21 21:17:31 UTC
Does it at least fail with a CDA in the backend?

Comment 2 Maor 2014-12-23 19:10:33 UTC
We should be able to import a Storage Domain for Data Center lower then 3.5, but if this storage domain is already attached to another Data Center, then we will fail.
So I think that the appropriate solution for this bug is to let the user import a Storage Domain for Data Center lower the 3.5 version, if the Storage Domain is already attached to another Data Center we should block this in the CDA other wise it should let the Storage Domain to be attached to the Data Center and add a warning whether this Storage Domain contains OVF_STORE disks, but attached to a Data Center with version lower the 3.5.

What is your opinion about this?
Do you think it sounds like a logical behavior or maybe this solution is better or you have other suggestions?

Comment 3 Allon Mureinik 2014-12-24 16:36:22 UTC
Importing an existing domain should be possible, but we should not fail on actions we know cannot work (force detaching, downloading OVFs).

In this case, we should have an audit log with the proper warning.

Comment 4 Kevin Alon Goldblatt 2015-01-14 12:09:29 UTC
Checked on version v3.5 13.6

Moving to Verified

Comment 5 Allon Mureinik 2015-02-16 19:09:55 UTC
RHEV-M 3.5.0 has been released, closing this bug.