Bug 1573465

Summary: [DOC][DR] Document the fact that hosted engine storage domain and its entities won't be backed up in DR failover and failback
Product: Red Hat Enterprise Virtualization Manager Reporter: Elad <ebenahar>
Component: DocumentationAssignee: Eli Marcus <emarcus>
Status: CLOSED NOTABUG QA Contact: rhev-docs <rhev-docs>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.5.3CC: adahms, ahadas, apinnick, ctomasko, emarcus, lsurette, mhicks, pbar, srevivo
Target Milestone: ovirt-4.5.3-asyncKeywords: Documentation, EasyFix, NoDocsQEReview
Target Release: ---Flags: emarcus: needinfo?
Hardware: x86_64   
OS: Unspecified   
Whiteboard: target 4.5.3 or 4.5.4
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-12-20 13:17:43 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:

Description Elad 2018-05-01 11:10:31 UTC
Description of problem:

Disaster recovery of hosted engine environment doesn't include hosted engine storage domain import. So, it means that in case that the hosted engine domain contains entities like disks and OVFs (apart from the hosted engine itself), these entities won't be registered in the target DR environment.
We need to add this fact to RHV documentation.

Comment 1 Arik 2021-12-27 15:15:39 UTC
Pavel, is it still correct? If it is, do we know why it doesn't work?

Comment 2 Pavel Bar 2021-12-29 10:53:18 UTC
(In reply to Arik from comment #1)
> Pavel, is it still correct? If it is, do we know why it doesn't work?

I didn't know the answer, but from the code looks like the bug is still relevant.
Looking at "generate_mapping.py::_write_attached_storage_domains()":
----------------------------------------------------------------------------------
    for attached_sd in attached_sds_list:
        if attached_sd.name == 'hosted_storage':
            f.write("# Hosted storage should not be part of the "
                    "recovery process! Comment it out.\n")
            f.write("#- dr_domain_type: %s\n" % attached_sd.storage.type)
            f.write("#  dr_primary_name: %s\n" % attached_sd.name)
            f.write("#  dr_primary_dc_name: %s\n\n" % dc.name)
            continue
        ....
----------------------------------------------------------------------------------

Validation at the "validator.py::run()" has the following validation:
----------------------------------------------------------------------------------
    if not self._validate_hosted_engine(python_vars):
        self._print_finish_error()
        sys.exit()
    ....

    def _validate_hosted_engine(self, var_file):
        domains = var_file[self.domain_map]
        hosted = 'hosted_storage'
        for domain in domains:
            primary = domain['dr_primary_name']
            secondary = domain['dr_secondary_name']
            if primary == hosted or secondary == hosted:
                print("%s%sHosted storage domains are not supported.%s"
                      % (FAIL, PREFIX, END))
                return False
        return True
----------------------------------------------------------------------------------

Comment 5 Elad 2023-04-13 16:41:59 UTC
I am not part of Red Hat or RHV anymore.

Comment 6 ctomasko 2023-10-30 14:08:29 UTC
@emarcus Since the status is in Post, do you have an open item that needs review? Can you complete this work?