Bug 1138126

Summary: [ImportDomain] Engine should add a CDA validation when trying to attach an imported Storage Domain to an un-initalized Data Center
Product: Red Hat Enterprise Virtualization Manager Reporter: Maor <mlipchuk>
Component: ovirt-engineAssignee: Maor <mlipchuk>
Status: CLOSED ERRATA QA Contact: Ori Gofen <ogofen>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: acanan, amureini, gklein, jbuchta, juwu, lpeer, pzhukov, rbalakri, Rhev-m-bugs, scohen, yeylon, ykaul
Target Milestone: ovirt-3.6.0-rcKeywords: ZStream
Target Release: 3.6.0Flags: amureini: Triaged+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, when trying to attach an imported storage domain that carried existing metadata to an uninitialized data center, an exception from VDSM was returned with no proper warning message. With this update, the storage domain is checked for existing metadata and an error message is provided to advise users to attach a clean storage domain first.
Story Points: ---
Clone Of:
: 1178646 (view as bug list) Environment:
Last Closed: 2016-03-09 20:39:37 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: 1178646    

Description Maor 2014-09-04 06:39:27 UTC
Description of problem:
Engine should add a CDA validation when trying to attach an imported Storage Domain to an un-initalized Data Center, since as part of the attach process it also use detach

Currently, VDSM take a lock on the storage pool when performing a detach operation, this obstacle should be removed in a later version, once the storage pool will be removed completely in VDSM.

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


How reproducible:
100%

Steps to Reproduce:
1. Try to attach an imported Storage Domain to an uninitialized Data Center
2.
3.

Actual results:
The domain will fail to be attached

Expected results:
A proper CDA message should be present to the user

Additional info:

Comment 1 Allon Mureinik 2014-11-26 17:16:37 UTC
Once the domain is attached, there's no indication in the DB where it came from - we need to query the /storage/ in order to do this.
Pushing out to 3.6.0

Comment 3 Ori Gofen 2015-04-19 11:58:37 UTC
Verified on oVirt3.6.1 master

Comment 6 errata-xmlrpc 2016-03-09 20:39:37 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-0376.html