It collects the following information:
- All the pod logs from Rook Ceph cluster and if separate operator namespace in individual files.
- Ceph command outputs for debugging the current state of the cluster.
- Output of
# kubectl version
- All the Deployment YAMLs :
kubectl get -n rook-ceph deployments --output yaml
- Configmaps :
kubectl get configmap -n rook-ceph -oyaml
- Node related information :
kubectl get nodes
andkubectl get nodes -oyaml
- rook-config-override ConfigMap :
kubectl -n rook-ceph get ConfigMap rook-config-override -o yaml
Pre-requisites: Toolbox pod must be running to collect some of the information needed by the debug script
Usage : sh gather-logs.sh <-hd>
-h
: Show help menu.-d
: Optional command line argument to crank up the debug logging for rook-ceph cluster.-n CLUSTER_NAMESPACE
: Optional command line argument to set the rook-ceph cluster namespace.-o OPERATOR_NAMESPACE
: Optional command line argument to set the rook-ceph-operator namespace.
The script creates a temp directory on the system prefixed with gather-logs-
.