Comment 15 for bug 1681278

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 1681278] Re: bootstrap failure on MAAS

If it can't find index2.json it should then fall back to index.json which
does remove:
https://streams.canonical.com/juju/gui/streams/v1/index.json
Which is listed as 'trying legacy' above, which looks like it did succeed.
We shouldn't need mirrors.sjson, which is why I imagine it is giving the
failure only at TRACE level because it is one that we can recover from.

If you need to set APT proxies and plain HTTP proxies then you also need to
set those for Juju and not just for MAAS. We don't use the APT proxy for
regular HTTP because often they are actually enabled differently (many apt
caching proxies *refuse* regular http traffic, etc.)

You can set them in clouds.yaml with something like:
clouds:
  mymaas:
    type: maas
    auth-types: [oauth1]
    endpoint: http://<hostname>/MAAS
    config:
      apt-http-proxy: http://10.0.0.1:3142
      apt-https-proxy: http://10.0.0.1:3142
      http-proxy:...
      https-proxy:...

You can also use:
  juju bootstrap --no-gui
If you don't want to download the Javascript GUI.

On Wed, May 3, 2017 at 8:43 AM, fab an ice <email address hidden>
wrote:

> 08:36:16 TRACE juju.environs.simplestreams simplestreams.go:487 fetchData
> failed for "https://streams.canonical.com/juju/gui/streams/v1/index2.sjson":
> cannot find URL "https://streams.canonical.com/juju/gui/streams/v1/
> index2.sjson" not found
> 08:36:16 TRACE juju.environs.simplestreams simplestreams.go:433 looking
> for data index using URL https://streams.canonical.com/
> juju/gui/streams/v1/index2.sjson
> 08:36:16 TRACE juju.environs.simplestreams simplestreams.go:436
> streams/v1/index2.sjson not accessed, actual error: invalid URL "
> https://streams.canonical.com/juju/gui/streams/v1/index2.sjson" not found
> 08:36:16 TRACE juju.environs.simplestreams simplestreams.go:437
> streams/v1/index2.sjson not accessed, trying legacy index path:
> streams/v1/index.sjson
> 08:36:16 TRACE juju.environs.simplestreams simplestreams.go:487 fetchData
> failed for "https://streams.canonical.com/juju/gui/streams/v1/
> mirrors.sjson": cannot find URL "https://streams.canonical.
> com/juju/gui/streams/v1/mirrors.sjson" not found
>
>
> sysadmin@MAAS:~$ wget https://streams.canonical.com/
> juju/gui/streams/v1/index2.sjson
> --2017-05-03 08:42:25-- https://streams.canonical.com/
> juju/gui/streams/v1/index2.sjson
> Connecting to 192.168.168.5:10080... connected.
> Proxy request sent, awaiting response... 404 Not Found
> 2017-05-03 08:42:26 ERROR 404: Not Found.
>
> --
> You received this bug notification because you are subscribed to juju.
> Matching subscriptions: juju bugs
> https://bugs.launchpad.net/bugs/1681278
>
> Title:
> bootstrap failure on MAAS
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju/+bug/1681278/+subscriptions
>