Hi,

The admin cannot select the SPM host. It is selected automatically.

On Tue, Oct 15, 2019 at 12:45 PM <scott.fitzgerald@oracle.com> wrote:
System currently hasĀ  1 DC, 1 cluster, 2 active hosts in cluster and 1 domain.

Host1 is SPM, through UI I can set Host2 to SPM, Host1 becomes Non-SPM host.

Through the SDK I can use
SpmBuilder spmBuilder = new SpmBuilder().priority(7);
sysService.hostsService().hostService(host.id()).update().host(host().spm(spmBuilder)).send();
to update host SPM priority.

I cannot find a way to use the SDK to change the Host to SPM mode directly, despite using spm().status in a similar manner as above for the priority. How can I achieve this?

TIA
_______________________________________________
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/RWO7O6WQUREVUU62GUREQVT7SH22Z6QA/