Description of problem: The attach operation should notify the user, a warning, whether the Storage Domain is already attached to another Data Center. The user can then choose whether to run over the meta data or neglect his operation. Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: 1. Attach a Storage Domain already attached to another setup 2. 3. Actual results: Storage Domain will be attached and run over the former meta data Expected results: We should add a warning indicating that the Storage Domain is already attached to another Data Center Additional info:
Why a warning? Shouldn't we just block it?
because the storage domain might be already attached to another working setup, or it can be part of the DR porocess
This is a very risky change, with a limited reward. Pushing out.
Julie, Thanks for the doctext! However, I think it's missing an important point - this BZ related to a storage domain that is connected to a data center in a *different setup* (i.e., a data center managed by a different engine). If you attempt to attach a storage domain to a different data center in the same DC, you'll get a different error message, and will not be given the option to forecefully overwrite the metadata - you'd have to properly detach the domain from the data center first.
Maor, I seem to be missing something here. In the steps to reproduce you wrote: 1. Attach a Storage Domain already attached to another setup When I go to the Data Centre Tab - Press on Attach Data I get a message saying that there are no available Storage domains to attach. No external domains are displayed here When creating a new storage domain you already attach it to a DC and then these storage domains are not displayed as available So how do I reproduce this scenario?
You should do the following: 1. Create a new setup with Storage Domain VMs and disks 2. Move the Storage Domain to maintenance 3. Create a new setup with a new DC, new Storage Domain and Host, so the Data Center will be active and initialized 4. import the old storage domain to the setup to the specific DC Expected result: You should see a warning when attaching the Storage Domain that it is already attached to a different Data Center
Created attachment 1027704 [details] image Tested using ovirt-engine-3.6.0-0.0.master.20150412172306.git55ba764.el6 Verification instructions: 1. Create a new setup with Storage Domain VMs and disks 2. Move the Storage Domain to maintenance 3. Create a new setup with a new DC, new Storage Domain and Host, so the Data Center will be active and initialized 4. import the old storage domain to the setup to the specific DC Result: warning message should appear: "Storage Domain(s) are already attached to a Data Center. Approving this operation might cause data corruption if both Data Centers are active"
RHEV 3.6.0 has been released, setting status to CLOSED CURRENTRELEASE