The problem was logic expected one line data for
ntpq result. But it was 2 lines for each ntp server
entry. When peer server is selected, script checked
refid if refid is reliable or not but it could not
find because refid is in the following line.
This fix formats 2 lines data into 1 line.
The minor alarm "minor alarm "NTP cannot reach
external time source; syncing with peer controller
only" is removed because NTP does not prioritize
external time source over peer.
Reviewed: https:/ /review. opendev. org/c/starlingx /monitoring/ +/787588 /opendev. org/starlingx/ monitoring/ commit/ 2ef5451f4424826 36db3c0c3641e84 12821bd8c5
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 2ef5451f4424826 36db3c0c3641e84 12821bd8c5
Author: Takamasa Takenaka <email address hidden>
Date: Thu Apr 22 12:28:37 2021 -0300
Format 2 lines ntpq data into 1 lines
The problem was logic expected one line data for
ntpq result. But it was 2 lines for each ntp server
entry. When peer server is selected, script checked
refid if refid is reliable or not but it could not
find because refid is in the following line.
This fix formats 2 lines data into 1 line.
The minor alarm "minor alarm "NTP cannot reach
external time source; syncing with peer controller
only" is removed because NTP does not prioritize
external time source over peer.
Closes-Bug: 1889101
Signed-off-by: Takamasa Takenaka <email address hidden> bf0351165c671eb f35b97fa3bc
Change-Id: Icc8316bb1a7041