More

Troubleshooting

The ML scenarios section is being refined. Individual steps and examples may be added. If you have questions, contact the Shturval platform team.

This page does not replace Install Kubeflow and GPU Operator and NVIDIA drivers. If a resource is missing or was created with the wrong parameters, go back to the matching installation step and apply the manifest again. The checks after each step are on the GUI and CLI tabs of the installation pages.

SymptomSection
Pods Pending, Insufficient memory, a taint on the Control PlaneNot enough Worker nodes
SSC kubeflow-step-* stays out of Healthy for a long timeA kubeflow-step stays unhealthy
After SSO the browser goes to another host (flow.…, not kubeflow.<commonName>)Wrong redirect URL
upstream connect error, 503 in the UIKubeflow UI: 503 or upstream connect error
It works in a private window and fails in the normal profileThe browser shows old errors
The Profile does not appear, there is no istio-injectionA Profile is not created, or the namespace has no Istio
NCI nvidia-drivers Applied 0/0The GPU label did not appear
The driver NCI is in error, kernel packages are not installedKernel versions and NVIDIA packages
A Notebook with a GPU is in CrashLoopA Notebook with a GPU does not start

In the first minutes after a service is enabled, some Kubeflow pods may restart while they wait for the Istio sidecar or MySQL. Judge whether the pods become Running/Ready, not the total restart count. If the state does not change for a long time, check the pod events.


Where to start

Collect the state in the client cluster. The SSCs and NCIs show which step of the Kubeflow installation or the GPU setup stopped.

  1. Open the client cluster.
  2. Services and repositories → Installed services: kubeflow-step-0 … kubeflow-step-4, and gpu-operator if the GPU Operator is installed. Mode Auto, state Healthy. If a service failed, open it and check the events and the pods in its namespace.
  3. Administration → Manage nodes: how many Worker nodes are Ready, and whether a Control Plane taint is on the only nodes that can run the workload.
  4. In namespaces default, istio-system, and, if the GPU Operator is installed, gpu-operator, find pods whose state is not Running or Completed.
  5. If you installed NVIDIA: Administration → Node configuration: NCI nvidia-drivers, nvidia-runtime-minimal, nvidia-fabricmanager.
kubectl get nodes -o wide
kubectl get pods -A | grep -v "Running\|Completed"
kubectl get events -A --sort-by=.lastTimestamp
kubectl get ssc
kubectl get nci

Then follow the symptom in the table. Do not repeat the whole installation.


Not enough Worker nodes

Istio and the kubeflow-step-* chain create many pods. The GPU Operator is separate and only if you installed NVIDIA. The Control Plane usually has a taint: ordinary pods are not scheduled there. On one Worker, Kubeflow with Istio often does not fit: the scheduler reports Insufficient memory, and the step SSC does not become Healthy.

A Kubeflow installation in a client cluster needs at least three Worker nodes (Control Plane nodes are not included). If other services already run on the Worker nodes, you may need more than three nodes.

A typical pod event:

0/N nodes are available: X Insufficient memory, Y node(s) had untolerated taint(s)
  1. Administration → Manage nodes: separate Control Plane and Worker. Workers are Ready and have no control-plane / master taint.
  2. Open the Pending pod (often istiod in istio-system, metadata-writer, workflow-controller, katib-mysql in default) → events. Look for FailedScheduling and Insufficient memory.
  3. If there are fewer than three Workers, add nodes: scaling node groups. For Shturval v2 — adding hosts.
  4. Wait until the new Worker is Ready and the Cilium agent on it is Running. Until Cilium is Ready, the Istio webhook can answer no route to host.
  5. If pods still do not become Running/Ready after the nodes are added, delete the stuck pods: the controller creates them again.
kubectl get nodes -L node-role.kubernetes.io/control-plane
kubectl describe node <worker>
kubectl describe pod -n <namespace> <pod> | grep -A 20 Events

Add a Worker the usual platform way, then:

kubectl get pods -A -o wide --field-selector spec.nodeName=<new-worker>
kubectl get pods -n istio-system
kubectl delete pod -n default <stuck-pod>

