Docker Community Forums

Share and learn in the Docker community.

Error InvalidZone when creating a volume by using cloudstor:aws driver


(Connie000) #1

[root@ip-172-31-22-75 ~]# docker volume create -d “cloudstor:aws” --opt ebstype=gp2 --opt size=10 --opt iops=1000 --opt backing=relocatable data-volume-1
Error response from daemon: create data-volume-1: VolumeDriver.Create: volume creation failed: InvalidZone.NotFound: The zone ‘us-west-2b’ does not exist.
status code: 400, request id: c7f94873-4467-41f8-9daf-a6b400b9a758
[root@ip-172-31-22-75 ~]# docker plugin ls
ID NAME DESCRIPTION ENABLED
2f25d467f266 cloudstor:aws cloud storage plugin for Docker true

Can anyone help?Thank you very much.


(Connie000) #2

I found I used the wrong AWS_REGION when installing plugin. I changed to AWS_REGION=us-west-2b (correct regin) this time. But Error" Post https://ec2.us-west-2b.amazonaws.com/: dial tcp: lookup ec2.us-west-2b.amazonaws.com on 172.31.0.2:53: no such host" happened. Please help. Thank you very much. [root@ip-172-31-22-75 ~]# docker plugin ls ID NAME DESCRIPTION ENABLED [root@ip-172-31-22-75 ~]# docker plugin install --alias cloudstor:aws --grant-all-permissions docker4x/cloudstor:17.06.0-ce-aws1 CLOUD_PLATFORM=AWS AWS_REGION=us-west-2b AWS_STACK_ID=some_unique_id_for_swarm EFS_SUPPORTED=0 DEBUG=1 17.06.0-ce-aws1: Pulling from docker4x/cloudstor e3836051a28d: Download complete Digest: sha256:732935e03664d0f741ea4393ef5847ceabb9edac572ba02ec0815d0e6663d7f7 Status: Downloaded newer image for docker4x/cloudstor:17.06.0-ce-aws1 Installed plugin docker4x/cloudstor:17.06.0-ce-aws1 [root@ip-172-31-22-75 ~]# docker plugin ls ID NAME DESCRIPTION ENABLED dc7c79c5451c cloudstor:aws cloud storage plugin for Docker true [root@ip-172-31-22-75 ~]# docker volume create \ > -d “cloudstor:aws” \ > --opt ebstype=gp2 \ > --opt size=10 \ > --opt iops=1000 \ > --opt backing=relocatable \ > data-volume-1 Error response from daemon: create data-volume-1: VolumeDriver.Create: volume creation failed: RequestError: send request failed caused by: Post https://ec2.us-west-2b.amazonaws.com/: dial tcp: lookup ec2.us-west-2b.amazonaws.com on 172.31.0.2:53: no such host