juju wait-for model $model returns before everything is active
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Medium
|
Simon Richardson |
Bug Description
`juju wait-for model $model` returns with alive/available before any units or applications reach active status.
```
$ juju status
Model Controller Cloud/Region Version SLA Timestamp
one test aws/ap-southeast-2 3.1.2 unsupported 01:46:58Z
SAAS Status Store URL
aar active ...
...
App Version Status Scale Charm Channel Rev Exposed Message
one maintenance 3 ...
two unknown 0 ...
three unknown 0 ...
four blocked 1 ...
...
Unit Workload Agent Machine Public address Ports Message
foo/0 maintenance executing 0
foo/1 maintenance executing 1
foo/2* maintenance executing 2
foobar/0* blocked executing 3
foobarbaz/0* maintenance executing 4
foobaz/0 maintenance executing 8
foobaz/1 maintenance executing 9
foobaz/2* maintenance executing 10
bar/0 waiting executing 11
bar/1 waiting executing 12
bar/2* waiting executing 13
...
# no units have reached active state yet
Machine State Address Inst id Base AZ Message
# all machines started, running
$ juju wait-for model one
Model "anbox-
properties:
life: alive
status: available
```
Expected: default behaviour should block until all units are active/idle.
Changed in juju: | |
assignee: | nobody → Simon Richardson (simonrichardson) |
status: | New → Triaged |
Changed in juju: | |
milestone: | 2.9.44 → 3.1.6 |
Changed in juju: | |
milestone: | 3.1.6 → 3.1.7 |
Changed in juju: | |
milestone: | 3.1.7 → 3.1.8 |
Changed in juju: | |
milestone: | 3.1.8 → 3.3.3 |
Changed in juju: | |
milestone: | 3.3.3 → 3.3.4 |
Changed in juju: | |
milestone: | 3.3.4 → 3.3.5 |
I've been trying to confirm this bug, and have found the documentation on `wait-for` very sparse.
I tried a few different approaches as show in https:/ /pastebin. ubuntu. com/p/RWfHXVVGj t/. The main thing that wasn't clear to me is what options are available for querying unit status.