Description of problem: uploading an image using ovirt_disk always fails for the first time and works in the second attempt. We see the below error while uploading the disk for the first time. 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 attach Virtual Disk: Disk is locked. Please try again later.]". HTTP response code is 409. fatal: [localhost]: FAILED! => {"changed": false, "msg": "Fault reason is \"Operation Failed\". Fault detail is \"[Cannot attach Virtual Disk: Disk is locked. Please try again later.]\". HTTP response code is 409."} Version-Release number of selected component (if applicable): RHV 4.4.8 How reproducible: [100]% Steps to Reproduce: 1. upload image using ovirt_disk module 2. if fails try to upload again Actual results: Uploading the disk for the first time always fails but works in the second attempt Expected results: Uploading the disk should work on the first attempt.
Verified on ovirt-engine-4.5.0.4-0.1.el8ev.noarch Image successfully uploaded via ovirt_disk ansible collections on 1st try
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), 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-2022:4712