Scope NTP config to controller hosts only

Configuration of NTP servers post deployment requires all hosts to be
locked/unlocked to clear the configuration out of date alarm.  However,
external NTP server configuration is only applicable to controller hosts

This fix scoped to controller hosts only

TEST PLAN:
PASS: Standard Configuration with controller storage
configuration of NTP servers need only controller hosts to lock/unlock to clear the configuration out of date alarm.

Closes-bug: 2052994
Change-Id: I468717aa609458251137ff43cd6613764c71bcf4
Signed-off-by: rummadis <ramu.ummadishetty@windriver.com>
This commit is contained in:
rummadis 2024-02-13 00:45:39 -05:00 committed by ramu ummadishetty
parent 105733973a
commit fa82203775

View File

@ -8570,9 +8570,7 @@ class ConductorManager(service.PeriodicService):
def update_ntp_config(self, context):
"""Update the NTP configuration"""
personalities = [constants.CONTROLLER,
constants.WORKER,
constants.STORAGE]
personalities = [constants.CONTROLLER]
self._config_update_hosts(context, personalities, reboot=True)
def update_ptp_config(self, context, do_apply=False):