Skip to content
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

Ability to easily collect all the relevant information when submitting bug report #11

Closed
antoninbas opened this issue Nov 4, 2019 · 5 comments

Comments

@antoninbas
Copy link
Contributor

There should be a CLI command that takes care of collecting all the relevant information and can package them in a tarball or upload them somewhere:

  • Antrea logs
  • Antrea version, Kubernetes version, container runtime information...
  • Dump of OVS flows

@frapposelli suggested leveraging https://github.com/vmware-tanzu/crash-diagnostics if possible.

@antoninbas
Copy link
Contributor Author

This was discussed at the 12/11/2019 Antrea community meeting. We agreed that we should first define what should be collected before writing a tool that collects it in an automated fashion. A few things that were brought-up:

  • Antrea logs
  • kubelet logs
  • kube-proxy logs / config maps
  • OVS logs, OVS flows dump, iptables rules dump
  • kube-apiserver logs
  • which container runtime is used?

Could any sensitive information be exposed by the logs above? Please feel free to comment if you think anything relevant should be added to this list.
@salv-orlando @McCodeman

@weiqiangt
Copy link
Contributor

weiqiangt commented Dec 13, 2019

@antoninbas, beyond you have mentioned, I think we could also execute all commands once and records all results.

I'm actually implementing one on https://github.com/weiqiangt/antrea/tree/antctl-bundle during the implementation of the framework.
For now, it dumps:

  • iptables
  • ip links
  • flow entries
    After dumping them, these data would be packed into a tar.

@McCodeman
Copy link
Contributor

McCodeman commented Dec 17, 2019

Additionally, we will want to capture uname -a or equivalent and status of ovs kernel module (not sure if the OVS logs above report errors if the kernel module not loaded correctly). We could also offer to optionally dump the k8s network policies.

@McCodeman
Copy link
Contributor

Also, status of IP forwarding in kernel

@antoninbas
Copy link
Contributor Author

Now that we have the antctl get supportbundle command added by @weiqiangt in #694, I think we can close this issue.

It is not documented yet, but there is an open issue for documentation (#765).

luolanzone referenced this issue in luolanzone/antrea Aug 24, 2021
luolanzone referenced this issue in luolanzone/antrea Aug 27, 2021
luolanzone referenced this issue in luolanzone/antrea Aug 30, 2021
luolanzone referenced this issue in luolanzone/antrea Aug 30, 2021
luolanzone referenced this issue in luolanzone/antrea Sep 10, 2021
luolanzone referenced this issue in luolanzone/antrea Sep 10, 2021
luolanzone referenced this issue in luolanzone/antrea Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants