When checking the pod status in the guest cluster (kubectl get pods -n kube-system), one or more pods starting with update-node-password-runner-xxx are stuck in an Error or CrashLoopBackOff state.
Running kubectl describe pod <pod-name> -n kube-system on a crashing pod reveals the following fatal OCI runtime error (timestamps and counts masked):
Warning Failed ####m (##### over ####d) kubelet Error: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/" to rootfs at "/": create mountpoint for / mount: mountpoint "/run/containerd/io.containerd.runtime.v2.task/k8s.io/update-password/rootfs" is on the top of rootfsThe logic to resolve this issue is already present in the updated Tanzu controller running in the vSphere Namespace. To resolve the issue, delete the stale DaemonSet from the guest cluster so the controller can securely recreate it.
kubectl delete ds update-node-password-runner -n kube-systemkubectl get pods -n kube-system -w | grep update-node-password-runnerNote: If the pods do not recreate immediately after deleting the DaemonSet, this simply means the cluster passwords are already up-to-date and no rotation is currently required. To confirm the timestamp of the last successful update, check the cluster annotations from the Supervisor Cluster context:kubectl get cluster <WORKLOAD_CLUSTER_NAME> -n <VSPHERE_NAMESPACE> -o yaml | grep password-update-last-timestampkubectl annotate cluster <WORKLOAD_CLUSTER_NAME> -n <VSPHERE_NAMESPACE> kubernetes.vmware.com/password-update-last-(Note the - at the very end of the command, which instructs Kubernetes to remove the annotation.)
After running this command, switch back to the guest cluster and repeat Step 3 to watch the ephemeral pods spin up, rotate the passwords, and cleanly terminate.