Skip to content

Commit

Permalink
Alma bugfix (#58)
Browse files Browse the repository at this point in the history
* changes to common.sh install file to fix python3-dev ALma compatability bug

* adding the shutdown of publisher and exporters for HB

* adding the shutdown of publisher and exporters for HB part 2

---------

Co-authored-by: Ubuntu <rafsalas@ub22h3e8f000003.dqjt2vfkzmou3mpiz4ibgqqi1c.ax.internal.cloudapp.net>
  • Loading branch information
rafsalas19 and Ubuntu authored May 18, 2023
1 parent dd6fe32 commit 7c32695
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/worker/install/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ distro=`awk -F= '/^NAME/{print $2}' /etc/os-release`
if [[ $distro =~ "Ubuntu" ]]; then
apt-get install -y python3-dev
elif [[ $distro =~ "AlmaLinux" ]]; then
yum install -y python3-dev
yum install -y python3-devel
else
echo "OS version is not supported"
fi
Expand Down
8 changes: 5 additions & 3 deletions src/worker/shutdown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ kill_exporters() {
pkill -f "${1}_exporter.py*"
pkill -f "net_exporter.py*"
pkill -f "node_exporter.py*"
pkill -f "metrics_publisher.py*"
}

kill_docker() {
Expand All @@ -38,7 +39,6 @@ kill_docker() {

if [ $arch == "nvidia" ]; then
kill_exporters $arch
pkill -f "metrics_publisher.py*"
pkill -f "^nv-hostengine"

if [ $remove_docker == "true" ]; then
Expand All @@ -50,12 +50,14 @@ if [ $arch == "nvidia" ]; then
sleep 3
exit 0
elif [ $arch == "amd" ]; then
kill_exporters $arch
pkill -f "metrics_publisher.py*"
kill_exporters $arch
pkill -f "^/opt/rocm/rdc/bin/rdcd"
sleep 3
exit 0
else
kill_exporters
kill_docker
sleep 3
echo "No GPU architecture detected"
fi
exit 0

0 comments on commit 7c32695

Please sign in to comment.