Skip to content

Commit ccf5a68

Browse files
authored
Pass if clock is synced even if ntp is inactive (#1893)
1 parent 0ac84ec commit ccf5a68

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

cmd/installer/goods/support/host-support-bundle.tmpl.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,9 @@ spec:
431431
- fail:
432432
when: 'ntp == unsynchronized+active'
433433
message: NTP is enabled but the system clock is not synchronized. Synchronize the system clock to continue.
434+
- pass:
435+
when: 'ntp == synchronized+inactive' # don't fail as the system clock might be managed by other protocols (e.g. PTP)
436+
message: NTP is inactive but the system clock is synchronized
434437
- pass:
435438
when: 'ntp == synchronized+active'
436439
message: NTP is enabled and the system clock is synchronized

pkg/preflights/host-preflight.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,14 @@ spec:
232232
- fail:
233233
when: 'ntp == unsynchronized+active'
234234
message: NTP is enabled but the system clock is not synchronized. Synchronize the system clock to continue.
235+
- pass:
236+
when: 'ntp == synchronized+inactive' # don't fail as the system clock might be managed by other protocols (e.g. PTP)
237+
message: NTP is inactive but the system clock is synchronized
235238
- pass:
236239
when: 'ntp == synchronized+active'
237240
message: NTP is enabled and the system clock is synchronized
241+
- fail:
242+
message: 'Unable to determine system clock status'
238243
- jsonCompare:
239244
checkName: Cgroups
240245
fileName: host-collectors/system/cgroups.json

0 commit comments

Comments
 (0)