Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

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

Open
Izhaki opened this issue Jun 30, 2017 · 3 comments
Open

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

Izhaki opened this issue Jun 30, 2017 · 3 comments

Comments

@Izhaki
Copy link

Izhaki commented Jun 30, 2017

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:

  • visis (typo)
  • The link doesn't quite take you anywhere of use.

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
Copy link
Owner

yadutaf commented Jun 30, 2017

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
Copy link
Author

Izhaki commented Jun 30, 2017

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
Copy link
Owner

yadutaf commented Jun 30, 2017

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...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants