Summary
This knowledge article outlines the procedure for collecting logs for the Hitachi Storage Plugin for Containers (HSPC).
Objective
- Collecting logs for Hitachi Storage Plug-in for Containers (HSPC)
Environment
- HSPC
- Hitachi Storage Plugin for Containers (HSPC)
- Openshift
- Kubernetes
- Hitachi storage arrays
Procedure
Retrieve logs for running containers using the kubectl logs
command.
- To collect Storage Plug-in for Containers logs, gather logs from the Operator, CSI controller, and CSI node.
NOTE: If necessary, set up cluster-level logging to save logs: https://kubernetes.io/docs/concepts/cluster-administration/logging/
-
- To retrieve logs from the Operator, run the following command:
kubectl logs -n hspc-operator-controller-manager-<id>
- To retrieve logs from the CSI controller, run the following command:
kubectl logs -n hspc-csi-controller- -c hspc-csi-driver
- To retrieve logs from the CSI node, run the following command:
kubectl logs -n hspc-csi-node- -c hspc-csi-driver
NOTE: Multiple CSI node Pods appear since this deploys as a DaemonSet. Collect logs from all Pod names.
- To retrieve logs from the Operator, run the following command:
Upload the logs to https://tuf.hitachivantara.com/uploadthru/upload