Bug 1933238
Summary: | Allow migration of vms in between the clusters using ansible | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Marian Jankular <mjankula> |
Component: | ovirt-ansible-collection | Assignee: | Martin Necas <mnecas> |
Status: | CLOSED ERRATA | QA Contact: | Guilherme Santos <gdeolive> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4.4.3 | CC: | ahadas, gdeolive, mavital, michal.skrivanek, mperina, pagranat |
Target Milestone: | ovirt-4.4.6 | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | ovirt-ansible-collection-1.5.0 | Doc Type: | No Doc Update |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-06-01 13:23:43 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Marian Jankular
2021-02-26 08:47:38 UTC
Hi, create a patch on the ansible collection which adds the capability to migrate between clusters. Failed on: ovirt-engine-4.4.6.6-0.10.el8ev.noarch ovirt-ansible-collection-1.4.2-1.el8ev.noarch Steps: 1. Have 2 hosts in two different clusters and a vm running in one of them 2. # ansible localhost -c localhost -m ovirt.ovirt.ovirt_vm -a "name=vm_1 cluster=cl_2 state=running migrate=true auth='url=https://<engine-fqdn>/ovirt-engine/api username=admin@internal password=<pass> insecure=true'" -v An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ovirtsdk4.Error: Fault reason is "Operation Failed". Fault detail is "[Cannot update a VM in this status. Try stopping the VM first.]". HTTP response code is 409. localhost | FAILED! => { "changed": false, "msg": "Fault reason is \"Operation Failed\". Fault detail is \"[Cannot update a VM in this status. Try stopping the VM first.]\". HTTP response code is 409." } Results: Fails on ansible (also tried with setting force_migrate as true), but it succeeds on API (also tried) logs? Please specify also host and retry it. Verified as it works when specifying the host. Open another bug (BZ1961353) though as imho I think it should work also not specifying the host (when the VM is running, if the VM is stopped, the host don't need to be specified) Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: RHV Engine and Host Common Packages security update [ovirt-4.4.6]), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:2180 Due to QE capacity, we are not going to cover this issue in our automation |