Description of problem: When deploying OpenShift on a OpenStack cloud that doesn't have Cinder v2 API available, Cinder CSI driver operator crashes: W0308 11:28:57.051757 1 cloudinfo.go:56] Failed to generate OpenStack cloud info: failed to list volume availability zones: Resource not found panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x1dfa6ba] goroutine 303 [running]: github.com/openshift/openstack-cinder-csi-driver-operator/pkg/operator.RunOperator({0x276c9b0, 0xc0004d27c0}, 0xc00009c580) github.com/openshift/openstack-cinder-csi-driver-operator/pkg/operator/starter.go:71 +0x45a github.com/openshift/library-go/pkg/controller/controllercmd.ControllerBuilder.getOnStartedLeadingFunc.func1.1() github.com/openshift/library-go.0-20220117173518-ca57b619b5d6/pkg/controller/controllercmd/builder.go:351 +0x74 created by github.com/openshift/library-go/pkg/controller/controllercmd.ControllerBuilder.getOnStartedLeadingFunc.func1 github.com/openshift/library-go.0-20220117173518-ca57b619b5d6/pkg/controller/controllercmd/builder.go:349 +0x10f https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/origin-ci-test/pr-logs/pull/openshift_installer/5686/pull-ci-openshift-installer-master-e2e-openstack/1501113184864440320/artifacts/e2e-openstack/gather-extra/artifacts/pods/openshift-cluster-csi-drivers_openstack-cinder-csi-driver-operator-6d9bc47454-x2zqg_openstack-cinder-csi-driver-operator_previous.log We have already changed gophercloud to default to Cinder v3 when no version is specified, and are bumping gophercloud in openstack-cinder-csi-driver-operator [1], however we'll also need to fix the seg fault. How reproducible: Always [1] https://github.com/openshift/openstack-cinder-csi-driver-operator/pull/73
Checked using OCP 4.11.0-0.nightly-2022-04-01-172551 OSP RHOS-16.1-RHEL-8-20220315.n.1 Set enable_v2_api = false in /var/lib/config-data/puppet-generated/cinder/etc/cinder/cinder.conf and restarted cinder_api on all the controllers Removed the cinder v2 endpoints Installation completed
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 (Important: OpenShift Container Platform 4.11.0 bug fix and security 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/RHSA-2022:5069