Refresh configs after upgrade to ensure the correct templates are used
This commit is contained in:
parent
755227724d
commit
1f52dd9bf6
@ -121,6 +121,8 @@ def config_changed():
|
||||
if openstack_upgrade_available('nova-common'):
|
||||
status_set('maintenance', 'Running openstack upgrade')
|
||||
do_openstack_upgrade(CONFIGS)
|
||||
# Refresh configs templates as os release has changed
|
||||
CONFIGS = register_configs()
|
||||
|
||||
sysctl_dict = config('sysctl')
|
||||
if sysctl_dict:
|
||||
|
@ -557,7 +557,8 @@ def do_openstack_upgrade(configs):
|
||||
apt_install(determine_packages(), fatal=True)
|
||||
|
||||
# Regenerate configs in full for new release
|
||||
configs.write_all()
|
||||
new_configs = register_configs()
|
||||
new_configs.write_all()
|
||||
[service_restart(s) for s in services()]
|
||||
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# havana
|
||||
# juno
|
||||
###############################################################################
|
||||
# [ WARNING ]
|
||||
# Configuration file maintained by Juju. Local changes may be overwritten.
|
||||
|
Loading…
Reference in New Issue
Block a user