Remove all calls to time.sleep and use block_until_unit_wl_status to manage the timing of the upgrade steps. Also use run_via_ssh to execute commands while the juju agents are down during a series upgrade.
Remove all calls to time.sleep and use block_until_unit_wl_status to manage the timing of the upgrade steps. Also use run_via_ssh to execute commands while the juju agents are down during a series upgrade.