This repository hosts the kubectl plugin to capture all the information to debug Dell CSI/CSM.
It is inspired by Log3.sh created by @OA72280.
To obtain the script and make it working you can run:
curl -LO https://raw.githubusercontent.com/coulof/kubectl-csm-diag/main/kubectl-csm-diag && chmod +x kubectl-csm-diag
sudo mv kubectl-csm-diag /usr/local/bin
To run the script just execute:
kubectl-csm-diag
Or with all the options to specify which namespaces you want to capture, if you need the secrets to be captured too & verbose mode:
kubectl-csm-diag -n dell-csm-operator,powerflex -s -v
The script create an archive (zip or tar) containing:
- The list of pods : pods-list.log
- Pods and container logs for the matching namespaces
storage.dell.com
CRs- Helm
values.yaml
StorageClass
,Node
&CSINodes
detailsSecrets
containing the configuration to the storage backend ; only if the option-s
is explicitly called
- Add command options parsing
- Replace selection by namespace with a selector. Need to find a selector to identify CSI Drivers...