Add kube-cpusets to collect

This adds kube-cpusets tool to collect_hosts.
This displays cpuset and numa node information per kubernetes pod
on a given host.

Change-Id: I1bd862cc0b1cef3b7997c032108c02b09f2885a1
Story: 2006999
Task: 40106
Depends-On: https://review.opendev.org/723808
Signed-off-by: Jim Gauld <james.gauld@windriver.com>
This commit is contained in:
Jim Gauld 2020-06-17 09:20:47 -04:00
parent fe5de3708f
commit a10381203d
1 changed files with 4 additions and 0 deletions

View File

@ -183,6 +183,10 @@ function collect_extra()
delimiter ${LOGFILE} "ps -eL -o pid,lwp,ppid,state,class,nice,rtprio,priority,psr,stime,etime,time,wchan:16,tty,comm,command"
ps -eL -o pid,lwp,ppid,state,class,nice,rtprio,priority,psr,stime,etime,time,wchan:16,tty,comm,command >> ${LOGFILE}
# Collect per kubernetes container name, QoS, and cpusets per numa node
delimiter ${LOGFILE} "kube-cpusets"
kube-cpusets >> ${LOGFILE}
# Various host attributes
LOGFILE="${EXTRA_DIR}/host.info"
echo "${hostname}: Host Info .........: ${LOGFILE}"