bootstrap localhost: ERROR Get "https://10.194.144.1:8443/1.0": Unable to connect to: 10.194.144.1:8443

Bug #1884814 reported by Jesse Leonard
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Expired
Undecided
Unassigned

Bug Description

When trying to `juju bootstrap localhost` I get

```
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for ureadahead (0.100.0-21) ...
Processing triggers for systemd (237-3ubuntu10.41) ...
Fetching Juju agent version 2.8.0 for amd64
Attempt 1 to download agent binaries from https://streams.canonical.com/juju/tools/agent/2.8.0/juju-2.8.0-ubuntu-amd64.tgz...
agent binaries from https://streams.canonical.com/juju/tools/agent/2.8.0/juju-2.8.0-ubuntu-amd64.tgz downloaded: HTTP 200; time 45.406670s; size 36790898 bytes; speed 810265.000 bytes/s Agent binaries downloaded successfully.
eb7212c607ea93e4c1fa6e3da9b414ad428471daced31856a98fbf831cbc07a5 /var/lib/juju/tools/2.8.0-bionic-amd64/tools.tar.gz
7f3640f1a0a5dbd8f1f8fac417f4bfa059785746be647c820557650206af636b /var/lib/juju/gui/gui.tar.bz2
Installing Juju machine agent
2020-06-23 17:33:59 INFO juju.cmd supercommand.go:91 running jujud [2.8.0 0 d816abe62fbf6787974e5c4e140818ca08586e44 gc go1.14.4]
2020-06-23 17:33:59 DEBUG juju.cmd supercommand.go:92 args: []string{"/var/lib/juju/tools/2.8.0-bionic-amd64/jujud", "bootstrap-state", "--timeout", "20m0s", "--data-dir", "/var/lib/juju", "--debug", "/var/lib/juju/bootstrap-params"}
ERROR Get "https://10.194.144.1:8443/1.0": Unable to connect to: 10.194.144.1:8443
2020-06-23 17:34:19 DEBUG cmd supercommand.go:537 error stack:
Get "https://10.194.144.1:8443/1.0": Unable to connect to: 10.194.144.1:8443
/workspace/_build/src/github.com/juju/juju/container/lxd/server.go:96:
/workspace/_build/src/github.com/juju/juju/provider/lxd/server.go:204:
/workspace/_build/src/github.com/juju/juju/provider/lxd/environ.go:157:
/workspace/_build/src/github.com/juju/juju/provider/lxd/environ.go:80:
/workspace/_build/src/github.com/juju/juju/provider/lxd/provider.go:149:
/workspace/_build/src/github.com/juju/juju/cmd/jujud/agent/bootstrap.go:186:
2020-06-23 17:34:19 DEBUG juju.cmd.jujud main.go:257 jujud complete, code 0, err <nil>
17:34:19 ERROR juju.cmd.juju.commands bootstrap.go:782 failed to bootstrap model: subprocess encountered error code 1
17:34:19 DEBUG juju.cmd.juju.commands bootstrap.go:783 (error details: [{/build/snapcraft-juju-03af7d/parts/juju/src/cmd/juju/commands/bootstrap.go:857: failed to bootstrap model} {/build/snapcraft-juju-03af7d/parts/juju/src/environs/bootstrap/bootstrap.go:609: } {/build/snapcraft-juju-03af7d/parts/juju/src/environs/bootstrap/bootstrap.go:576: } {subprocess encountered error code 1}])
17:34:19 DEBUG juju.cmd.juju.commands bootstrap.go:1428 cleaning up after failed bootstrap
17:34:19 INFO juju.provider.common destroy.go:21 destroying model "controller"
17:34:19 INFO juju.provider.common destroy.go:32 destroying instances
17:34:24 INFO juju.provider.common destroy.go:56 destroying storage
17:34:24 DEBUG juju.provider.lxd environ.go:248 removing instances: []
17:34:24 INFO cmd supercommand.go:544 command finished

```

using juju 2.8
lxd 4.0
ubuntu 20.04

Jesse Leonard (ju-jesse)
description: updated
Revision history for this message
Joseph Phillips (manadart) wrote :

Marking this one incomplete for the moment.

This is typical of containers (on the bridge network) not being able to access the LXD server on the host.

If you have a firewall running, you need to allow traffic to port 8443 from the LXD bridge subnet.

Changed in juju:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for juju because there has been no activity for 60 days.]

Changed in juju:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.