Do not reinstall kubeflow-step-* because of a shortage of nodes: first give the scheduler a place to put the pods. The step chain: step 2 of the Kubeflow installation.


A kubeflow-step stays unhealthy

Kubeflow is installed with SSC kubeflow-step-0 … kubeflow-step-4 in mode Auto (step 2.2). If one SSC stays out of Healthy for a long time, diagnose that step. Do not recreate SSCs that are already working.

First rule out a shortage of Workers. Then see what the pod is waiting for: an image, a volume, the Istio sidecar, or an SSC dependency.

  1. Installed services → the stuck kubeflow-step-* → Manage: mode, state, events.
  2. The service namespace (default) → pods that are not Ready. Open the pod: events, and the istio-proxy container if it is there.
  3. If the Istio sidecar is Incomplete, check the Cilium SSP from step 2.1: shturval-networking must have cni.exclusive: false and socketLB.hostNamespaceOnly: true.
  4. Storage / PVCs in default: a volume from a previous installation is Terminating or Bound to a deleted pod. Before you delete it, check the related PV, its reclaimPolicy, the PVC owner, and whether you have a backup. Delete only a confirmed leftover PVC whose data is no longer needed. Then set the SSC back to mode Auto.
kubectl get ssc kubeflow-step-0 kubeflow-step-1 kubeflow-step-2 kubeflow-step-3 kubeflow-step-4
kubectl describe ssc <kubeflow-step-name>
kubectl get pods,pvc -n default
kubectl get events -n default --sort-by=.lastTimestamp
kubectl describe pod -n default <pod>

Cilium SSP: kubectl get shturvalservicepatch shturval-networking-for-istio.

A leftover PVC:

kubectl get pvc -n default
kubectl describe pvc <name> -n default
# Run this only for a confirmed leftover PVC after you have backed up the data.
kubectl delete pvc <name> -n default

If the SSC mode is not Auto, set auto and look at get ssc / the pods again:

kubectl patch ssc <kubeflow-step-name> --type=merge -p '{"spec":{"mode":"auto"}}'
kubectl get ssc <kubeflow-step-name>

Wrong redirect URL

After SSO the browser must return to https://kubeflow.<commonName>/oauth2/callback, then open the Kubeflow UI. Take <commonName> from SSC shturval-ingress-controller in the client cluster — the same way as in the installation.

