Hi,
I posted this thread a week ago under ovirt users:
https://lists.ovirt.org/archives/list/users@ovirt.org/thread/EJH2X5X5FDIR7Q7NTHOPYTNMOE3M6JDD/?sort=date
Maybe I posted on the wrong list. Anyway, I didn’t get any answer yet.
Hope you can help me here.
In short, I have a VM under Cluster Affinity label. And need to cold migrate this VM to another host.
For that, I’m doing this (Via Python REST API):
But the result is that the VM is always keep starting on its current host.
For updating the VM host, I used few ways as:
vm_service.update(
types.Vm(
host=types.Host(
id=host_id
),
)
)
Or:
vm_service.update(
types.Vm(
host=types.Host(
name=host_name
),
)
)
Then started the VM using:
vm_service.start()
or using:
vm_service.start(
vm=types.Vm(
host=types.Host(
name=host_name
),
)
)
vm_service.start(
vm=types.Vm(
host=types.Host(
id=host_id
),
)
)
I get no errors, but VM keeps starting on the current host and not on the new target host.
BTW – in case it would start on the target host, the plan is to add affinity label back just after.
Thanks,
Lavi Buchnik
Cloud System Engineer
T: +972-2-6499352
M: +972-52-8542307
Lavi.Buchnik@exlibrisgroup.com