Starting a defined VM on a different host
by Lavi Buchnik
Hi,
I posted this thread a week ago under ovirt users: https://lists.ovirt.org/archives/list/users@ovirt.org/thread/EJH2X5X5FDIR...
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
Lavi.Buchnik(a)exlibrisgroup.com
[cid:image002.jpg@01D710F9.A61823E0]
www.exlibrisgroup.com<http://www.exlibrisgroup.com/>
3 years, 8 months
engine build error: method does not override or implement a method from a supertype
by Sandro Bonazzola
Hi,
can anybody help solving the error
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile
(default-compile) on project restapi-jaxrs: Compilation failure
[ERROR] /home/jenkins/workspace/ovirt-engine_standard-check-patch/ovirt-engine/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendVmResource.java:[365,5]
method does not override or implement a method from a supertype
[ERROR]
or explaining why this is happening on patch
https://gerrit.ovirt.org/#/c/ovirt-engine/+/113464/
Please comment on the patch :-)
Thanks,
--
Sandro Bonazzola
MANAGER, SOFTWARE ENGINEERING, EMEA R&D RHV
Red Hat EMEA <https://www.redhat.com/>
sbonazzo(a)redhat.com
<https://www.redhat.com/>
*Red Hat respects your work life balance. Therefore there is no need to
answer this email out of your office hours.*
3 years, 8 months