diff options
author | Nikita Kosenkov <NKosenkov@IBS.RU> | 2022-08-23 10:47:29 +0300 |
---|---|---|
committer | Nikita Kosenkov <NKosenkov@IBS.RU> | 2022-08-23 10:47:29 +0300 |
commit | 3595e1a9e3906a38fd0271a3a3fd63ca1ff82ba5 (patch) | |
tree | 5f1b5ce46ae1b572e3d00c99933e99832718e5c5 /meta-ibs/meta-common/recipes-phosphor | |
parent | 3542588580debb4fbc206df4b41ec95b2eeb9813 (diff) | |
download | openbmc-3595e1a9e3906a38fd0271a3a3fd63ca1ff82ba5.tar.xz |
SILABMC-216: Added NTP sync status check and additional log about it
Diffstat (limited to 'meta-ibs/meta-common/recipes-phosphor')
-rw-r--r-- | meta-ibs/meta-common/recipes-phosphor/interfaces/bmcweb/0009-Added-additional-log-about-NTP-sync-status.patch | 41 | ||||
-rw-r--r-- | meta-ibs/meta-common/recipes-phosphor/interfaces/bmcweb_%.bbappend | 3 |
2 files changed, 43 insertions, 1 deletions
diff --git a/meta-ibs/meta-common/recipes-phosphor/interfaces/bmcweb/0009-Added-additional-log-about-NTP-sync-status.patch b/meta-ibs/meta-common/recipes-phosphor/interfaces/bmcweb/0009-Added-additional-log-about-NTP-sync-status.patch new file mode 100644 index 0000000000..ef6514e48d --- /dev/null +++ b/meta-ibs/meta-common/recipes-phosphor/interfaces/bmcweb/0009-Added-additional-log-about-NTP-sync-status.patch @@ -0,0 +1,41 @@ +From 1b4c6999fa854fa947e9b91e1bdfff22abc541ef Mon Sep 17 00:00:00 2001 +From: Nikita Kosenkov <NKosenkov@IBS.RU> +Date: Tue, 23 Aug 2022 10:09:10 +0300 +Subject: [PATCH] Added additional log about NTP synchronization status + +--- + .../include/registries/openbmc_message_registry.hpp | 12 +++++++++++- + 1 file changed, 11 insertions(+), 1 deletion(-) + +diff --git a/redfish-core/include/registries/openbmc_message_registry.hpp b/redfish-core/include/registries/openbmc_message_registry.hpp +index 2b8d476c..3199412e 100644 +--- a/redfish-core/include/registries/openbmc_message_registry.hpp ++++ b/redfish-core/include/registries/openbmc_message_registry.hpp +@@ -2290,13 +2290,23 @@ constexpr std::array registry = { + MessageEntry{ + "BMCTimeNotUpdatedViaNTP", + { +- "Indicates that time was restored from recorded timestamp.", ++ "Indicates that timed out waiting for reply from NTP server.", + "BMC timed out waiting for reply from NTP server: %1 (%2).", + "Warning", + 0, + {}, + "None.", + }}, ++ MessageEntry{ ++ "BMCTimeNotResolvedNTPServers", ++ { ++ "Indicates that failed to resolve NTP server addresses.", ++ "BMC Failed to resolve NTP server addresses.", ++ "Warning", ++ 0, ++ {}, ++ "None.", ++ }}, + + }; + } // namespace redfish::registries::openbmc +-- +2.35.1 + diff --git a/meta-ibs/meta-common/recipes-phosphor/interfaces/bmcweb_%.bbappend b/meta-ibs/meta-common/recipes-phosphor/interfaces/bmcweb_%.bbappend index 55acebb4f4..2ba10a776f 100644 --- a/meta-ibs/meta-common/recipes-phosphor/interfaces/bmcweb_%.bbappend +++ b/meta-ibs/meta-common/recipes-phosphor/interfaces/bmcweb_%.bbappend @@ -10,7 +10,8 @@ SRC_URI += "\ file://0005-Add-Sensor-Warning-Threshold-Edit.patch \ file://0006-IBS-bmcweb-evt-registry-add-BMCTimeUpdatedViaNTP.patch \ file://0007-Add-critical-thresholds-to-redfish.patch \ - file://0008-Add-additional-logs-about-time-sync.patch \ + file://0008-Add-additional-logs-about-time-sync.patch \ + file://0009-Added-additional-log-about-NTP-sync-status.patch \ " EXTRA_OEMESON += "\ |