Repository navigation
Use NTP admin API instead of sled agent, remove sled agent time_sync API - #8597
Conversation
c4faf10 to
8f65850
Compare
|
FYI, I ran this on a4x2 - it didn't work, until I fixed an SMF typo, now it works. This is tested implicitly by the "helios / deploy" job, which relies on RSS, and also relies on the timesync API in the NTP admin server. |
| } | ||
| } | ||
| }, | ||
| "/timesync": { |
There was a problem hiding this comment.
I wonder if there's any documentation that relies on checking the response from this endpoint in the logs to debug an NTP sync issue or something similar. I have a vague memory of something like that. If anyone remembers, that documentation should be updated. Perhaps an announcement on Matrix might be good as well? I've certainly used it before if an omicron deployment was taking too long to start.
jgallagher
left a comment
There was a problem hiding this comment.
LGTM, thanks!
FYI, I ran this on a4x2 - it didn't work, until I fixed an SMF typo, now it works. This is tested implicitly by the "helios / deploy" job, which relies on RSS, and also relies on the timesync API in the NTP admin server.
I don't see an SMF change in this PR - was it something a4x2-specific outside omicron?
| async fn wait_for_timesync( | ||
| &self, | ||
| sled_addresses: &Vec<SocketAddrV6>, | ||
| ntp_admin_addresses: &Vec<SocketAddrV6>, |
There was a problem hiding this comment.
I realize this is consistent with what was already here, but: by accepting a list of socket addrs, we end up rebuilding an NtpAdminClient for every sled inside every attempt of the retry_notify loop. Maybe we should take a &[NtpAdminClient] instead of a list of socket addrs, so we only create the clients once? (I have a vague memory of reqwest clients being relatively expensive to construct, but maybe we solved that some other way?)
There was a problem hiding this comment.
Sure, refactored to only create the clients once
|
|
||
| let stdout = running_ntp_zone | ||
| .run_cmd(&["/usr/bin/chronyc", "-c", "tracking"]) | ||
| .map_err(TimeSyncError::ExecuteChronyc)?; |
There was a problem hiding this comment.
🎉 Love getting rid of this.
I pulled the SMF change into #8555 ( |
4f6de4b to
6b3f414
Compare
Builds on #8555
This PR:
Fixes #8590