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

Must provide a region or a Linode ID #24

Closed
andyg5000 opened this issue Apr 9, 2019 · 7 comments · Fixed by #25
Closed

Must provide a region or a Linode ID #24

andyg5000 opened this issue Apr 9, 2019 · 7 comments · Fixed by #25

Comments

@andyg5000
Copy link

I'm unable to get a volume created and get the following error

Error response from daemon: create my-test-volume: VolumeDriver.Create: Create(my-test-volume) Failed: [400] Must provide a region or a Linode ID

I followed all the steps of the README including setting the linode-region and linode-label on the plugin.

Any thoughts what I'm doing wrong?

I also tried to specify --opt region=us-southeast, --opt linode-region=us-southeast, and --opt linode.region=us-southeast to the docker volume create command with no luck.

Thanks!

@displague
Copy link
Contributor

displague commented Apr 9, 2019

Hi @andyg5000

The plugin should be configured with the region option, as described here:

https://github.com/linode/docker-volume-linode#changing-the-plugin-configuration

  • docker plugin set linode linode-region=<linode region>
    • the linode-region option should only be necessary if the linode-label is not provided.
    • linode-label is not necessary if the system hostname matches the Linode label.

I don't believe this option is available at "volume create" time.

Additionally, and most importantly, the us-southeast region does not have the Block Storage Volume service. Here is a community post about the regional availability of the block storage service. Toronto (ca-east) will also have the service.

The README.md of this project shows that us-southeast is a viable region for this plugin. I'll update that list and leave a note and link to the community post. Sorry for the confusion.

done: 069d82b

@andyg5000
Copy link
Author

Ah makes sense. I'll repot back if I have issues with other regions .

@andyg5000
Copy link
Author

Hey @displague

Not sure what I'm doing wrong, but still getting the same error with us-east. Here are my steps to test this plugin out.

apk update
apk upgrade
apk add docker
service docker start
docker plugin install --alias linode linode/docker-volume-linode
docker plugin disable linode
docker plugin set linode linode-token=XXXXX
docker plugin set linode linode-region=us-east
docker plugin enable linode
docker volume create -o size=10 -d linode my-test-volume-10

This ends in:

Error response from daemon: create my-test-volume-10: VolumeDriver.Create: Create(my-test-volume-10) Failed: [400] Must provide a region or a Linode ID

Thanks for the support!

@andyg5000 andyg5000 reopened this Apr 9, 2019
@displague
Copy link
Contributor

displague commented Apr 9, 2019

@andyg5000
I'm wondering if the region option isn't working. Can you try specifying the linode-label option or set the system hostname to match the Linode label before enabling the plugin:

https://wiki.alpinelinux.org/wiki/Configure_Networking

I'll admit that in most of my testing this has been the case. Avoid using the region option just to rule it out.

@andyg5000
Copy link
Author

Unfortunately neither update you suggested solved my problem. The weird thing is that I don't see the error or " Linode ID" in the source code of this plugin

@displague
Copy link
Contributor

displague commented Apr 14, 2019

Give the v0.14 line a shot. The docker image for the plugin has been updated, be sure to pull (docker plugin upgrade)

https://hub.docker.com/r/linode/docker-volume-linode/tags

Region is no longer required (nor used) and linode-label is inferred from the system hostname unless provided.

If your hostname does not match the linode-label, make sure when using the linode-label option that you are specifying the label ("linode1234" or the name you specified "foo") and not the linode id ("1234").

@displague displague reopened this Apr 14, 2019
@zliang-akamai
Copy link
Member

This should has been resolved.

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

Successfully merging a pull request may close this issue.

3 participants