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.
Note: this procedure has changed since the CSM 0.9 release.
Log on to a Kubernetes master or worker node.
Find the cray-console-operator
pod.
ncn# OP_POD=$(kubectl get pods -n services \
-o wide|grep cray-console-operator|awk '{print $1}')
ncn# echo $OP_POD
Example output:
cray-console-operator-6cf89ff566-kfnjr
Log on to the pod.
ncn# kubectl exec -it -n services $OP_POD -- sh
The console log file for each node is labeled with the component name (xname) of that node.
List the log directory contents.
# ls -la /var/log/conman
total 44
-rw------- 1 root root 1415 Nov 30 20:00 console.XNAME
...
The log directory is also accessible from the
cray-console-node
pods.
The log files are plain text files which can be viewed with commands like cat
or tail
.
# tail /var/log/conman/console.XNAME
Exit out of the pod.
# exit
ncn#