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

fix: 遇到创建pod的报错 #2

Open
googs1025 opened this issue May 29, 2023 · 1 comment
Open

fix: 遇到创建pod的报错 #2

googs1025 opened this issue May 29, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@googs1025
Copy link
Collaborator

IPs:
Controlled By: ReplicaSet/mycsi-nginx-64c7d9cb77
Containers:
nginx:
Container ID:
Image: nginx:1.14.2
Image ID:
Port: 80/TCP
Host Port: 0/TCP
State: Waiting
Reason: ContainerCreating
Ready: False
Restart Count: 0
Environment:
Mounts:
/data from data (rw)
/var/run/secrets/kubernetes.io/serviceaccount from default-token-qrmwn (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
data:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: mycsi-pvc
ReadOnly: false
default-token-qrmwn:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-qrmwn
Optional: false
QoS Class: BestEffort
Node-Selectors:
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


Warning FailedMount 4m26s (x2 over 4m39s) kubelet Unable to attach or mount volumes: unmounted volumes=[data], unattached volumes=[data default-token-qrmwn]: error processing PVC default/mycsi-pvc: PVC is not bound
Normal SuccessfulAttachVolume 4m26s attachdetach-controller AttachVolume.Attach succeeded for volume "pvc-d86b8879-efa8-420d-a725-315bba7b014d"
Warning FailedMount 2m9s kubelet Unable to attach or mount volumes: unmounted volumes=[data], unattached volumes=[data default-token-qrmwn]: timed out waiting for the condition
Warning FailedMount 2m2s (x9 over 4m10s) kubelet MountVolume.SetUp failed for volume "pvc-d86b8879-efa8-420d-a725-315bba7b014d" : rpc error: code = Internal desc = mount failed: exit status 255
Mounting command: mount
Mounting arguments: -t nfs 10.0.0.8:/home/test /var/lib/kubelet/pods/5fe94a19-fda9-485e-b1ce-e091a2b5c24c/volumes/kubernetes.iocsi/pvc-d86b8879-efa8-420d-a725-315bba7b014d/mount
Output: mount: mounting 10.0.0.8:/home/test on /var/lib/kubelet/pods/5fe94a19-fda9-485e-b1ce-e091a2b5c24c/volumes/kubernetes.io
csi/pvc-d86b8879-efa8-420d-a725-315bba7b014d/mount failed: Connection refused

@googs1025 googs1025 added the bug Something isn't working label May 29, 2023
@googs1025
Copy link
Collaborator Author

重启nfs服务或是重启网络可以暂时解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant