Comment 1 for bug 1928347

Revision history for this message
Takamasa Takenaka (ttakenak) wrote :

This bug is reproducible.

1. Create the state which peer is selected and out server are unreachable:

controller-1:~$ ntpq -np
     remote refid st t when poll reach delay offset jitter
==============================================================================
*192.168.204.2
                 206.108.0.132 2 u 4 64 377 0.090 -9.015 1.158
 172.217.13.142
                 .INIT. 16 u - 64 0 0.000 0.000 0.000
 74.6.143.26
                 .INIT. 16 u - 64 0 0.000 0.000 0.000

2. Confirm we have alarm "NTP cannot reach external time source; syncing with peer controller only" and two "NTP address [ip] is not a valid or a reachable NTP server."

[sysadmin@controller-0 ~(keystone_admin)]$ fm alarm-list
+-------+------------------------------+--------------------------------------+----------+-------------+
| Alarm | Reason Text | Entity ID | Severity | Time Stamp |
| ID | | | | |
+-------+------------------------------+--------------------------------------+----------+-------------+
| 100. | NTP address 74.6.143.26 is | host=controller-1.ntp=74.6.143.26 | minor | 2021-05-06T |
| 114 | not a valid or a reachable | | | 13:30:06. |
| | NTP server. | | | 911250 |
| | | | | |
| 100. | NTP address 172.217.13.142 | host=controller-1.ntp=172.217.13.142 | minor | 2021-05-06T |
| 114 | is not a valid or a | | | 13:30:06. |
| | reachable NTP server. | | | 908394 |
| | | | | |
| 100. | NTP cannot reach external | host=controller-1.ntp | minor | 2021-05-06T |
| 114 | time source; syncing with | | | 13:25:06. |
| | peer controller only | | | 967746 |

3. swact controller-0, lock controller-0, power off controller-0 and wait until no NTP server is selected

[sysadmin@controller-1 ~(keystone_admin)]$ ntpq -np
     remote refid st t when poll reach delay offset jitter
==============================================================================
 192.168.204.2
                 206.108.0.132 2 u 758 64 0 0.001 -8.771 0.000
 172.217.13.142
                 .INIT. 16 u - 1024 0 0.000 0.000 0.000
 74.6.143.26
                 .INIT. 16 u - 1024 0 0.000 0.000 0.000

[sysadmin@controller-1 ~(keystone_admin)]$ fm alarm-list | grep 100.114
| 100.114 | NTP cannot reach external time source; syncing with peer controller only | host=controller-1.ntp | minor | 2021-05-06T13:55:06 |
| 100.114 | NTP address 74.6.143.26 is not a valid or a reachable NTP server. | host=controller-1.ntp=74.6.143.26 | minor | 2021-05-06T13:30:06 |
| 100.114 | NTP address 172.217.13.142 is not a valid or a reachable NTP server. | host=controller-1.ntp=172.217.13.142 | minor | 2021-05-06T13:30:06 |

==> Alarms are not changed. No mejor alarm was raised and minor alarm "NTP cannot reach external time source; syncing with peer controller only" was not suppressed.
(wait for 30 minutes) but not changed.