You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When modifying an existing oVirt-VM ovirt_vm fails with error message 'NoneType' object has no attribute 'disk_attachments'.
I assume the bug was introduced by 508ebf2#diff-9415a363b6dea8b0c2cb21bd497654a4. Applying this patch, in function __get_template_with_version there is only a code path left for new VMs and no code path for existing VMs at all, neither with a given template (previous working code), nor with template gathering using the oVirt API. As a result, template is None for all existing VMs.
ISSUE TYPE
Bug Report
COMPONENT NAME
modules/cloud/ovirt/ovirt_vm.py
ANSIBLE VERSION
Bug was introduced in Ansible-2.9.3, reproducible with Ansible 2.9.12, probably also existent in newer versions.
reproducible using Arch Linux, Ubuntu Linux, Debian Linux, ...
STEPS TO REPRODUCE
Create oVirt VM using ovirt_vm module
Change parameter of VM
Run ovirt_vm module again
EXPECTED RESULTS
Running VM with modified parameters
ACTUAL RESULTS
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'NoneType' object has no attribute 'disk_attachments'
fatal: [identity-production-worker-01.identity.production.intern.campact.de]: FAILED! => {"changed": false, "msg": "'NoneType' object has no attribute 'disk_attachments'"}
The text was updated successfully, but these errors were encountered:
Thank you very much for your interest in Ansible. Ansible has migrated much of the content into separate repositories to allow for more rapid, independent development. We are closing this issue/PR because this content has been moved to one or more collection repositories.
SUMMARY
When modifying an existing oVirt-VM
ovirt_vm
fails with error message'NoneType' object has no attribute 'disk_attachments'
.I assume the bug was introduced by 508ebf2#diff-9415a363b6dea8b0c2cb21bd497654a4. Applying this patch, in function
__get_template_with_version
there is only a code path left for new VMs and no code path for existing VMs at all, neither with a given template (previous working code), nor with template gathering using the oVirt API. As a result,template
is None for all existing VMs.ISSUE TYPE
COMPONENT NAME
modules/cloud/ovirt/ovirt_vm.py
ANSIBLE VERSION
Bug was introduced in Ansible-2.9.3, reproducible with Ansible 2.9.12, probably also existent in newer versions.
CONFIGURATION
OS / ENVIRONMENT
reproducible using Arch Linux, Ubuntu Linux, Debian Linux, ...
STEPS TO REPRODUCE
ovirt_vm
moduleovirt_vm
module againEXPECTED RESULTS
Running VM with modified parameters
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: