This repository hosts the kubectl plugin to capture all the information to debug Dell CSI/CSM.
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/binTo 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.comCRs- Helm
values.yaml StorageClass,Node&CSINodesdetailsSecretscontaining the configuration to the storage backend ; only if the option-sis explicitly called
- Add command options parsing
- Replace selection by namespace with a selector. Need to find a selector to identify CSI Drivers...