Skip to content

Commit e51cbf0

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Install psutil required by tools/mlock_report.py script"
2 parents fdd631d + 19e4d97 commit e51cbf0

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

lib/dstat

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,22 @@
99

1010
# ``stack.sh`` calls the entry points in this order:
1111
#
12+
# - install_dstat
1213
# - start_dstat
1314
# - stop_dstat
1415

1516
# Save trace setting
1617
_XTRACE_DSTAT=$(set +o | grep xtrace)
1718
set +o xtrace
1819

20+
# install_dstat() - Install prerequisites for dstat services
21+
function install_dstat {
22+
if is_service_enabled memory_tracker; then
23+
# Install python libraries required by tools/mlock_report.py
24+
pip_install_gr psutil
25+
fi
26+
}
27+
1928
# start_dstat() - Start running processes
2029
function start_dstat {
2130
# A better kind of sysstat, with the top process per time slice

stack.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,13 @@ if is_service_enabled tls-proxy; then
867867
init_cert
868868
fi
869869

870+
# Dstat
871+
# -----
872+
873+
# Install dstat services prerequisites
874+
install_dstat
875+
876+
870877
# Check Out and Install Source
871878
# ----------------------------
872879

0 commit comments

Comments
 (0)