/must-gather

A client tool for gathering information about an operator managed component.

Primary LanguageGoApache License 2.0Apache-2.0

must-gather

openshift-must-gather is a tool for collecting cluster data. It dumps clusteroperator data, and associated namespace data, into a specified --base-dir location. The directory structure, as well as specific details behind this tool can be found in this doc.

Building

Place in GOPATH under src/github.com/openshift/must-gather.

Build with:

$ make

Before Running: Make sure you have a KUBECONFIG environment variable set, and that it points to a valid admin kubeconfig file. Alternatively, provide a filepath to a valid admin.kubeconfig file via the --kubeconfig flag.

Run with:

./bin/openshift-must-gather inspect clusteroperator/<name>

Note: it is possible to run this tool to collect all clusteroperator data by omitting a <name>:

./bin/openshift-must-gather inspect clusteroperators

Developers Only

WARNING: The following tool is provided with no guarantees and might (and will) be changed at any time. Please do not rely on anything below in your scripts or automatization.

Beside the oppenshift-must-gather binary the openshift-dev-helpers binary is also provided. This binary combines various tools useful for the OpenShift developers teams.

To list all events recorded during a test run and stored in events.json file, you can run this command:

./bin/openshift-dev-helpers events https://storage.googleapis.com/origin-ci-test/pr-logs/.../artifacts/e2e-aws/events.json --component=openshift-apiserver-operator