Skip to content

Commit

Permalink
Pass if clock is synced even if ntp is inactive (#1893)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh authored Feb 18, 2025
1 parent 0ac84ec commit ccf5a68
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/installer/goods/support/host-support-bundle.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,9 @@ spec:
- fail:
when: 'ntp == unsynchronized+active'
message: NTP is enabled but the system clock is not synchronized. Synchronize the system clock to continue.
- pass:
when: 'ntp == synchronized+inactive' # don't fail as the system clock might be managed by other protocols (e.g. PTP)
message: NTP is inactive but the system clock is synchronized
- pass:
when: 'ntp == synchronized+active'
message: NTP is enabled and the system clock is synchronized
Expand Down
5 changes: 5 additions & 0 deletions pkg/preflights/host-preflight.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,14 @@ spec:
- fail:
when: 'ntp == unsynchronized+active'
message: NTP is enabled but the system clock is not synchronized. Synchronize the system clock to continue.
- pass:
when: 'ntp == synchronized+inactive' # don't fail as the system clock might be managed by other protocols (e.g. PTP)
message: NTP is inactive but the system clock is synchronized
- pass:
when: 'ntp == synchronized+active'
message: NTP is enabled and the system clock is synchronized
- fail:
message: 'Unable to determine system clock status'
- jsonCompare:
checkName: Cgroups
fileName: host-collectors/system/cgroups.json
Expand Down

0 comments on commit ccf5a68

Please sign in to comment.