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

Support create pvc in other regions #378

Closed
RottenLeaf24 opened this issue Sep 27, 2019 · 2 comments · Fixed by #438
Closed

Support create pvc in other regions #378

RottenLeaf24 opened this issue Sep 27, 2019 · 2 comments · Fixed by #438
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Milestone

Comments

@RottenLeaf24
Copy link

RottenLeaf24 commented Sep 27, 2019

/kind feature

What happened?
When I create pvc use aws-ebs-csi-driver,if the pvc in Tokyo region always get the error like:

could not create volume in EC2: InvalidZone.NotFound: The zone 'ap-northeast-1c' does not exist.
or
could not create volume in EC2: InvalidZone.NotFound: The zone 'ap-northeast-1a' does not exist.

The reason for this phenomenon is cause by multiple region.
After multiple tests, I can confirm the aws-ebs-csi-driver can only create pvc in the same region with controller.When the region of pvc and controller is different,the ebs-csi-node can report it's own zone to controller,but the controller can't recognize the zone in other region.Then we get the error:The zone does not exist.

What you expected to happen?
Can create cross-regional pvc in kubernetes cluster on aws machine by aws-ebs-csi-driver.
How to reproduce it (as minimally and precisely as possible)?
Create a cross-regional kubernetes cluster,and create a pvc in a different region with ebs-csi-controller pod.
Anything else we need to know?:

Environment

  • Kubernetes version (use kubectl version):
    Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.3", GitCommit:"2d3c76f9091b6bec110a5e63777c332469e0cba2", GitTreeState:"clean", BuildDate:"2019-08-19T11:13:54Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"linux/amd64"}
    Server Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.3", GitCommit:"2d3c76f9091b6bec110a5e63777c332469e0cba2", GitTreeState:"clean", BuildDate:"2019-08-19T11:05:50Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"linux/amd64"}

  • Driver version:
    latest alpha

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Sep 27, 2019
@leakingtapan
Copy link
Contributor

leakingtapan commented Sep 27, 2019

Yep. The current controller service assumes that PVC's are in the same region as the controller. This is definitely something I can improve. See here about how the cloud struct is initialized.

I would like to assign this as a feature. Please up vote if this feature is important to you.

/kind feature

@k8s-ci-robot k8s-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Sep 27, 2019
@RottenLeaf24
Copy link
Author

That's wonderful,this feature will bring us great convenience.And I think this feature will also bring a lot of benefits to other users who have cross-regional kubernetes cluster on aws.

@leakingtapan leakingtapan removed the kind/bug Categorizes issue or PR as related to a bug. label Nov 25, 2019
@leakingtapan leakingtapan changed the title ebs-csi-controller can't create pvc in other region Support create pvc in other regions Nov 25, 2019
@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Nov 25, 2019
@leakingtapan leakingtapan added this to the 0.6 milestone Nov 25, 2019
@leakingtapan leakingtapan removed the kind/bug Categorizes issue or PR as related to a bug. label Nov 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
3 participants