Upgrading Kubernetes Cluster To v1.21 Fails With Error "/usr/bin/rm: No such file or directory"

Problem

  • Upgrading a containerd based cluster v1.21 fails with below error:

--- /opt/pf9/pf9-kube/phases/runtime_configure.sh start at 2023-03-20 11:03:20 ---
...
[2023-03-20 11:03:27] Fetched 172 kB in 1s (158 kB/s) [2023-03-20 11:03:28] Reading package lists... [2023-03-20 11:03:28] inactive [2023-03-20 11:03:28] os.sh: line 191: /usr/bin/rm: No such file or directory

Environment

  • Platform9 Managed Kubernetes - v5.4 and above

  • pf9-kube-v1.21

Cause

  • Issue has been identified and the fix has been backported to v1.22.

Workaround

  • As a workaround the issue can fixed by running below command on the master and worker nodes:

# ln -s /bin/rm /usr/bin/rm

Last updated