Transfer Host during Cluster creation

Hi, I have a cluster, Cluster1, and a host, Host1. I have set Host1 to maintenance, and want create a second cluster, Cluster2, and place Host1 into Cluster2 and set it to active. Through the UI this is done by selecting the "Select Hosts" option during Cluster creation. How can I achieve the same through the SDK? TIA

Hi, here is the Python SDK example doing what you need: https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/change_ho... Ondra On 01/10/2019 16:25, scott.fitzgerald@oracle.com wrote:
Hi,
I have a cluster, Cluster1, and a host, Host1. I have set Host1 to maintenance, and want create a second cluster, Cluster2, and place Host1 into Cluster2 and set it to active. Through the UI this is done by selecting the "Select Hosts" option during Cluster creation. How can I achieve the same through the SDK?
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/ZA2CTVVFDU6X4N...

Hi Ondra, This is slightly different to what I want to do. The example is moving a host from one existing cluster to another. I want to move it on creation of a new Cluster, imitating the "Select Hosts" functionality. Is the above the only way to achieve this, or is there a way to update the cluster with a host, as opposed to needing to update a host with a cluster? Cheers
participants (2)
-
Ondra Machacek
-
scott.fitzgerald@oracle.com