Bug 2061732 - Cinder CSI crashes when API is not available
Summary: Cinder CSI crashes when API is not available
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 4.11
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.11.0
Assignee: Martin André
QA Contact: Itzik Brown
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-08 12:50 UTC by Martin André
Modified: 2022-08-10 10:52 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-10 10:52:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift openstack-cinder-csi-driver-operator pull 74 0 None open Bug 2061732: Fail gracefully on failure to populate cloud info 2022-03-08 13:55:12 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 10:52:54 UTC

Description Martin André 2022-03-08 12:50:48 UTC
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

Comment 3 Itzik Brown 2022-04-07 10:11:03 UTC
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

Comment 6 errata-xmlrpc 2022-08-10 10:52:44 UTC
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


Note You need to log in before you can comment on or make changes to this bug.