Comment 10 for bug 2032783

Revision history for this message
eblock@nde.ag (eblock) wrote :

I started from scratch (snapshot of the VM), with user "ubuntu" instead of "sunbeam", now I get this error:

---snip---
ubuntu@sunbeam:~$ sunbeam cluster bootstrap --accept-defaults
⠧ Bootstrapping Juju onto machine ... Error bootstrapping Juju
Traceback (most recent call last):
  File "/snap/openstack/479/lib/python3.10/site-packages/sunbeam/commands/juju.py", line 559, in run
    process = subprocess.run(
  File "/usr/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/snap/openstack/479/juju/bin/juju', 'bootstrap', 'sunbeam', 'sunbeam-controller', '--config', 'juju-http-proxy="http://IP:PORT"', '--config', 'snap-http-proxy="http://IP:PORT"', '--config', 'juju-https-proxy="http://IP:PORT"', '--config', 'snap-https-proxy="http://IP:PORT"', '--config', 'juju-no-proxy="localhost,10.1.0.0/16,127.0.0.1, DOMAIN,10.152.183.0/24, 172.17.2.0/24",localhost, DOMAIN,.svc']' returned non-zero exit status 1.
Creating Juju controller "sunbeam-controller" on sunbeam/default
Looking for packaged Juju agent version 3.4.2 for amd64
WARNING Got error requesting "https://streams.canonical.com/juju/tools/streams/v1/index2.sjson": Get "https://streams.canonical.com/juju/tools/streams/v1/index2.sjson": proxyconnect tcp: dial tcp: lookup "http: no such host
WARNING Got error requesting "https://streams.canonical.com/juju/tools/streams/v1/index2.sjson": Get "https://streams.canonical.com/juju/tools/streams/v1/index2.sjson": proxyconnect tcp: dial tcp: lookup "http: no such host
WARNING Got error requesting "https://streams.canonical.com/juju/tools/streams/v1/index2.sjson": Get "https://streams.canonical.com/juju/tools/streams/v1/index2.sjson": proxyconnect tcp: dial tcp: lookup "http: no such host
ERROR failed to bootstrap model: cannot read index data, attempt count exceeded: cannot access URL "https://streams.canonical.com/juju/tools/streams/v1/index2.sjson": Get "https://streams.canonical.com/juju/tools/streams/v1/index2.sjson": proxyconnect tcp: dial tcp: lookup "http: no such host

Error: Command '['/snap/openstack/479/juju/bin/juju', 'bootstrap', 'sunbeam', 'sunbeam-controller', '--config', 'juju-http-proxy="http://IP:PORT"', '--config', 'snap-http-proxy="http://IP:PORT"', '--config', 'juju-https-proxy="http://IP:PORT"', '--config', 'snap-https-proxy="http://IP:PORT"', '--config', 'juju-no-proxy="localhost,10.1.0.0/16,127.0.0.1, DOMAIN,10.152.183.0/24, 172.17.2.0/24",localhost, DOMAIN,.svc']' returned non-zero exit status 1.
---snip---

This looks like a parsing error, doesn't it?