The following run targets are not valid: "" is not a valid unit name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juju Wait Plugin |
Fix Committed
|
Undecided
|
Stuart Bishop |
Bug Description
After the following commits on Nov 10, OpenStack Charm CI's juju-wait is failing on subordinates, and when juju-waiting after a bootstrap, before applications are deployed.
The full juju-wait debug output is:
INFO:root:All units idle since 2016-11-11 15:43:59.230940Z ()
ERROR:root:error: The following run targets are not valid:
"" is not a valid unit name
ERROR:root:juju run --format=yaml --unit -- is-leader --format=json failed: 2
https:/
https:/
https:/
description: | updated |
Changed in juju-wait: | |
status: | New → Fix Committed |
assignee: | nobody → Stuart Bishop (stub) |
It appears that juju_run_many() is blindly juju running without checking that there are indeed units.