Bug 2006721

Summary: uploading image using ovirt_disk always fails for the first time and works in second attempt
Product: Red Hat Enterprise Virtualization Manager Reporter: Yash <ymotiyel>
Component: ovirt-ansible-collectionAssignee: Martin Necas <mnecas>
Status: CLOSED ERRATA QA Contact: Guilherme Santos <gdeolive>
Severity: high Docs Contact:
Priority: high    
Version: 4.4.8CC: bzlotnik, emarcus, ffutigam, mnecas, mperina, pbar
Target Milestone: ovirt-4.5.0Keywords: ZStream
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-ansible-collection-2.0.0 Doc Type: Release Note
Doc Text:
The ovirt_disk module released as a part of ovirt-ansible-collection 2.0.0 uses the imageio python client to upload images into Red Hat Virtualization Manager.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-26 17:25:09 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 Yash 2021-09-22 09:49:46 UTC
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.

Comment 7 Guilherme Santos 2022-05-04 11:57:53 UTC
Verified on ovirt-engine-4.5.0.4-0.1.el8ev.noarch

Image successfully uploaded via ovirt_disk ansible collections on 1st try

Comment 12 errata-xmlrpc 2022-05-26 17:25:09 UTC
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