OCP installation on RHV fails with: "Cannot attach Virtual Disk: Disk is locked. Please try again later"

Solution Verified - Updated -

Issue

  • Deployment of OCP on RHV fails randomly when creating the Virtual Machine with uploaded RHCOS disk :
DEBUG module.template.ovirt_vm.tmp_import_vm[0]: Still creating... [10s elapsed]
ERROR
ERROR 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".
ERROR
ERROR   on ../tmp/openshift-install-813388607/template/main.tf line 46, in resource "ovirt_vm" "tmp_import_vm":
ERROR   46: resource "ovirt_vm" "tmp_import_vm" {
ERROR
ERROR
FATAL failed to fetch Cluster: failed to generate asset "Cluster": failed to create cluster: failed to apply Terraform: failed to complete the change

Environment

  • Red Hat Virtualization 4.4
  • Openshift Container Platform 4.8 and 4.9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content