Troubleshooting operator

operator pod is not successfully deployed

No operator pod exists in the ibm-spectrum-scale-operator namespace.

operator pod shows container restarts

Kubernetes keeps the logs of the current container and the previous container.

Look at the previous container logs and look for any issues that might be causing the container to restart.

kubectl logs -p $(kubectl get pods -n ibm-spectrum-scale-operator -ojson | \
jq -r .items[0].metadata.name) -n ibm-spectrum-scale-operator

operator pod is terminated with OOMKilled

The operator default memory limit is set too low for the cluster configuration and needs to be adjusted to a higher value.

  1. Edit the operator deployment:

    oc edit deploy -n ibm-spectrum-scale-operator ibm-spectrum-scale-controller-manager
    
  1. Increase the operator deployment memory limit. This example has 1Gi but can vary depending on the environment.

    spec:
       containers:
          - args:
             resources:
                limits:
                   cpu: 1500m
                   memory: 1Gi
    
  2. Save and quit (:wq)

  3. Verify the deployment restarts the operator pod.

    oc get pod -n ibm-spectrum-scale-operator
    
    NAME                                                    READY   STATUS    RESTARTS   AGE
    ibm-spectrum-scale-controller-manager-dfbb9c87d-xt9qd   1/1     Running   0          23s