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

k8s.io/client-go/informers/factory.go:135: Failed to list *v1beta1.VolumeAttachment: the server could not find the requested resource #72

Open
joedborg opened this issue Apr 25, 2022 · 10 comments

Comments

@joedborg
Copy link

$ kubectl logs pod/csi-attacher-s3-0 -n kube-system
I0425 17:50:09.496327       1 reflector.go:188] Listing and watching *v1beta1.VolumeAttachment from k8s.io/client-go/informers/factory.go:135
E0425 17:50:09.502791       1 reflector.go:156] k8s.io/client-go/informers/factory.go:135: Failed to list *v1beta1.VolumeAttachment: the server could not find the requested resource
I0425 17:50:10.502928       1 reflector.go:188] Listing and watching *v1beta1.VolumeAttachment from k8s.io/client-go/informers/factory.go:135
E0425 17:50:10.505112       1 reflector.go:156] k8s.io/client-go/informers/factory.go:135: Failed to list *v1beta1.VolumeAttachment: the server could not find the requested resource
I0425 17:50:11.505270       1 reflector.go:188] Listing and watching *v1beta1.VolumeAttachment from k8s.io/client-go/informers/factory.go:135
E0425 17:50:11.513937       1 reflector.go:156] k8s.io/client-go/informers/factory.go:135: Failed to list *v1beta1.VolumeAttachment: the server could not find the requested resource

This means that the test pod won't start.

$ kubectl describe pod/csi-s3-test-nginx
Name:         csi-s3-test-nginx
Namespace:    default
Priority:     0
Node:         atlas/192.168.0.254
Start Time:   Mon, 25 Apr 2022 13:41:06 -0400
Labels:       <none>
Annotations:  <none>
Status:       Pending
IP:
IPs:          <none>
Containers:
  csi-s3-test-nginx:
    Container ID:
    Image:          nginx
    Image ID:
    Port:           <none>
    Host Port:      <none>
    State:          Waiting
      Reason:       ContainerCreating
    Ready:          False
    Restart Count:  0
    Environment:    <none>
    Mounts:
      /var/lib/www/html from webroot (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-mt78j (ro)
Conditions:
  Type              Status
  Initialized       True
  Ready             False
  ContainersReady   False
  PodScheduled      True
Volumes:
  webroot:
    Type:       PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
    ClaimName:  csi-s3-pvc
    ReadOnly:   false
  kube-api-access-mt78j:
    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
  ----     ------              ----                ----                     -------
  Warning  FailedMount         80s (x4 over 8m6s)  kubelet                  Unable to attach or mount volumes: unmounted volumes=[webroot], unattached volumes=[webroot kube-api-access-mt78j]: timed out waiting for the condition
  Warning  FailedAttachVolume  2s (x5 over 8m9s)   attachdetach-controller  AttachVolume.Attach failed for volume "pvc-0050921d-b7f2-4158-aab9-118231645848" : Attach timeout for volume pvc-0050921d-b7f2-4158-aab9-118231645848

The provisioner has worked and the bucket shows on my dashboard.

@talha0324
Copy link

Running into the same issue
Any fix for this?

@liyoujunlizi
Copy link

me too.

@talha0324
Copy link

https://github.com/ctrox/csi-s3/pull/70/files

This fixes the issue for now

@liyoujunlizi
Copy link

Thank you Talha so Much, it works.
And I actually use k8s v1.22.

@joedborg
Copy link
Author

joedborg commented Jun 8, 2022

@talha0324 @liyoujunlizi

That fixed the attacher issue, but I get

Warning  FailedMount             5s (x9 over 2m13s)  kubelet                  MountVolume.MountDevice failed for volume "pvc-de09f6fb-2280-4336-b482-e76fac582301" : kubernetes.io/csi: attacher.MountDevice failed to create newCsiDriverClient: driver name ch.ctrox.csi.s3-driver not found in the list of registered CSI drivers

on the test pod.

@talha0324
Copy link

@joedborg did you followed the install guide? seems like the drivers are not running properly or missing.

verify driver pods + storageClass

@joedborg
Copy link
Author

joedborg commented Jun 8, 2022

@talha0324 I did:

pod/csi-attacher-s3-0                         1/1     Running   0              30m
pod/csi-provisioner-s3-0                      2/2     Running   0              30m
pod/csi-s3-9r4n7                              2/2     Running   0              30m
NAME     PROVISIONER              RECLAIMPOLICY   VOLUMEBINDINGMODE   ALLOWVOLUMEEXPANSION   AGE
csi-s3   ch.ctrox.csi.s3-driver   Delete          Immediate           false                  30m

@talha0324
Copy link

What namespace are you using?

@joedborg
Copy link
Author

kube-system

@qtvhao
Copy link

qtvhao commented Nov 2, 2023

https://github.com/ctrox/csi-s3/pull/70/files

This fixes the issue for now

It works, you saved my day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants