diff options
| author | Julia Kreger <juliaashleykreger@gmail.com> | 2020-02-14 13:45:12 -0800 |
|---|---|---|
| committer | Julia Kreger <juliaashleykreger@gmail.com> | 2020-03-07 09:16:19 -0800 |
| commit | cee4bfc4bc2b038ca5c092aa73b1f9f670b58f66 (patch) | |
| tree | 654228ecd4c566e6088c441257bc6a7ad1793d22 /ironic_python_agent/agent.py | |
| parent | 48ef7c918898b7ce679d500270018b831a81ae03 (diff) | |
| download | ironic-python-agent-cee4bfc4bc2b038ca5c092aa73b1f9f670b58f66.tar.gz | |
Add NTP time sync
Attempt to sync the clock and save it to the hardware clock.
This feature supports use of chrony or ntpdate.
Sem-Ver: feature
Change-Id: I178d7614429d582e742d9cba6d0fa3ae099775e3
Story: 1619054
Task: 11591
Diffstat (limited to 'ironic_python_agent/agent.py')
| -rw-r--r-- | ironic_python_agent/agent.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ironic_python_agent/agent.py b/ironic_python_agent/agent.py index d86b950c..20f0f068 100644 --- a/ironic_python_agent/agent.py +++ b/ironic_python_agent/agent.py @@ -369,6 +369,8 @@ class IronicPythonAgent(base.ExecuteCommandMixin): # Get the UUID so we can heartbeat to Ironic. Raises LookupNodeError # if there is an issue (uncaught, restart agent) self.started_at = _time() + # Attempt to sync the software clock + utils.sync_clock(ignore_errors=True) # Cached hw managers at runtime, not load time. See bug 1490008. hardware.get_managers() |
