Bug 1205739 - [RFE][DR] - Allow recovering an imported domain without an UP DC
Summary: [RFE][DR] - Allow recovering an imported domain without an UP DC
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: vdsm
Version: 3.5.0
Hardware: All
OS: Linux
high
medium
Target Milestone: ovirt-4.2.0
: 4.2.0
Assignee: Maor
QA Contact: Elad
URL:
Whiteboard:
: 1348097 (view as bug list)
Depends On:
Blocks: RHV_DR 1534978
TreeView+ depends on / blocked
 
Reported: 2015-03-25 14:48 UTC by Allie DeVolder
Modified: 2019-05-20 11:38 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
A previously imported storage domain that was destroyed or detached can now be imported into an uninitialized Data Center. In the past, this operation failed because the storage domain retained its old metadata.
Clone Of:
Environment:
Last Closed: 2018-05-15 17:49:33 UTC
oVirt Team: Storage
Target Upstream Version:
Embargoed:
sherold: Triaged+
gklein: testing_plan_complete-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2018:1489 0 None None None 2018-05-15 17:51:04 UTC
oVirt gerrit 80662 0 master POST core: Clean pool id from metadata. 2017-08-15 12:51:55 UTC
oVirt gerrit 80665 0 master MERGED hsm: Use default host id when pool doesn't exists 2017-08-24 12:38:20 UTC

Description Allie DeVolder 2015-03-25 14:48:54 UTC
Description of problem:
When attempting to attach an imported FibreChannel storage domain to a Data Center, the process fails with no indication of why on the RHEV-M. 

Version-Release number of selected component (if applicable):
rhevm-3.5.0-0.32.el6ev.noarch 
vdsm-4.16.8.1-8.el6ev.x86_64

How reproducible:
Unknown

Steps to Reproduce:
1. Import existing Fibrechannel storage domain after rebuilding RHEV-M
2. Attempt to attach imported domain to a Data Center

Actual results:
Failure

Expected results:
Successful attachment

Comment 3 Allon Mureinik 2015-03-26 08:09:13 UTC
Seems as though the storage domain contains leftover metadata from an old pool.

Maor - isn't this the same issue as bug 1179899 ?
If so, please provide GSS with manual steps to handle the current situation so they can unblock the customer, and let's backport this patch to zstream.

