Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

[5.5.x] Add etcd dump and cluster status to debug reports #1081

Merged
merged 4 commits into from Feb 10, 2020

Conversation

a-palchikov
Copy link
Contributor

Updates #1079
Requires gravitational/planet#553.

lib/ops/opsservice/report.go Outdated Show resolved Hide resolved
continue
}
for _, container := range containers {
name := fmt.Sprintf("k8s-logs-%v-%v-%v", namespace, pod, container)
commands = append(commands, Cmd(name, utils.PlanetCommand(kubectl.Command("logs", pod,
"--namespace", namespace,
fmt.Sprintf("-c=%v", container)))...),
)
fmt.Sprintf("-c=%v", container)))...))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't cluster-info dump also collect container logs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it does and hence I went forward and deleted all ad-hoc captures for kubernetes resources leaving only the kubectl cluster-info dump and the captures of previous containers since kubectl is not capturing them.

Add cluster status dump.

Updates #1079.
remote calls) to be able to properly handle error conditions in the
debug reporter.
One of the issues previously was that the reports would
contain bogus logs (i.e. previous container logs that could not be
captured while they did not exist, etc.)
Also replaces the ad-hoc kubernetes capture code in favor of the
'kubectl cluster-info dump' to capture all of the information as a
directory tree.
@a-palchikov a-palchikov merged commit 03129c9 into version/5.5.x Feb 10, 2020
@a-palchikov a-palchikov deleted the dmitri/5.5.x/1079-report branch February 10, 2020 10:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants