`juju bootstrap --add-model` results in a broken model

Bug #2064107 reported by Jack Shaw
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Medium
Thomas Miller

Bug Description

Reproduced on Juju 4.0, lxd provider

Running:
`juju bootstrap lxd lxd --add-model m`

Results in a broken model

```
$ juju status -m m
(hangs forever)
```

Whereas
```
$ juju status -m controller
$ juju models
$ juju add-model m2
$ juju status -m m2
```

All succeed

Revision history for this message
Jack Shaw (jack-shaw) wrote :

In controller logs I see:

```
machine-0: 12:09:34 DEBUG juju.worker.apicaller [19a84c] failed to connect
machine-0: 12:09:34 DEBUG juju.worker.dependency "api-caller" manifold worker stopped: [19a84c] "machine-0" cannot open api: unable to connect to API: dial tcp 127.0.0.1:17070: connect: connection refused
stack trace:
dial tcp 127.0.0.1:17070: connect: connection refused
github.com/juju/juju/api.gorillaDialWebsocket:672:
github.com/juju/juju/api.dialer.dial1:1092:
github.com/juju/juju/api.dialer.dial:1067: unable to connect to API
github.com/juju/juju/api.dialWebsocketMulti:963:
github.com/juju/juju/api.dialAPI:621:
github.com/juju/juju/api.Open:120:
github.com/juju/juju/internal/worker/apicaller.connectFallback:162:
github.com/juju/juju/internal/worker/apicaller.ScaryConnect:217:
github.com/juju/juju/cmd/jujud-controller/agent/machine.commonManifolds.Manifold.ManifoldConfig.startFunc.func44:99: [19a84c] "machine-0" cannot open api
machine-0: 12:09:34 ERROR juju.worker.dependency "api-caller" manifold worker returned unexpected error: [19a84c] "machine-0" cannot open api: unable to connect to API: dial tcp 127.0.0.1:17070: connect: connection refused
```

Which may (or may not) be relevant

Changed in juju:
status: New → Triaged
importance: Undecided → High
importance: High → Medium
assignee: nobody → Thomas Miller (tlmiller)
milestone: none → 4.0-beta3
Revision history for this message
Thomas Miller (tlmiller) wrote :

We need to discuss this one a little more. We haven't wired up initial model support yet as we were waiting to see if this should get moved to the bootstrap worker. If no we should be able to do this in the bootstrap agent code.

Changed in juju:
milestone: 4.0-beta3 → 4.0-beta4
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.