update horizon after timezone modification

This commit modifies the sysinv conductor to update
the horizon runtime manifests when the timezone is
modified. This will allow the GUI to pick the
new timezone settings without having to reboot
the controller

Closes-Bug: #1806051

Change-Id: If24daaa97109d1020ec7f4ebdafebb5cda395ccb
Signed-off-by: Paul-Emile Element <Paul-Emile.Element@windriver.com>
This commit is contained in:
Paul-Emile Element 2018-11-30 09:37:52 -05:00
parent 0929995b20
commit 516ed975aa
1 changed files with 12 additions and 3 deletions

View File

@ -5319,9 +5319,8 @@ class ConductorManager(service.PeriodicService):
:param context: an admin context.
"""
# update manifest files and nofity agents to apply timezone files
personalities = [constants.CONTROLLER,
constants.COMPUTE,
# update manifest files and notify agents to apply timezone files
personalities = [constants.COMPUTE,
constants.STORAGE]
config_uuid = self._config_update_hosts(context, personalities)
@ -5331,6 +5330,16 @@ class ConductorManager(service.PeriodicService):
self._config_apply_runtime_manifest(context, config_uuid, config_dict)
# for controller nodes, we also update the horizon interface
# so that it can see the new timezone setting
personalities = [constants.CONTROLLER]
config_uuid = self._config_update_hosts(context, personalities)
config_dict = {
"personalities": personalities,
"classes": ['openstack::horizon::runtime']
}
self._config_apply_runtime_manifest(context, config_uuid, config_dict)
def update_route_config(self, context):
"""add or remove a static route