On Tue, Sep 10, 2019 at 5:19 PM <scott.fitzgerald(a)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/48aa99a272034a451e159fa0...
Daniel, do we have a better way?
Nir