juju wait-for: allow for specifying leader units

Bug #1969662 reported by Heitor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Medium
Nicolas Vinuesa

Bug Description

Many Juju commands for units can use the format `unit-foo/leader` when we don't know or it is not convenient to use the unit number.

But the Juju plugin wait-for only accepts the unit number:

```
$ juju wait-for unit slurmctld/leader --query='agent-status=="idle"'
ERROR "slurmctld/leader" is not valid unit name
```

I'd like to be able to use the unit-foo/leader notation also in this plugin.

We have an extensive integration test suite that uses the wait-for plugin, but we need to hardcode some unit numbers making local development/testing woobly.

Tags: wait-for
Harry Pidcock (hpidcock)
Changed in juju:
importance: Undecided → Medium
milestone: none → 3.1-beta1
status: New → Triaged
Changed in juju:
assignee: nobody → Vitaly Antonenko (anvial)
assignee: Vitaly Antonenko (anvial) → Nicolas Vinuesa (nvinuesa)
Changed in juju:
milestone: 3.1-beta1 → 3.1-rc1
Changed in juju:
milestone: 3.1-rc1 → 3.1-rc2
Changed in juju:
milestone: 3.1-rc2 → 3.1-rc3
Changed in juju:
milestone: 3.1-rc3 → none
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.