RHV: Using ansible ovirt_vms with HostedEngine fails with 'attempt to change Hosted Engine VM values that are locked'.
Issue
- Cannot use ovirt_vms with HostedEngine, operations fail with the following on RHV side:
WARN [org.ovirt.engine.core.bll.UpdateVmCommand] (default task-48) [76366154-c54c-4c6b-94fe-94cdd0758918] Validation of action 'UpdateVm' failed for user admin@internal-authz. Reasons: VAR__ACTION__UPDATE,VAR__TYPE__VM,VM_CANNOT_UPDATE_HOSTED_ENGINE_FIELD
- Operation fails when running ansible playbook:
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: Error: Fault reason is "Operation Failan attempt to change Hosted Engine VM values that are locked.]". HTTP response code is 400.
failed: [A.B.C.D] => {"changed": false, "item": "A.B.C.D", "msg": "Fault reason is \"Operation Failed\". Attempt to change Hosted Engine VM values that are locked.]\". HTTP response code is 400."}
Environment
- Red Hat Virtualization 4.2.6
- HostedEngine
- ansible-2.7.0-1.el7ae
- ovirt-ansible-vm-infra-1.1.9-1.el7ev
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.