Merge "update horizon after timezone modification"
This commit is contained in:
commit
d2cb4e0cae
@ -5319,9 +5319,8 @@ class ConductorManager(service.PeriodicService):
|
|||||||
:param context: an admin context.
|
:param context: an admin context.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# update manifest files and nofity agents to apply timezone files
|
# update manifest files and notify agents to apply timezone files
|
||||||
personalities = [constants.CONTROLLER,
|
personalities = [constants.COMPUTE,
|
||||||
constants.COMPUTE,
|
|
||||||
constants.STORAGE]
|
constants.STORAGE]
|
||||||
config_uuid = self._config_update_hosts(context, personalities)
|
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)
|
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):
|
def update_route_config(self, context):
|
||||||
"""add or remove a static route
|
"""add or remove a static route
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user