vSphere "Folder not found" during Openshift 4 IPI installation

Solution In Progress - Updated -

Issue

If the objects in vSphere are organized within folders, like in either of these schemes:

* Vcenter
  \_ Folder
    \_ Datacenter
      \_ Cluster
       ...

or

* Vcenter
  \_ Datacenter
    \_ Folder
      \_ Cluster
       ...

Instead of the usual one:

* Vcenter
  \_ Datacenter
    \_ Cluster
     ...

Then errors like this:

INFO Creating infrastructure resources...         
ERROR                                              
ERROR Error: failed to find provided vSphere objects: folder '/DATACENTER/vm/xxxxxx-lfgv8' not found 
ERROR                                              
ERROR   on ../../../tmp/openshift-install-222423625/main.tf line 43, in resource "vsphereprivate_import_ova" "import": 
ERROR   43: resource "vsphereprivate_import_ova" "import" { 
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 

or this:

FATAL failed to fetch Cluster: failed to fetch dependency of "Cluster": failed to generate asset "Platform Provisioning Check": platform.vsphere.folder: Invalid value: "/DATACENTER/vm/Openshift": folder '/DATACENTER/vm/Openshift' not found

may appear during the "cluster creation" phase.

Environment

  • Openshift (OCP) 4.5
  • vSphere 6.7u3
  • IPI installation

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