Add a wait command
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Expired
|
Wishlist
|
Unassigned |
Bug Description
Charm developers writing tests need to wait for a freshly deployed environment to settle before running tests.
Operations need to wait for an environment to settle after making changes to perform smoke tests
For the purposes of these use cases, the way to defined settled is 'are there any hooks running, or are there any hooks scheduled to run'. At this particular moment in time, the environment is in a stable state. It will remain in the stable state until further juju operations are performed (by the operator, or scheduled).
The proposed command name is 'juju wait'.
With Juju 1.24, it may be possible to simply inspect the unit and agent statuses. It depends on if this is racy, and if the races can be worked around to make it reliable.
If the statuses are unsuitable, a plugin adding this command can be found at https:/
Please add a 'juju wait' command with these semantics to juju-core, so developers and operations no longer need to install a plugin from a ppa: to write reliable integration tests and deployment scripts.
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → Low |
tags: | added: charmers feature |
tags: | added: jujuqa |
tags: | added: canonical-is |
Changed in juju-core: | |
importance: | Low → Wishlist |
affects: | juju-core → juju |
tags: | added: conjure |
Is it possible this is already present internally? What does the bundle deployer use?