Skip to content

k8s: snode-spdk-job template error when trying to use bash #590

@brunnels

Description

@brunnels

Here's the error:

Detected node IP: 10.0.150.253
--- Sending config to 10.0.150.253 ---
HTTP status: 200
--- Restarting kubelet ---
nsenter: failed to execute bash: No such file or directory

Happening here:

              nsenter --target 1 --mount --uts --ipc --net --pid -- bash -c '
                if command -v systemctl >/dev/null 2>&1; then
                  echo "Restarting kubelet..."
                  systemctl restart kubelet && echo "Kubelet restarted" || echo "Kubelet restart failed"
                else
                  echo "systemctl not found; skipping kubelet restart"
                fi

This doesn't need bash so could be resolved by using /bin/sh instead.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions