Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error="open /host/opt/cni/bin/portmap: text file busy" #8932

Open
geotransformer opened this issue Jun 20, 2024 · 1 comment
Open

error="open /host/opt/cni/bin/portmap: text file busy" #8932

geotransformer opened this issue Jun 20, 2024 · 1 comment

Comments

@geotransformer
Copy link

geotransformer commented Jun 20, 2024

Expected Behavior

Calico pod should be able to up and running

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

  1. Upgrade the system os
  2. root partition switch over, and install the kubernetes with backup etcd on the new root partition
  3. Install kubeadm and run kubeadm init with existing etcd
  4. Calico pod crash loop

Context

master-1:~$ kubectl logs calico-node-pvc2n -n kube-system -c install-cni -p
time="2024-06-20T07:51:02Z" level=info msg="Running as a Kubernetes pod" source="install.go:140"
time="2024-06-20T07:51:02Z" level=info msg="Installed /host/opt/cni/bin/bandwidth"
time="2024-06-20T07:51:02Z" level=info msg="Installed /host/opt/cni/bin/calico"
time="2024-06-20T07:51:02Z" level=info msg="Installed /host/opt/cni/bin/calico-ipam"
time="2024-06-20T07:51:02Z" level=info msg="Installed /host/opt/cni/bin/flannel"
time="2024-06-20T07:51:02Z" level=info msg="Installed /host/opt/cni/bin/host-local"
time="2024-06-20T07:51:02Z" level=info msg="Installed /host/opt/cni/bin/install"
time="2024-06-20T07:51:02Z" level=info msg="Installed /host/opt/cni/bin/loopback"
time="2024-06-20T07:51:02Z" level=error msg="Failed to install /host/opt/cni/bin/portmap" error="open /host/opt/cni/bin/portmap: text file busy"

Your Environment

  • Calico version 3.24
  • Orchestrator version (e.g. kubernetes, mesos, rkt): Kubernetes
  • Operating System and version:Ubuntu 20.04
  • Link to your project (optional):
@coutinhop
Copy link
Contributor

error="open /host/opt/cni/bin/portmap: text file busy"

@geotransformer could you run lsof /opt/cni/bin/portmap on your host to check what's preventing that file from being overwritten by the install-cni initContainer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants