From 516ed975aadb1c8eb44a9c4b25324e9b12b46026 Mon Sep 17 00:00:00 2001 From: Paul-Emile Element Date: Fri, 30 Nov 2018 09:37:52 -0500 Subject: [PATCH] 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 --- sysinv/sysinv/sysinv/sysinv/conductor/manager.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/sysinv/sysinv/sysinv/sysinv/conductor/manager.py b/sysinv/sysinv/sysinv/sysinv/conductor/manager.py index c4e892fa82..9a676ed95e 100644 --- a/sysinv/sysinv/sysinv/sysinv/conductor/manager.py +++ b/sysinv/sysinv/sysinv/sysinv/conductor/manager.py @@ -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