juju2: format of clouds.yaml for juju add-cloud

Andreas Hasenack andreas at canonical.com
Tue May 3 13:58:57 UTC 2016


On Tue, May 3, 2016 at 10:40 AM, Ian Booth <ian.booth at canonical.com> wrote:

>
>
> On 03/05/16 23:16, Andreas Hasenack wrote:
> > Looks like juju 2b6 also doesn't know what it is:
> > $ juju-2.0 bootstrap cistack-controller cistack
> > WARNING unknown config field "domain-name"
> > ERROR authentication failed.
> > (...)
> >
>
> That WARNING above is unfortunately misleading in this case. The provider's
> config parsing needs to be updated to understand that domain-name is a new
> optional field (the field is still processed despite the warning).
>
> But it doesn't indicate the cause of the failure. Perhaps only keystone 2
> is
> supported by the openstack cloud in use. The error message would be better
> if it
> indicated the cause of failure.
>

I got the cause of the failure after using --debug:
2016-05-03 13:27:03 DEBUG juju.provider.openstack provider.go:724 authURL:
http://10.96.5.21:5000/v2.0
2016-05-03 13:27:03 DEBUG juju.provider.openstack provider.go:685
authentication failed: authentication failed
caused by: requesting token: Resource at
http://10.96.5.21:5000/v2.0/auth/tokens not found

Since I had specified domain-name when adding the credential, it was trying
to use keystone v3 authentication on a v2 url.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20160503/f2fec45a/attachment.html>


More information about the Juju mailing list