The OCP 4.x installation fails with segfault error "invalid memory address or nil pointer dereference"

Solution Verified - Updated -

Issue

  • The ./openshift-install create cluster command fails on VSphere IPI with an error:
DEBUG 2021/05/31 14:48:43 [TRACE] GRPCProvider: ApplyResourceChange                                                                                                                                                                           
DEBUG 2021-05-31T14:48:43.166+0200 [DEBUG] plugin.terraform-provider-vsphereprivate: 2021/05/31 14:48:43 [DEBUG] /root/.cache/openshift-installer/image_cache/3b5e74ee97a8a6ea9175a344797f56e7: Beginning import ova create                   
DEBUG 2021-05-31T14:48:43.302+0200 [DEBUG] plugin.terraform-provider-vsphereprivate: panic: runtime error: invalid memory address or nil pointer dereference                                                                                  
DEBUG 2021-05-31T14:48:43.302+0200 [DEBUG] plugin.terraform-provider-vsphereprivate: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xa797bce]                                                                                  
DEBUG 2021-05-31T14:48:43.302+0200 [DEBUG] plugin.terraform-provider-vsphereprivate:                                                                                                                                                          
DEBUG 2021-05-31T14:48:43.302+0200 [DEBUG] plugin.terraform-provider-vsphereprivate: goroutine 48 [running]:                                                                                                                                  
DEBUG 2021-05-31T14:48:43.302+0200 [DEBUG] plugin.terraform-provider-vsphereprivate: github.com/openshift/installer/pkg/terraform/exec/plugins/vsphereprivate.findImportOvaParams(0xc000d7b600, 0xc000de5eac, 0x4, 0xc000de5e90, 0xb, 0xc000c9
8240, 0x19, 0xc000c982a0, 0x15, 0xc000c98260, ...)                                                                                                                                                                                            
DEBUG 2021-05-31T14:48:43.302+0200 [DEBUG] plugin.terraform-provider-vsphereprivate:    /go/src/github.com/openshift/installer/pkg/terraform/exec/plugins/vsphereprivate/resource_vsphereprivate_import_ova.go:199 +0xb4e                     
DEBUG 2021-05-31T14:48:43.302+0200 [DEBUG] plugin.terraform-provider-vsphereprivate: github.com/openshift/installer/pkg/terraform/exec/plugins/vsphereprivate.resourceVSpherePrivateImportOvaCreate(0xc000ed6af0, 0xaf547e0, 0xc000466820, 0x0
, 0x0)                                                                                                                                                                                                                                        
DEBUG 2021-05-31T14:48:43.302+0200 [DEBUG] plugin.terraform-provider-vsphereprivate:    /go/src/github.com/openshift/installer/pkg/terraform/exec/plugins/vsphereprivate/resource_vsphereprivate_import_ova.go:268 +0x493                     
DEBUG 2021-05-31T14:48:43.302+0200 [DEBUG] plugin.terraform-provider-vsphereprivate: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).Apply(0xc0006ea360, 0xc000c5b270, 0xc000c63d80, 0xaf547e0, 0xc000466820, 0xbb45401, 0
xc00105ed28, 0xc000cd44e0)                                                                                                                                                                                          

Environment

  • Red Hat OpenShift Container Platform 4.x
  • VMware vSphere

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