yadutaf / docker-machine-driver-ovh

OVH Cloud driver for Docker Machine
https://www.ovh.com/us/cloud/instances/
80 stars 25 forks source link

Updates to OVH flavour and regions are not reflected in README #36

Open Izhaki opened 7 years ago

Izhaki commented 7 years ago

A few things have change in OVH lately.

The example command:

docker-machine -D create --ovh-region "SBG1" --ovh-flavor "vps-ssd-2" --ovh-image "CoreOS stable 899.15.0" --ovh-ssh-user "core" --driver ovh node-1

fails with (for example):

Invalid region SBG1. For a list of valid ovh regions, please visis https://www.ovh.com/manager/cloud/index.html

A few notes:

There are new regions name and new flavour names

This is as far as I manage to get it to work:

docker-machine -D create --ovh-flavor "s1-4" --ovh-region "GRA3" --ovh-image "CoreOS Stable" --ovh-ssh-user "core" --driver ovh ovh-1
yadutaf commented 7 years ago

A few things have change in OVH lately.

One of them being I no longer work for OVH^^

There are new regions name and new flavour names

Oh joy ! This actually depends on the project. Newer projects will get the new regions. Maybe we can abstract this by accepting "SBG" instead of "SBG1" or "SBG3" and return the corresponding real region if there is a single exact match. Will be some work though.

Would you consider a PR ?

Izhaki commented 7 years ago

I wouldn't mind to change the docs, but code changes might be a bit over my head/schedule at the moment (never written anything in GO - but I know who does).

I'm going to contact OVH later on today. I couldn't find any documentation of the actual values one can use... it's a lot of trail-and-error... like S1-4 doesn't work, but s1-4 does.

Do you know of any official documentation?

Also, how are you suppose to know what project version one is using? I guess there will just be a flag with old/new the user provides? How does the user know weather they use the old or new project?

yadutaf commented 7 years ago

https://api.ovh.com/console/#/cloud/project/%7BserviceName%7D/region#GET Will give you the list of valid regions for a given project. You do not have to bother with the project "version". The API handles it.

The same applies for the flavors with https://api.ovh.com/console/#/cloud/project/%7BserviceName%7D/flavor#GET

Documentation is not really OVH stronger point. Ahem...