Collecting diagnostic data bundles
You can collect diagnostic data using the kubectl command line tool, or
by downloading diagnostic data bundles.
Using kubectl to collect logs
You can use the following kubectl commands to collect log files:
alias kubectl='/var/lib/rancher/rke2/bin/kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml'
kubectl get pods -A -o wide > /tmp/pods_status_all.txt
echo "+++PODS cdp+++" >> /tmp/pods_status.txt
kubectl -n cdp get pods --kubeconfig /etc/rancher/rke2/rke2.yaml >> /tmp/pods_status.txt
echo "+++PODS kubernetes-dashboard+++" >> /tmp/pods_status.txt
kubectl -n kubernetes-dashboard get pods >> /tmp/pods.txt
echo "+++EVENTS +++" >> /tmp/pods_status_all.txt
kubectl get event -n kubernetes-dashboard >> /tmp/pods.txt
kubectl get pods -A | grep -vai 'running' | grep -vai 'completed'
If you see issues with a specific pod, collect the following:
kubectl logs <POD_NAME> -n <Namespace> --all-containers=true
kubectl describe pod <POD_NAME> -n <Namespace>
kubectl get events -n <Namespace>
Downloading Embedded Container Service cluster diagnostic data
- In Cloudera Manager, click Support, then click
Send Diagnostic Data.
- On the Send Diagnostic Data pop-up, select Collect Diagnostic Data
only, then click Collect Diagnostic Data.
- The Collect Diagnostic Data Globally pop-up displays the data collection progress.
- When the data collection process is complete, click Download to
download the Embedded Container Service cluster diagnostic data.
Downloading a Longhorn storage support bundle
For suspected storage issues, you can use the ECS Storage UI to download a Longhorn support bundle.
- In Cloudera Manager, click ECS, then select
Web UI > Storage UI.
- Click Generate Support Bundle at the bottom of the Longhorn storage
UI.
- On the Generate Support Bundle pop-up, enter a description (Issue URL is optional), then
click OK to download the Longhorn storage support bundle.
Downloading Cloudera on premises diagnostic data
- To access the Cloudera Management Console, click Data
Services in Cloudera Manager, click Open
Cloudera Data Services on Premises, and select Management
Console.
- To download a diagnostic bundle, from Cloudera Management Console →
Diagnostics. The Diagnostics homepage contains
data related to the collected Bundles and Redaction
Rules.
- Select the Bundles tab and click Collect New Bundle. On the Collect New Bundle page, you can specify the following options for data collection: the time duration, the associated environments and services, and the size of the file to include the diagnostic data.
- Click Collect and Send Diagnostic Data to commence the process. Cloudera Management Console initiates the process of generating the diagnostic data based
on the options that you select. After the data is generated, the Last Collected Time
field is updated with the collection time.
Once the collection process is completed, navigate to the Diagnostics homepage and click on the collected bundle name to fetch more details.Alternatively, you can download or delete the selected bundle. The diagnostic data is downloaded in a
.zipfile. You can send this file to Cloudera support. If your system is connected to the internet, Cloudera Management Console collects the diagnostic data and sends it to Cloudera Support.
See also: Managing Data Services on premises diagnostic data
