Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Update Openstack Provider related to goose endpoint version and tests… #6428
Conversation
| @@ -718,7 +718,7 @@ func (e *Environ) getKeystoneDataSource(mu *sync.Mutex, datasource *simplestream | ||
| } | ||
| } | ||
| - url, err := makeServiceURL(e.client, keystoneName, nil) | ||
| + url, err := makeServiceURL(e.client, keystoneName, "v2.0", nil) |
wallyworld
Oct 12, 2016
Owner
Dumb question - we ask for "2.0". Should we fall back to "1.0" if 2.0 not available? What happens if they try on an openstack version that doesn't have the newer 2.0 API?
Also, why pass in "v2.0" and not "2.0"? What does using the "v" prefix gain in return for the added complexity?
|
Regarding the “v” prefix: Regarding the version asked for not being available: Deprecated functions are being removed as well, sometimes between minor versions. /os-floating-ips is being removed in micro version 2.35. If you ask for v2 and there are v2.0 and v2.1 available, you’ll get v2.1. If you ask for no version, it’ll return the url in the endpoint list. Which we do for a cases where the openstack provider makes urls for Swift container retrieval. If there is no match to the version an error is returned. There could be a project here to add different code for different versions, in the callers. On Oct 11, 2016, at 10:08 PM, Ian Booth <notifications@github.commailto:notifications@github.com> wrote: @wallyworld commented on this pull request. In provider/openstack/provider.gohttps://github.com/juju/juju/pull/6428#pullrequestreview-3798435:
Dumb question - we ask for "2.0". Should we fall back to "1.0" if 2.0 not available? What happens if they try on an openstack version that doesn't have the newer 2.0 API? Also, why pass in "v2.0" and not "2.0"? What does using the "v" prefix gain in return for the added complexity? — |
|
Don't forget to update the goose dependency in dependencies.tsv before landing. |
|
@hmlanigan I've merged your commit as part of #6501, so I'm closing this one. Thank you. |
hmlanigan commentedOct 11, 2016
…service changes
These changes are related to go-goose/goose#25