-
Notifications
You must be signed in to change notification settings - Fork 46
[sled-diagnostics] want chrony logs in support bundles #8530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Created using spr 1.3.6-beta.1
sled-diagnostics/src/logs.rs
Outdated
// | ||
// TODO: Once omicron#4728 is picked up we will need to handle the | ||
// rotation and sorting of these files. | ||
if service == "ntp" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Could we
match
onservice
, to make it clear this is basically the same thing we're doing withcockroachdb
above? - How much of this is "NTP-specific"? E.g., why not grab
service_logs.extra
as a catch-all for all services?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does match on the service being ntp, but I will add the filter to make sure we are only grabbing those files for now.
I have been treating things in extra as a case by case basis. For example the log file names in cockroachdb look very different from the log names of chrony.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean we could do:
match service {
"cockroachdb" => ...
"ntp" => ...
_ => ...
}
Which we are not doing; we are using two separate "if" statements
My question is, for the following logic:
for log in service_logs.extra {
self.process_logs(
&service,
&mut zip,
&mut log_snapshots,
log.path.as_path(),
LogType::Extra,
)
.await?;
}
What about this is "NTP-specific"? This seems like a generic way to "grab all extra logs", and could be the default thing we do for services
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yea totally -- will get something pushed to make that generic with some extra comments.
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
From a collection on berlin:
|
Created using spr 1.3.6-beta.1
4e9c4bf
into
spr/papertigers/main.sled-diagnostics-want-chrony-logs-in-support-bundles
Sigh I merged this into the wrong spot because I forgot it wasn't against main. The real PR is #8645 |
This fixes #8516
Note that this PR is on top of #8529