This procedure shows how the ConMan utility can be used to retrieve compute node logs.
The user performing this procedure needs to have access permission to the cray-console-operator pod.
Encryption of compute node logs is not enabled, so the passwords may be passed in clear text.
-
Log on to a Kubernetes master or worker node.
-
Retrieve the cray-console-operator pod ID.
ncn-m001# CONPOD=$(kubectl get pods -n services \ -o wide|grep cray-console-operator|awk '{print $1}') ncn-m001# echo $CONPOD cray-console-operator-79bf95964-qpcpp
-
Log on to the pod.
ncn-m001# kubectl exec -it -n services $CONPOD -- sh
-
Go to the log directory.
# cd /var/log/conman
-
List the directory contents to identify node IDs.
/var/log/conman # ls -la total 44 -rw------- 1 root root 1415 Nov 30 20:00 console.NODE_ID ...
-
Use the node's ID to retrieve its logs.
/var/log/conman # tail console.NODE_ID
-
Exit out of the pod.
/var/log/conman # exit ncn-m001#