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

Unable to attach or mount volumes #71

Open
jailbreakerSN opened this issue Apr 30, 2021 · 11 comments
Open

Unable to attach or mount volumes #71

jailbreakerSN opened this issue Apr 30, 2021 · 11 comments

Comments

@jailbreakerSN
Copy link

Hello,

I'm facing a issu when trying to test csi-gcs on GKE after creating the secret csi-gcs-secret

  • kubectl create secret generic csi-gcs-secret --from-literal=bucket=<BUCKET_NAME> --from-file=key=<PATH_TO_SERVICE_ACCOUNT_KEY>
  • kubectl apply -k "github.com/ofek/csi-gcs/examples/static?ref=v0.7.0"
    The errors I got are:
  • AttachVolume.Attach failed for volume "csi-gcs-pv" : attachdetachment timeout for volume csi-gcs
  • Unable to attach or mount volumes: unmounted volumes=[csi-gcs-pvc], unattached volumes=[csi-gcs-pvc default-token-n6w8k]: timed out waiting for the condition
@jailbreakerSN
Copy link
Author

@ofek can you check please my issue?
Thanks in advance!

@ofek
Copy link
Owner

ofek commented May 11, 2021

@dysosmus Do you think this might be related to #72?

@dysosmus
Copy link
Contributor

@ofek I can observe similar events in our clusters and it's related to the driver starting up. In our case, those warnings are however transitory and doesn't prevent the pod from eventually start.

@jailbreakerSN
Copy link
Author

Or course @dysosmus, it doesn't prevent the pod from start, but stay at containairizing step, because it seems to wait for a volume that never provided !

@dysosmus
Copy link
Contributor

it doesn't prevent the pod from start, but stay at containairizing step, because it seems to wait for a volume that never provided !

@ofek Then that seem different, from what I'm working on #72 :( . In my experience, the container eventually start after ±1-2 minutes of retries.

@jailbreakerSN is the csi-gcs driver pod is running properly on the node where your pod is running?

@jailbreakerSN
Copy link
Author

Hello @dysosmus ,
Yes, I think all is running (same namespace, same node) like the commands I specified earlier.
I put the Key and bucket Bâle correctly and ran out with kubectl

@ofek
Copy link
Owner

ofek commented May 17, 2021

@maennchen Do you have any ideas?

@jailbreakerSN
Copy link
Author

@ofek @dysosmus , might it be related to the status of my cluster, which is a private cluster?

@dysosmus
Copy link
Contributor

dysosmus commented May 18, 2021

@jailbreakerSN could be, do your subnet where your GKE cluster nodes are running have Google Private Access enabled?
You can also try to spin up a GCP Cloud NAT on the subnet, but afaik that shouldn't be needed if Private Access is enabled.

@maennchen
Copy link
Collaborator

@jailbreakerSN Can you capture the log of the csi-gcs DaemonSet pods while you provision a new PVC and start a pod using it?

@elamcheliyan
Copy link

elamcheliyan commented Jan 18, 2022

@jailbreakerSN , Is this issue still present? even I want to try this in my GKE services

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

5 participants