Hi,
I posted this thread a week ago under ovirt users:
https://lists.ovirt.org/archives/list/[email protected]/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):
* Stop the VM.
* Remove its Affinity label.
* Update its host to the target host.
* Start the VM.
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
[email protected]
[cid:[email protected]]
www.exlibrisgroup.com<http://www.exlibrisgroup.com/>
_______________________________________________
Devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct:
https://www.ovirt.org/community/about/community-guidelines/
List Archives:
https://lists.ovirt.org/archives/list/[email protected]/message/4CBZTXVGIKXCQQJDPGDDRMQ5HBVQSTY4/