go-goose / goose

goose (Go OpenStack Exchange) - Go bindings for talking to OpenStack.
GNU Lesser General Public License v3.0
17 stars 39 forks source link

fall back to service catalogue url if fail with MultipleChoice error after api version discovery #74

Closed hmlanigan closed 5 years ago

hmlanigan commented 5 years ago

Fix lp:1817242.

If SendRequest() fails with MultipleChoice error after api version discovery, fall back to service catalogue url. Previously fall back was for all services. Now it's on a per service basis.

hmlanigan commented 5 years ago

This change can be tested against the openstack cloud in the bug: https://bugs.launchpad.net/juju/+bug/1817242

Here are juju cloud and credential setup for my trial account: https://pastebin.canonical.com/p/ccQChHYj9c/

novarc for openstack trial account: https://pastebin.canonical.com/p/MsDhYVkvFh/

Create image metadata to bootstrap with: source novarc mkdir ~/simplestreams juju metadata generate-image -d ~/simplestreams -r $OS_REGION_NAME -u $OS_AUTH_URL -s xenial -i f99bb6f7-658d-4f7c-840d-40228ee22581 juju metadata generate-image -d ~/simplestreams -r $OS_REGION_NAME -u $OS_AUTH_URL -s bionic -i 02e47341-017f-4cc5-a049-92bbeeb7310f

juju bootstrap bluvalt --metadata-source ~/simplestreams juju deploy ubuntu