Reinitialize Data Center with corrupted Master Domain

Hi all, In the system I currently have a Data Center with a corrupted Master Domain, and a spare, unattached Domain. How do I use the SDK to reinitialize the Data Center by attaching the unattached Domain? Simply reattaching it doesn't seem to register as a proper re initialization, despite the system showing an active status for the data center after the attachment. Cheers.

On Tue, Sep 10, 2019 at 5:19 PM <scott.fitzgerald@oracle.com> wrote:
Hi all,
In the system I currently have a Data Center with a corrupted Master Domain,
Corrupted intentionally for testing? and a spare, unattached Domain. How do I use the SDK to reinitialize the
Data Center by attaching the unattached Domain? Simply reattaching it doesn't seem to register as a proper re initialization, despite the system showing an active status for the data center after the attachment.
This will reconstruct the master doamin on your spare domain: 1. attach the spare domain 2. activate the spare domain 3. wait until the spare domain is ACTIVE 4. deactivate the master domain 5. wait until the master domain is in MAINTENANCE At this point the spare domain should be the master domain. See ovirt-system-tests for example of using the SDK: https://github.com/oVirt/ovirt-system-tests/blob/48aa99a272034a451e159fa0de7... Daniel, do we have a better way? Nir

Hi Nir, Yes, the Domain was corrupted as part of a test case. I had tried a fix similar to yours, however the logger doesn't register that the Master Domain was reconstructed. Any other ideas? Cheers.
participants (2)
-
Nir Soffer
-
scott.fitzgerald@oracle.com