summaryrefslogtreecommitdiff
path: root/ironic_python_agent/errors.py
diff options
context:
space:
mode:
authorJulia Kreger <juliaashleykreger@gmail.com>2020-02-14 13:45:12 -0800
committerJulia Kreger <juliaashleykreger@gmail.com>2020-03-07 09:16:19 -0800
commitcee4bfc4bc2b038ca5c092aa73b1f9f670b58f66 (patch)
tree654228ecd4c566e6088c441257bc6a7ad1793d22 /ironic_python_agent/errors.py
parent48ef7c918898b7ce679d500270018b831a81ae03 (diff)
downloadironic-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/errors.py')
-rw-r--r--ironic_python_agent/errors.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ironic_python_agent/errors.py b/ironic_python_agent/errors.py
index 244b7bcb..d263af5f 100644
--- a/ironic_python_agent/errors.py
+++ b/ironic_python_agent/errors.py
@@ -331,3 +331,9 @@ class DeviceNotFound(NotFound):
# RESTError.
class InspectionError(Exception):
"""Failure during inspection."""
+
+
+class ClockSyncError(RESTError):
+ """Error raised when attempting to sync the system clock."""
+
+ message = 'Error syncing system clock'