Description of problem:
When trying to provision an IBM Cloud (via Hive) the process fails very soon with the following error:
16:47:27 panic: runtime error: invalid memory address or nil pointer dereference
16:47:27 [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xb2fce68]
16:47:27
16:47:27 goroutine 1 [running]:
16:47:27 github.com/openshift/hive/pkg/installmanager.loadSecrets(0xc000b522c0, 0x0?)
16:47:27 github.com/openshift/hive/pkg/installmanager/installmanager.go:535 +0x108
16:47:27 github.com/openshift/hive/pkg/installmanager.(*InstallManager).Run(0xc000b522c0)
16:47:27 github.com/openshift/hive/pkg/installmanager/installmanager.go:284 +0x296
16:47:27 github.com/openshift/hive/pkg/installmanager.NewInstallManagerCommand.func1(0xc00061fb08, {0xc000ea8c00, 0x2, 0x6})
16:47:27 github.com/openshift/hive/pkg/installmanager/installmanager.go:192 +0x314
16:47:27 github.com/spf13/cobra.(*Command).execute(0xc00061fb08, {0xc000ea8ba0, 0x6, 0x6})
16:47:27 github.com/spf13/cobra@v1.9.1/command.go:1019 +0xa91
16:47:27 github.com/spf13/cobra.(*Command).ExecuteC(0xc0007d4f08)
16:47:27 github.com/spf13/cobra@v1.9.1/command.go:1148 +0x46f
16:47:27 github.com/spf13/cobra.(*Command).Execute(...)
16:47:27 github.com/spf13/cobra@v1.9.1/command.go:1071
16:47:27 main.main()
16:47:27 github.com/openshift/hive/contrib/cmd/hiveutil/main.go:30 +0x4b
Version-Release number of selected component (if applicable):
4.18.27, 4.19.18
How reproducible:
Steps to Reproduce:
1. Launch provisioning of a openshift cluster on IBM Cloud using openshift-installer (or Hive - which uses openshift-installer under the hood)
2. check the result
Actual results:
Segmentation error at the very beginning of the process
Expected results:
Cluster gets provisioned successfully
Additional info:
We tried on GCP 4.19.27 and it works. The issue might be present on other providers as well and other OCP versions