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

MountVolume.SetUp failed for volume "pvc-5db7ec30-91d7-49a9-92eb-28019bc6f05a" : rpc error: code = Internal desc = mount bind fail. #8

Open
dyrnq opened this issue Jan 13, 2023 · 1 comment
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@dyrnq
Copy link
Owner

dyrnq commented Jan 13, 2023

Name:             test-nginx-65c6d4bf48-nsn7v
Namespace:        default
Priority:         0
Service Account:  default
Node:             m204/192.168.6.204
Start Time:       Fri, 13 Jan 2023 09:43:45 +0800
Labels:           app=test-nginx
                  pod-template-hash=65c6d4bf48
Annotations:      <none>
Status:           Pending
IP:               
IPs:              <none>
Controlled By:    ReplicaSet/test-nginx-65c6d4bf48
Containers:
  nginx:
    Container ID:   
    Image:          nginx:latest
    Image ID:       
    Port:           80/TCP
    Host Port:      0/TCP
    State:          Waiting
      Reason:       ContainerCreating
    Ready:          False
    Restart Count:  0
    Environment:    <none>
    Mounts:
      /usr/share/nginx/html from maven-cache (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-wn54s (ro)
Conditions:
  Type              Status
  Initialized       True 
  Ready             False 
  ContainersReady   False 
  PodScheduled      True 
Volumes:
  my-volume:
    Type:       EmptyDir (a temporary directory that shares a pod's lifetime)
    Medium:     
    SizeLimit:  <unset>
  maven-cache:
    Type:       PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
    ClaimName:  maven-cache
    ReadOnly:   false
  kube-api-access-wn54s:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    ConfigMapOptional:       <nil>
    DownwardAPI:             true
QoS Class:                   BestEffort
Node-Selectors:              <none>
Tolerations:                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type     Reason       Age    From               Message
  ----     ------       ----   ----               -------
  Normal   Scheduled    3m11s  default-scheduler  Successfully assigned default/test-nginx-65c6d4bf48-nsn7v to m204
  Warning  FailedMount  98s    kubelet            MountVolume.SetUp failed for volume "pvc-5db7ec30-91d7-49a9-92eb-28019bc6f05a" : rpc error: code = Internal desc = mount bind fail. stagingTargetPath:/var/lib/kubelet/plugins/kubernetes.io/csi/csi.cubefs.com/25d95a4317311a75df8c06f904a95e38c2456b6244b295da5feea65607cbd4e9/globalmount, targetPath:/var/lib/kubelet/pods/6c41c418-3b15-467a-afdb-36a9da6c1505/volumes/kubernetes.io~csi/pvc-5db7ec30-91d7-49a9-92eb-28019bc6f05a/mount error:mount --bind /var/lib/kubelet/plugins/kubernetes.io/csi/csi.cubefs.com/25d95a4317311a75df8c06f904a95e38c2456b6244b295da5feea65607cbd4e9/globalmount to /var/lib/kubelet/pods/6c41c418-3b15-467a-afdb-36a9da6c1505/volumes/kubernetes.io~csi/pvc-5db7ec30-91d7-49a9-92eb-28019bc6f05a/mount fail: exit status 32
  Warning  FailedMount  68s    kubelet            Unable to attach or mount volumes: unmounted volumes=[maven-cache], unattached volumes=[kube-api-access-wn54s maven-cache]: timed out waiting for the condition
@dyrnq
Copy link
Owner Author

dyrnq commented Jan 13, 2023

Name:             test-nginx-65c6d4bf48-v8qgp
Namespace:        default
Priority:         0
Service Account:  default
Node:             m205/192.168.6.205
Start Time:       Fri, 13 Jan 2023 09:43:45 +0800
Labels:           app=test-nginx
                  pod-template-hash=65c6d4bf48
Annotations:      cni.projectcalico.org/containerID: b67bf4bd02e91c5400a80593bc13c00cd21b0311f71e5b4929afbe25ddafee21
                  cni.projectcalico.org/podIP: 10.244.34.166/32
                  cni.projectcalico.org/podIPs: 10.244.34.166/32
Status:           Running
IP:               10.244.34.166
IPs:
  IP:           10.244.34.166
Controlled By:  ReplicaSet/test-nginx-65c6d4bf48
Containers:
  nginx:
    Container ID:   containerd://fa809ed5ae9c652db88d89e96793bf6413643f89db424e159e9857c3a4feb909
    Image:          nginx:latest
    Image ID:       docker.io/library/nginx@sha256:b8f2383a95879e1ae064940d9a200f67a6c79e710ed82ac42263397367e7cc4e
    Port:           80/TCP
    Host Port:      0/TCP
    State:          Running
      Started:      Fri, 13 Jan 2023 09:43:57 +0800
    Ready:          True
    Restart Count:  0
    Environment:    <none>
    Mounts:
      /usr/share/nginx/html from maven-cache (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-rnd8g (ro)
Conditions:
  Type              Status
  Initialized       True 
  Ready             True 
  ContainersReady   True 
  PodScheduled      True 
Volumes:
  my-volume:
    Type:       EmptyDir (a temporary directory that shares a pod's lifetime)
    Medium:     
    SizeLimit:  <unset>
  maven-cache:
    Type:       PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
    ClaimName:  maven-cache
    ReadOnly:   false
  kube-api-access-rnd8g:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    ConfigMapOptional:       <nil>
    DownwardAPI:             true
QoS Class:                   BestEffort
Node-Selectors:              <none>
Tolerations:                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type    Reason                  Age    From                     Message
  ----    ------                  ----   ----                     -------
  Normal  Scheduled               5m9s   default-scheduler        Successfully assigned default/test-nginx-65c6d4bf48-v8qgp to m205
  Normal  SuccessfulAttachVolume  5m8s   attachdetach-controller  AttachVolume.Attach succeeded for volume "pvc-5db7ec30-91d7-49a9-92eb-28019bc6f05a"
  Normal  Pulling                 4m59s  kubelet                  Pulling image "nginx:latest"
  Normal  Pulled                  4m58s  kubelet                  Successfully pulled image "nginx:latest" in 1.735011643s
  Normal  Created                 4m57s  kubelet                  Created container nginx
  Normal  Started                 4m57s  kubelet                  Started container nginx

@dyrnq dyrnq added help wanted Extra attention is needed question Further information is requested labels Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant