Bug 2006721 - uploading image using ovirt_disk always fails for the first time and works in second attempt
Summary: uploading image using ovirt_disk always fails for the first time and works in...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-ansible-collection
Version: 4.4.8
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.5.0
: 4.5.0
Assignee: Martin Necas
QA Contact: Guilherme Santos
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-22 09:49 UTC by Yash
Modified: 2022-08-17 18:57 UTC (History)
6 users (show)

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.
Clone Of:
Environment:
Last Closed: 2022-05-26 17:25:09 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-ansible-collection pull 358 0 None open ovirt_disk: use imageio client 2021-11-01 14:28:02 UTC
Red Hat Issue Tracker RHV-43693 0 None None None 2021-09-22 09:51:26 UTC
Red Hat Product Errata RHSA-2022:4712 0 None None None 2022-05-26 17:25:31 UTC

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


Note You need to log in before you can comment on or make changes to this bug.