Event 'post-series-upgrade'

Event > List of events > Lifecycle events > post-series-upgrade

Source: ops.PostSeriesUpgradeEvent

This event is triggered when an operator runs juju upgrade-series <machine> complete from the command line. Read here to learn more about the series upgrade process. This event hook allows charm units on the machine being upgraded to do any necessary tasks imediately following the upgrade process (which may have involved e.g. being rebooted, etc.).


Emission sequence

Scenario Example command Resulting events
Upgrade series juju upgrade-series <machine> complete post-series-upgrade -> (paused events now resume)

Notably, after this event fires all paused/queued changes that accumulated since the pre-series-upgrade event fired will resume for all units on the machine that was upgraded.

Observing this event in Ops

In Ops, you can register event hooks to observe the pre-series-upgrade event,

    self.on.post_series_upgrade, self._on_post_series_upgrade

Leadership is pinned during the series upgrade process. Even if the current leader died or was removed, re-election does not occur until the upgrade process completes.

Last updated 10 months ago. Help improve this document in the forum.