k8snetworkplumbingwg / multus-cni

A CNI meta-plugin for multi-homed pods in Kubernetes
Apache License 2.0
2.35k stars 585 forks source link

multus-ds start failed, /opt/cni/bin" is mounted on "/" but it is not a shared mount #1248

Closed gamelife1314 closed 6 months ago

gamelife1314 commented 6 months ago

What happend:

$ kubectl describe pod -n kube-system   kube-multus-ds-kth5t
....
Warning  Failed     16m                 kubelet            Error: failed to generate container "e9c216aeb0a400d7c3b68ede83e6d1f1b4a42ab0262553cfde5f4fa6254cb829" spec: failed to generate spec: path "/opt/cni/bin" is mounted on "/" but it is not a shared mount
  Warning  Failed     16m                 kubelet            Error: failed to generate container "f28752caf4a531f78b9e722936bbe460595bce928e337af821bc16df5e630be7" spec: failed to generate spec: path "/opt/cni/bin" is mounted on "/" but it is not a shared mount
  Warning  Failed     16m                 kubelet            Error: failed to generate container "e6419ca83810f0b98128ef005d108e393f81efdefe2f4d484fd6f780f64c448a" spec: failed to generate spec: path "/opt/cni/bin" is mounted on "/" but it is not a shared mount
  Warning  Failed     16m                 kubelet            Error: failed to generate container "cf0759a978a1a4ed9fc33c531fe7b9931dee6d8631447c65713f3ffc47e062ed" spec: failed to generate spec: path "/opt/cni/bin" is mounted on "/" but it is not a shared mount
  Warning  Failed     15m                 kubelet            Error: failed to generate container "075867534112ad9a1cfe54273cfeb8b50182ce36bdad78e46732f53c1682a0aa" spec: failed to generate spec: path "/opt/cni/bin" is mounted on "/" but it is not a shared mount
  Warning  Failed     15m                 kubelet            Error: failed to generate container "7aa9da64abeba48921d82a3b53104c58b958a8e9a571f4488cb6b60023e52ffc" spec: failed to generate spec: path "/opt/cni/bin" is mounted on "/" but it is not a shared mount
  Warning  Failed     15m                 kubelet            Error: failed to generate container "16ecd27a60fcd7ade03ff51b34d7371678f8e5e265f4c7f2349dcff0c38c2bf1" spec: failed to generate spec: path "/opt/cni/bin" is mounted on "/" but it is not a shared mount
  Warning  Failed     15m                 kubelet            Error: failed to generate container "86f65a53601ae0cc06937d55af66444ec6c635a7e97a78426b41f2f2ea9ae5e9" spec: failed to generate spec: path "/opt/cni/bin" is mounted on "/" but it is not a shared mount
  Warning  Failed     14m                 kubelet            Error: failed to generate container "4ac1b2296ffe877d0a57e2f2b62e55b412b0039166654dd84ebb611e47afb660" spec: failed to generate spec: path "/opt/cni/bin" is mounted on "/" but it is not a shared mount
  Warning  Failed     14m (x3 over 14m)   kubelet            (combined from similar events): Error: failed to generate container "96163e8f1c4062ff144cabc13cf60f957c42855be3ba5642232960103484a9f5" spec: failed to generate spec: path "/opt/cni/bin" is mounted on "/" but it is not a shared mount
  Normal   Pulled     85s (x72 over 16m)  kubelet            Container image "ghcr.io/k8snetworkplumbingwg/multus-cni:snapshot-thick" already present on machine

What you expected to happen:

multus ds start ok

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

$ uname -a
Linux  5.15.146.1-microsoft-standard-WSL2+ #4 SMP Wed Mar 13 14:43:50 CST 2024 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.4 LTS
Release:        22.04
Codename:       jammy
gamelife1314 commented 6 months ago

execute mount --make-rshared in my host and solved this problem.