Troubleshooting IBM Storage Scale Container Storage Interface (CSI)

CSI pods stuck in CrashLoopBackOff (Unauthorized GET request)

The following output shows an example of the CSI pods in CrashLoopBackOff.

# kubectl get pods
NAME                                               READY   STATUS             RESTARTS   AGE
ibm-spectrum-scale-csi-9566l                       1/2     CrashLoopBackOff   9          26m
ibm-spectrum-scale-csi-attacher-0                  1/1     Running            0          85m
ibm-spectrum-scale-csi-klr7x                       1/2     CrashLoopBackOff   9          26m
ibm-spectrum-scale-csi-operator-56955949c4-mzn7g   1/1     Running            0          90m
ibm-spectrum-scale-csi-provisioner-0               1/1     Running            0          85m
ibm-spectrum-scale-csi-xlxkl                       1/2     CrashLoopBackOff   9          26m

The logs of the CSI pods might reveal what is causing the problems.

# kubectl logs ibm-spectrum-scale-csi-9566l -c ibm-spectrum-scale-csi

...

I1218 17:27:33.875884       1 http_utils.go:60] http_utils FormatURL. url: https://ibm-spectrum-scale-gui-ibm-spectrum-scale.apps.example.com:443/
I1218 17:27:33.875894       1 rest_v2.go:586] rest_v2 doHTTP. endpoint: https://ibm-spectrum-scale-gui-ibm-spectrum-scale.apps.example.com:443/scalemgmt/v2/cluster, method: GET, param: <nil>
I1218 17:27:33.875900       1 http_utils.go:74] http_utils HttpExecuteUserAuth. type: GET, url: https://ibm-spectrum-scale-gui-ibm-spectrum-scale.apps.example.com:443/scalemgmt/v2/cluster, user: csi-cnsa-gui-user

CSI CR is never created

When all the core pods are running and the IBM Storage Scale container native cluster appears to be in a good state, the CSI CR is created automatically. In some error paths this does not happen and causes the driver pods to not be scheduled.

# kubectl get po,csiscaleoperator -n ibm-spectrum-scale-csi
NAME                                                   READY   STATUS    RESTARTS   AGE
pod/ibm-spectrum-scale-csi-operator-79bd756d58-ht6hf   1/1     Running   0          47h

Only the operator pod is listed and no results are found for csiscaleoperators