If the callback goes to another host (often the oauth2-proxy chart default such as https://flow.<…>/oauth2/callback, or the management cluster host), the OIDC client is not the cause: AuthOidcClient in step 1 sets the SSO issuer, and where to return after login is oauth2-proxy.oauth2Cfg.redirect_url on kubeflow-step-1.

An issuer like https://shturval.alpha.<management-host> is normal. It is not normal when, after login, Location does not point to kubeflow.<commonName>.

  1. Client cluster → Installed services → shturval-ingress-controller → Manage → Manifest: save controller.shturval.commonName.
  2. Installed services → kubeflow-step-2: in the Ingress specification the host is kubeflow.<commonName>, not flow. and not the management cluster commonName.
  3. Installed services → kubeflow-step-1 → Manage → service specification. It must be:
oauth2-proxy:
  oauth2Cfg:
    oidc_issuer_url: "<OIDC_ISSUER_URL>"
    redirect_url: https://kubeflow.<commonName>/oauth2/callback

Take redirect_url from step 2.2. Save the specification. 4. Namespace oauth2-proxy: delete the oauth2-proxy pod so it starts with the new URL. Editing only the ConfigMap in this namespace is not enough: the SSC Helm reconcile overwrites it.

kubectl get ssc shturval-ingress-controller \
  -o jsonpath='{.status.appliedCustomValues.controller.shturval.commonName}{"\n"}'

kubectl get ssc kubeflow-step-1 -o yaml | grep -A 20 'oauth2-proxy:'
kubectl get ingress -A | grep -i kubeflow

In the kubeflow-step-1 customvalues, set oauth2-proxy.oauth2Cfg.redirect_url: https://kubeflow.<commonName>/oauth2/callback (the same fragment as in step 2.2), save the SSC, and restart the pod:

kubectl delete pod -n oauth2-proxy -l app.kubernetes.io/name=oauth2-proxy

If the label is missing, find the pod: kubectl get pods -n oauth2-proxy.

After the fix, open https://kubeflow.<commonName>/ in a private window. Otherwise the browser can return an old Location from the cache.


Kubeflow UI: 503 or upstream connect error

In the first minutes after installation the error can appear while Kubeflow components and Istio routes are not ready yet. If the error stays, check the Ingress, istio-ingressgateway, and the sidecar of the target pod. The UI host is set in step 2.2.

  1. Namespace istio-system: pod istio-ingressgateway is Running / Ready.
  2. Namespace default: Dashboard and jupyter-web-app pods are Ready, and the containers include istio-proxy.
  3. If there is no sidecar — the Istio label.
  4. Open the UI in a private window. If it works only there — the browser cache.
kubectl get pods -n istio-system -l app=istio-ingressgateway
kubectl get pods -n default -l app=jupyter-web-app
kubectl get pods -n default -l app=jupyter-web-app -o yaml \
  | grep -A 3 "name: istio-proxy"

Look at the growth of cx_connect_fail (not a single value) twice, with a pause:

GW=$(kubectl get pods -n istio-system -l app=istio-ingressgateway \
  -o jsonpath='{.items[0].metadata.name}')
kubectl exec -n istio-system "${GW}" -c istio-proxy -- \
  curl -s localhost:15000/clusters 2>&1 | grep "jupyter-web-app" | grep cx_connect_fail

The browser shows old errors

A useful test: the UI opens in a private window, and in the normal profile you see 503, 405, or an old redirect.

On the page https://kubeflow.<commonName>/:

  1. F12 → Application → Storage → Clear site data (cookies, cache, Service workers, Local storage).
  2. Close DevTools and do a hard refresh.

Clearing only cookies is not enough: the Dashboard keeps state in a Service Worker, the HTTP cache, IndexedDB, and LocalStorage.


A Profile is not created, or the namespace has no Istio

How to create a profile is on Kubeflow profiles: create the Profile resource, and the namespace appears on its own. For the service profile kflow-user-admin-namespace, spec.owner.name is the login from the installation (<KUBEFLOW_LOGIN>). For a profile created separately, spec.owner.name is also the platform user login.

profiles-controller adds the label istio-injection=enabled to the profile namespace from ConfigMap profiles-namespace-labels-data-<random-suffix>. Do not edit the ConfigMap by hand: the SSC operator rolls the change back. If the build is older and the label is missing, set it on the profile namespace: check after installation.

  1. Administration → Custom resources → kubeflow.org → Profile: the object exists, and the specification has an owner.
  2. The namespace with the same name: annotation owner, label istio-injection=enabled.
  3. If the label is missing — on the current build, check that kubeflow-step-3 is installed: ConfigMap profiles-namespace-labels-data-<random-suffix> already contains istio-injection: "enabled", and you do not edit it. On an older build, add the label istio-injection=enabled to the namespace and recreate only the pods that have no sidecar. Do not delete the profile namespace without a backup.
export PROFILE_NAME=<profile-name>

kubectl get namespace "${PROFILE_NAME}" -o yaml
kubectl get profile.kubeflow.org "${PROFILE_NAME}" -o yaml
kubectl get namespace "${PROFILE_NAME}" -o jsonpath='{.metadata.labels.istio-injection}{"\n"}'
kubectl get events -A --sort-by=.lastTimestamp | grep "${PROFILE_NAME}"

Kubeflow pods are created without a sidecar

Namespaces kubeflow, kubeflow-system, and kflow-user-admin-namespace, and the profile namespace, must have the label istio-injection=enabled. In the current kubeflow-step-3 build, ConfigMap profiles-namespace-labels-data-<random-suffix> sets it. Do not edit the ConfigMap. If the label is missing on the namespace, put it back and recreate the pods that have no sidecar.

  1. Namespaces kubeflow, kubeflow-system, kflow-user-admin-namespace, and the profile namespace: label istio-injection=enabled. If the label is missing, add it to the namespace.
  2. Pods in these namespaces: init container istio-proxy. If it is missing after the label appears, recreate only those pods (delete them, and the ReplicaSet starts new ones with the sidecar).
kubectl get ns kubeflow kubeflow-system kflow-user-admin-namespace \
  -o jsonpath='{range .items[*]}{.metadata.name}{" "}{.metadata.labels.istio-injection}{"\n"}{end}'

The expected value is enabled. If the profile namespace has no label:

kubectl label namespace kflow-user-<profile>-namespace istio-injection=enabled

Then recreate the pods that have no sidecar.


The GPU label did not appear

The GPU Operator (step 1) sets nvidia.com/gpu.present=true when NFD sees an NVIDIA PCI device. Without the label, the NCIs from step 2 do not find nodes: nvidia-drivers stays at Applied 0/0. The NCI is not broken. How the selectors work next: GPU Operator and NVIDIA drivers.

  1. Installed services → gpu-operator: Auto, Healthy. Pods in namespace gpu-operator are Running.
  2. Manage nodes → the GPU node → labels: nvidia.com/gpu.present=true.
  3. Node configuration → nvidia-drivers: Applied is greater than 0 on the GPU nodes.
  4. If the label is missing, check the state, events, and logs of the gpu-operator pods, and whether the NVIDIA device is visible on the node.

Add the label by hand only for diagnostics, not in production. After the check, follow the GPU Operator and the manifests of step 2 again.

kubectl get nodes -L nvidia.com/gpu.present
kubectl get nci nvidia-drivers
kubectl get pods -n gpu-operator
kubectl get events -n gpu-operator --sort-by=.lastTimestamp

Temporarily:

kubectl label node <node-name> nvidia.com/gpu.present=true --overwrite

Kernel versions and NVIDIA packages

NCI nvidia-drivers installs kernel-lt-devel and kernel-lt-headers at one version — the version written in the NCI on GPU Operator and NVIDIA drivers. The example in the manifest is 5.15.178-1.el8 (without the .x86_64 suffix). Take the version from the node page, the Description block. Do not type an arbitrary string. The kernel must be the same on every GPU node. Otherwise the package is not selected, the driver is not built, and Applied goes to an error.

The driver package version (NVIDIA_DRIVER_VERSION) must be in the shturval_rpm_nvidia mirror. The version list is in the parameter table on the GPU page. Do not repeat the curl to the repository from here.

  1. Manage nodes → each node → Description: the kernel version. Every GPU node shows the same string.
  2. Node configuration → nvidia-drivers → packages: kernel-lt-devel / kernel-lt-headers at the same version as in Description.
  3. If the kernels differ, first align the kernel version on the nodes, then fix the package versions in the NCI (the manifest of step 2). Do not change the version on only one node if the shared NCI applies to the whole group.
kubectl get nodes \
  -o jsonpath='{.items[*].status.nodeInfo.kernelVersion}' | tr ' ' '\n' | sort -u
kubectl get nci nvidia-drivers -o yaml | grep -A2 'kernel-lt'

The kernel command must print one line. Compare it with version of the packages in the NCI.


A Notebook with a GPU does not start

Check that a node with the GPU label exists, the runtime NCI is applied, and the pod events do not contain FailedScheduling. Node operations: GPU Operator and NVIDIA drivers.

  1. The profile namespace → the notebook pod: events and logs. Look for a shortage of nvidia.com/gpu, the runtime, and the hook disable-device-node-modification.
  2. Manage nodes / Node configuration: the GPU label and the runtime NCI, as in the sections above.
  3. Changes to the CDI hook and the toolkit belong in a maintenance window, not on a working node that has a workload.
kubectl describe pod -n <profile-namespace> <notebook-pod>
kubectl logs -n <profile-namespace> <notebook-pod> --all-containers --tail=100
kubectl get events -n <profile-namespace> --sort-by=.lastTimestamp
kubectl get nci
kubectl get nodes -L nvidia.com/gpu.present

Remove the installation by hand

Delete in reverse order: profiles, optional external KServe, Kubeflow, then the GPU Operator and the NCIs if you installed them. Take the manifests again from Install Kubeflow and GPU.

  1. Check the PVCs/PVs and save the data you need, then delete only the workload Profiles: Kubeflow profiles. Do not delete the service profile kflow-user-admin-namespace by hand.
  2. If you configured external KServe — the objects from External access to KServe: Ingress, AuthorizationPolicy, SSP knative-for-kserve-external and kserve-path-template, ConfigMap registry-root-ca in knative-serving, and the test InferenceService.
  3. Installed services: kubeflow-step-4 … kubeflow-step-0, then gpu-operator (if you installed it) — mode Off, wait until the release is removed, then delete the instance.
  4. SSP shturval-networking-for-istio: Manage on shturval-networking → the SSP tab, or the ShturvalServicePatch custom resource.
  5. If you installed NVIDIA: Node configuration — NCI nvidia-drivers, nvidia-runtime-minimal, nvidia-fabricmanager, and the NFD rule nvidia-nvswitch.
  6. Check that namespace oauth2-proxy and the PVCs in default are not left behind.

List the profiles, check the related PVCs/PVs, and delete only workload profiles. Do not delete the service profile kflow-user-admin-namespace:

kubectl get profile.kubeflow.org
kubectl get pvc -A
kubectl get pv
kubectl delete profile.kubeflow.org <workload-profile-name>

If you configured external access to KServe:

kubectl delete inferenceservice sklearn-iris -n <profile-namespace> --ignore-not-found
kubectl delete -n istio-system ingress kserve-external --ignore-not-found
kubectl delete -n istio-system authorizationpolicy kserve-inference-access --ignore-not-found
kubectl delete shturvalservicepatch knative-for-kserve-external kserve-path-template --ignore-not-found
kubectl delete configmap registry-root-ca -n knative-serving --ignore-not-found
for ssc in kubeflow-step-4 kubeflow-step-3 kubeflow-step-2 kubeflow-step-1 kubeflow-step-0 gpu-operator; do
  kubectl patch ssc "${ssc}" --type=merge -p '{"spec":{"mode":"absent"}}' || true
done

Wait until each Helm release is removed and check the SSC state. Only then delete the objects:

kubectl get ssc kubeflow-step-4 kubeflow-step-3 kubeflow-step-2 kubeflow-step-1 kubeflow-step-0 gpu-operator

for ssc in kubeflow-step-4 kubeflow-step-3 kubeflow-step-2 kubeflow-step-1 kubeflow-step-0 gpu-operator; do
  kubectl delete ssc "${ssc}" --ignore-not-found
done

kubectl delete shturvalservicepatch shturval-networking-for-istio --ignore-not-found
kubectl delete nci nvidia-drivers nvidia-runtime-minimal nvidia-fabricmanager --ignore-not-found
kubectl delete nodefeaturerule nvidia-nvswitch --ignore-not-found

kubectl get ns default kubeflow-system oauth2-proxy knative-serving knative-eventing
kubectl get pvc -A
kubectl get pv

A diagnostic file for support

Capture the state: the Installed services list (names, mode, Healthy), the page of the stuck pod (events), Manage nodes (Worker count, Ready), Node configuration (Applied on the NCIs). Attach the URL the browser opened after SSO and the expected https://kubeflow.<commonName>/.
{
  echo "=== nodes ==="; kubectl get nodes -o wide
  echo "=== pods ==="; kubectl get pods -A
  echo "=== events ==="; kubectl get events -A --sort-by='.lastTimestamp' | tail -50
  echo "=== ssc ==="; kubectl get ssc
  echo "=== nci ==="; kubectl get nci
} > /tmp/kubeflow-diag.txt