Bug 1994410

Summary: When machine creation failed due to validations, error contains "failed to create connection to oVirt API"
Product: OpenShift Container Platform Reporter: Gal Zaidman <gzaidman>
Component: Cloud ComputeAssignee: Gal Zaidman <gzaidman>
Cloud Compute sub component: oVirt Provider QA Contact: Guy <gafik>
Status: CLOSED ERRATA Docs Contact:
Severity: low    
Priority: low    
Version: 4.9   
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:46:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gal Zaidman 2021-08-17 08:48:12 UTC
Description of problem:

When you create a machine with an invalid field that fails the validations, for example, OSDisk.SizeGB field set to 0 the error will contain "failed to create connection to oVirt API


How reproducible:

Steps to Reproduce:
1. Create a machineset with an invalid field. for example, OSDisk.SizeGB field set to 0.
2. Look at the reason that it is on Failed, `oc describe machine MACHINE_NAME`
3. See it is something like "failed to create connection to oVirt API: OS Disk (os_disk) *SizeGB* must be specified"

Expected results:
"error validating machine fields: OS Disk (os_disk) *SizeGB* must be specified"

Comment 2 Guy 2021-08-22 08:21:00 UTC
Verified in OpenShift Cluster version is 4.9.0-0.nightly-2021-08-19-125540
and engine ovirt-engine-4.4.8.2-0.11.el8ev.noarch

Comment 5 errata-xmlrpc 2021-10-18 17:46:55 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: OpenShift Container Platform 4.9.0 bug fix and 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-2021:3759