Ops 3.4.0 (and ops-scenario 8.4.0 and ops-tracing 3.4.0) released

We’re pleased to release Ops 3.4.0 (and ops-scenario 8.4.0 and ops-tracing 3.4.0).

The main feature in this release is the introduction of ops.hookcmds, which provides an API to the Juju hook commands. The API is low-level, complete (other than deprecated commands), and generally a 1-1 mapping to the hook commands, but providing a Pythonic interface.

Additionally, the length of the defer queue is now logged; more arguments can be passed as paths to ops.Container and ops.PebbleClient methods; and state transition testing Context has gained optional availability zone and principal unit arguments.

Full details: Release 3.4.0: a low-level API for the Juju hook commands · canonical/operator · GitHub

2 Likes