Comment 4 Maor 2015-03-26 09:07:02 UTC
(In reply to Allon Mureinik from comment #3)
> Seems as though the storage domain contains leftover metadata from an old
> pool.
> 
> Maor - isn't this the same issue as bug 1179899 ?
> If so, please provide GSS with manual steps to handle the current situation
> so they can unblock the customer, and let's backport this patch to zstream.

no, it is the same as https://bugzilla.redhat.com/show_bug.cgi?id=1178646, which was fixed for 3.5.1

Comment 5 Maor 2015-03-26 09:18:42 UTC
since VDSM takes a lock on the storage pool when performing an attache operation (since we also use detach in the process), we can't import and attach a Storage Domain to an uninitialized Data Center. (see [1])

Currently we have added a validation when trying to attach an imported Storage Domain to an un-initalized Data Center 
(see https://bugzilla.redhat.com/show_bug.cgi?id=1178646)

this obstacle should be removed in a later version, once the storage pool will be removed completely in VDSM.


[1]
http://www.ovirt.org/Features/ImportStorageDomain#Implementation_gaps (section [6])

Comment 6 Maor 2015-03-26 09:21:28 UTC
Allan, please try to initialize the Data Center first by attaching it a new Storage Domain and then try to import the FC Storage Domain again

Comment 7 Allon Mureinik 2015-03-26 13:30:11 UTC
So to clarify and set an action plan:

1. You cannot attach an imported domain to an unitialized DC, since the import procedure requires an active SPM.

2. The workaround for the current customer ticket is to create a storage domain and activate it in the DC. This domain will become the master domain, and an SPM will be started. Once this is done, you can attach the domain you wanted. Then, if you wish, you could disable and remove the previous master domain.

3. In 3.5.1 This behavior is made clearer by a CDA error message (see bug 1178646).

4. In 3.6.0, once we remove the SPM (see bug 1185830), we can work on the ability to attach a domain to a newly created DC. We'll use this BZ to track it. 

Based on these comments, I've reduced the priority.

Comment 16 Vinzenz Feenstra [evilissimo] 2016-11-21 13:50:22 UTC
*** Bug 1348097 has been marked as a duplicate of this bug. ***

Comment 17 Allon Mureinik 2017-06-29 16:00:18 UTC
Maor, Nir, what are your thoughts about adding a "force clear pool MD" verb as an HSM verb.
(Sort of "this is a horrible idea, use it on your own perrill" kind of thing for DR situations where the user knows the original pool/SPM is dead)?

Comment 22 Allon Mureinik 2017-07-05 08:45:44 UTC
For the DR scenario, maybe we should consider having this as part of the tool, and not a "first class citizen" in the import flow.

Comment 24 Maor 2017-09-05 18:13:10 UTC
I believe this fix was merged to the build as well

Comment 25 Elad 2017-09-11 15:39:44 UTC
Storage pool initialization from an imported domain that was forcibly detached or destroyed is now possible. DC gets initialized successfully.



2017-09-11 18:32:15,501+03 INFO  [org.ovirt.engine.core.bll.storage.pool.AddStoragePoolWithStoragesCommand] (org.ovirt.thread.EE-ManagedThreadFactory-engine-Thread-17) [de2f8944-0186-4686-adad-d4756b42984f] Domain 'f7824010-0d88-4bcc-a167-5ab389dd8825' is already attached to a different storage pool, clean the storage domain metadata.
2017-09-11 18:32:15,508+03 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.CleanStorageDomainMetaDataVDSCommand] (org.ovirt.thread.EE-ManagedThreadFactory-engine-Thread-17) [de2f8944-0186-4686-adad-d4756b42984f] START, CleanStorageDomainMetaDataVDSCommand(HostName = host_mixed_3, StorageDomainVdsCommandParameters:{hostId='85f7a6ac-1ea9-47cf-a4f0-4f1655e63ddb', storageDomainId='f7824010-0d88-4bcc-a167-5ab389dd8825'}), log id: 64b2ad3b
2017-09-11 18:32:41,289+03 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.CleanStorageDomainMetaDataVDSCommand] (org.ovirt.thread.EE-ManagedThreadFactory-engine-Thread-17) [de2f8944-0186-4686-adad-d4756b42984f] FINISH, CleanStorageDomainMetaDataVDSCommand, log id: 64b2ad3b
2017-09-11 18:32:41,289+03 INFO  [org.ovirt.engine.core.bll.storage.pool.AddStoragePoolWithStoragesCommand] (org.ovirt.thread.EE-ManagedThreadFactory-engine-Thread-17) [de2f8944-0186-4686-adad-d4756b42984f] Successfully cleaned metadata for storage domain 'f7824010-0d88-4bcc-a167-5ab389dd8825'.



Used:
ovirt-engine-4.2.0-0.0.master.20170907100709.git14accac.el7.centos.noarch
vdsm-4.20.3-20.git1fda949.el7.centos.x86_64

Comment 26 RHV bug bot 2017-12-06 16:19:26 UTC
INFO: Bug status wasn't changed from MODIFIED to ON_QA due to the following reason:

[Project 'ovirt-engine'/Component 'vdsm' mismatch]

For more info please contact: rhv-devops

Comment 27 RHV bug bot 2017-12-12 21:17:34 UTC
INFO: Bug status wasn't changed from MODIFIED to ON_QA due to the following reason:

[Project 'ovirt-engine'/Component 'vdsm' mismatch]

For more info please contact: rhv-devops

Comment 28 Allon Mureinik 2017-12-13 16:53:25 UTC
Maor, can you please provide some doctext for this bz?

Comment 31 Elad 2018-04-24 14:29:00 UTC
Moving back to VERIFIED (comment 25)

Comment 34 errata-xmlrpc 2018-05-15 17:49:33 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://access.redhat.com/errata/RHEA-2018:1489

Comment 35 Franta Kust 2019-05-16 13:05:39 UTC
BZ<2>Jira Resync


Note You need to log in before you can comment on or make changes to this bug.