Comment 5 for bug 1215948

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 1215948] Re: bootstrap requires unrestricted HTTP egress

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2013-08-29 15:37, Jacek Nykis wrote:
> I just hit this bug myself. The error message is very misleading:
>
> $ juju bootstrap error: failed to list contents of container:
> juju-dist caused by: Unauthorised URL
> http://xxxx:8080/v1/AUTH_0000/juju-dist?delimiter=&marker=&prefix=tools%2Fjuju-
>
>
>
caused by: request
(http://xxxx:8080/v1/AUTH_0000/juju-dist?delimiter=&marker=&prefix=tools%2Fjuju-)
returned unexpected status: 401; error info: 401 Unauthorized
> This server could not verify that you are authorized to access the
> document you requested. Either you supplied the wrong credentials
> (e.g., bad password), or your browser does not understand how to
> supply the credentials required.
>
> I spent quite some time checking access details and testing while
> the solution was to run "juju bootstrap --upload-tools". If
> downloading data from amazon is permanent solution then this error
> message could be improved. Juju could also suggest way of fixing
> this problem.
>
> Ideal solution would be for juju to realise it does not have
> access to amazon and try "juju bootstrap --upload-tools" to make
> this transparend to end user.
>

- --upload-tools is actually a bit of a hack for developers that want to
test with a set of tools that has never been actually released. It
isn't intended to actually work in a real deployment, and has a bunch
of edge bits that may fail as you try to deploy multiple series, etc.

We can fail and try to offer a better place to sync-tools from, though.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlIfNo4ACgkQJdeBCYSNAAPNggCfWrx81zmO4gP+XXW/G4Zgh4Xn
OEEAnjiwstleUuh4Tk1kU3rna8UTgIG2
=AdP9
-----END PGP SIGNATURE-----