Bug 2015811

Summary: [ovirt] install fails: due to terraform error "Cannot attach Virtual Disk: Disk is locked" on vm resource
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: InstallerAssignee: Janos Bonic <jpasztor>
Installer sub component: OpenShift on RHV QA Contact: Veronika Fuxova <vfuxova>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: urgent CC: apoczeka, aygarg, dgautam, gveitmic, jpasztor, kechung, kurathod, mburman, openshift-bugs-escalate, pelauter, pkhaire, plarsen, prdeshpa, ymotiyel
Version: 4.8   
Target Milestone: ---   
Target Release: 4.9.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2017258 (view as bug list) Environment:
Last Closed: 2021-11-01 13:44:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1917893    
Bug Blocks: 2017258    

Comment 4 Veronika Fuxova 2021-10-27 13:55:42 UTC
RHV: 4.4.9-0.6.el8ev
OCP: 4.9.0-0.nightly-2021-10-26-041726

Steps: 
1) Started an installation of OCP on RHV
2) Verified that this error doesn't appear 

level=error msg=Error: failed to attach disk: Fault reason is "Operation Failed". Fault detail is "[Cannot attach Virtual Disk: Disk is locked. Please try again later.]". HTTP response code is "409". HTTP response message is "409 Conflict".
level=error
level=error msg=  on ../tmp/openshift-install-367614815/template/main.tf line 46, in resource "ovirt_vm" "tmp_import_vm":
level=error msg=  46: resource "ovirt_vm" "tmp_import_vm" {
level=error
level=error
level=fatal msg=failed to fetch Cluster: failed to generate asset "Cluster": failed to create cluster: failed to apply Terraform: failed to complete the change

3) Cancelled the installation when the installer printed "INFO Waiting up to 20m0s for the Kubernetes API at ..."
4) Repeated the process 3 times 

Expected behavior: 
No error in the installation process. 

Actual behavior: 
No error in the installation process.

Comment 6 errata-xmlrpc 2021-11-01 13:44:33 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 (OpenShift Container Platform 4.9.5 bug fix 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/RHBA-2021:4005