On Tue, Sep 10, 2019 at 5:19 PM <scott.fitzgerald(a)oracle.com> wrote:
In the system I currently have a Data Center with a corrupted Master
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
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:
Daniel, do we have a better way?