Skip to content

Commit

Permalink
Move dist upgrade earlier so agent is still running
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam Young committed Oct 10, 2019
1 parent 0080d84 commit 7fd66a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zaza/openstack/utilities/generic.py
Expand Up @@ -367,14 +367,14 @@ def series_upgrade(unit_name, machine_num,
logging.info("Series upgrade {}".format(unit_name))
application = unit_name.split('/')[0]
set_dpkg_non_interactive_on_unit(unit_name)
dist_upgrade(unit_name)
logging.info("Prepare series upgrade on {}".format(machine_num))
model.prepare_series_upgrade(machine_num, to_series=to_series)
logging.info("Waiting for workload status 'blocked' on {}"
.format(unit_name))
model.block_until_unit_wl_status(unit_name, "blocked")
logging.info("Waiting for model idleness")
model.block_until_all_units_idle()
dist_upgrade(unit_name)
wrap_do_release_upgrade(unit_name, from_series=from_series,
to_series=to_series, files=files,
workaround_script=workaround_script)
Expand Down

0 comments on commit 7fd66a7

Please sign in to comment.