Bug 1573465 - [DOC][DR] Document the fact that hosted engine storage domain and its entities won't be backed up in DR failover and failback [NEEDINFO]
Summary: [DOC][DR] Document the fact that hosted engine storage domain and its entitie...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: Documentation
Version: 4.5.3
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: ovirt-4.5.3-async
: ---
Assignee: Eli Marcus
QA Contact: rhev-docs@redhat.com
URL:
Whiteboard: target 4.5.3 or 4.5.4
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-01 11:10 UTC by Elad
Modified: 2024-03-25 16:44 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-12-20 13:17:43 UTC
oVirt Team: Storage
Target Upstream Version:
Embargoed:
emarcus: needinfo?


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-37615 0 None None None 2021-12-27 15:15:14 UTC

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?


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