-
Notifications
You must be signed in to change notification settings - Fork 807
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
Can't start v1 docker image "panic: runtime error: invalid memory address or nil pointer dereference" #876
Comments
Hi @lens0021 , For v1.0.0 we add a new serviceaccount for the driver, Can you confirm you created, clusterrole, clusterrolebinding and serviceaccount in your cluster? |
Oh, I didn't. Before I tested with 'docker run', I had tried to run the driver using Hashicorp Nomad as described in here and failed. |
Hi @AndyXiangLi! I'm one of the developers of Nomad. I just took a pass through the section of the code in question and it looks like when the Making the query of the EC2 metadata service strictly dependent on being in a K8s cluster is unfortunate. Any chance that could be made opt-in when k8s is available but use a typical HTTP scrape of the EC2 metadata endpoint when it's not? |
Hi @tgross, the reason we making this change is avoiding expose instance metadata on pod level and we also suggest our customer to disable instance metadata service on their cluster for the security concern. But what you mentioned makes sense, driver should be working if instance metadata service is available but clusterConfig is not. NewMetadata requires k8 config, if we set k8 clientset when Instance metadata is not available, it should solve this issue. @wongma7 @vdhanan What do you think? |
That will solve the crash. It would also need to have a no-op for the call to |
/kind bug
What happened?
amazon/aws-ebs-csi-driver:v1.0.0
andamazon/aws-ebs-csi-driver:v1.0.0-amazonlinux
docker image cannot start.Adding
-e "AWS_REGION=xx-xxxx-x"
does not help.What you expected to happen?
I expected it starts like v0.10.1:
How to reproduce it (as minimally and precisely as possible)?
docker pull amazon/aws-ebs-csi-driver:v1.0.0
docker run amazon/aws-ebs-csi-driver:v1.0.0
Environment
uname -a
: Linux ip-172-31-26-55.ap-northeast-1.compute.internal 4.14.231-173.360.amzn2.aarch64 ♯1 SMP Mon Apr 19 23:20:36 UTC 2021 aarch64 aarch64 aarch64 GNU/LinuxThe text was updated successfully, but these errors were encountered: