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

KATA-815 Document must-gather for developers #365

Merged
merged 5 commits into from
Jan 9, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
60 changes: 60 additions & 0 deletions must-gather/must-gather-requirements.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Requirements for OpenShift sandboxed containers must-gather

`must-gather` for OpenShift sandboxed contains (OSC) should gather all information and logs needed for debugging OSC.

### Usage
```sh
oc adm must-gather --image=registry.redhat.io/openshift-sandboxed-containers/osc-must-gather-rhel9:latest
```

The command above will create a local directory with a dump of the OpenShift sandboxed-containers state.
Note that this command will only get data related to the sandboxed-containers part of the OpenShift cluster.

### Contents of the dump
- All namespaces (and their children objects) that belong to any sandboxed containers resources

In order to get data about other parts of the cluster (not specific to sandboxed containers) you should
run `oc adm must-gather` (without passing a custom image). Run `oc adm must-gather -h` to see more options.

#### General
- Resource definitions
- Service logs

#### OSC
- All namespaces and their child objects that belong to any OpenShift sandboxed containers resources
- All OpenShift sandboxed containers custom resource definitions (CRDs)
- sandboxed-containers/namespaces/openshift-sandboxed-containers-operator/**_*\_description_**

- Kata agent logs **???????**
tbuskey marked this conversation as resolved.
Show resolved Hide resolved
- Kata runtime logs **??????**
tbuskey marked this conversation as resolved.
Show resolved Hide resolved

- QEMU logs
- part of the **crio** logs as subsystem=qemu and subsystem=qmp
tbuskey marked this conversation as resolved.
Show resolved Hide resolved
- Audit logs
- audit_logs/**_nodename_**-audit.log.gz
- CRI-O logs
- nodes/**_nodename_**/**_nodename_**_logs_**crio**
- QEMU versions
- nodes/**_nodename_**/**_nodename_**/version
- Essential
- apiservices/v1.kataconfiguration.openshift.io.yaml
- cluster-scoped-resources/apiextensions.k8s.io/customresourcedefinitions/kataconfigs.kataconfiguration.openshift.io.yaml
- sandboxed-containers/namespaces/openshift-sandboxed-containers-operator/controller-manager-**_*\_logs_**
tbuskey marked this conversation as resolved.
Show resolved Hide resolved
- sandboxed-containers/namespaces/openshift-sandboxed-containers-operator/install-**_*\_logs_**
- sandboxed-containers/namespaces/openshift-sandboxed-containers-operator/openshift-sandboxed-containers-monitor-**_*\_logs_**
- sandboxed-containers/namespaces/openshift-sandboxed-containers-operator/peerpodconfig-ctrl-caa-daemon-**_*\_logs_**
- sandboxed-containers/namespaces/openshift-sandboxed-containers-operator/peer-pods-webhook-**_*\_logs_**
- sandboxed-containers/clusterserviceversion_description
- sandboxed-containers/kataconfig_description
- sandboxed-containers/services_description
- sandboxed-containers/subscription_description
- sandboxed-containers/validatingwebhookconfigurations_description

#### Debug level
Setting kataconfig `loglevel: debug` will get more info

- Kata agent **???????**
tbuskey marked this conversation as resolved.
Show resolved Hide resolved
- Kata runtime (containerd-shim-kata-v2_description
- shim logs are part of the **crio** logs
- virtiofsd
- virtiofsd logs are part of the **crio** logs