Allow to enable atop
It may be required to troubleshoot performance related bugs during
tests exection, to have ability to inspect environment processes
and theirs status during test run this patch installs atop
by default if not explicitly disabled.
Related-Bug: #2095224
Change-Id: Iedbd61f3ce3cd2255ea5f2a7a93ba2f39ad28ff2
diff --git a/unstack.sh b/unstack.sh
index 1b2d8dd..29c8071 100755
--- a/unstack.sh
+++ b/unstack.sh
@@ -73,6 +73,7 @@
source $TOP_DIR/lib/neutron
source $TOP_DIR/lib/ldap
source $TOP_DIR/lib/dstat
+source $TOP_DIR/lib/atop
source $TOP_DIR/lib/etcd3
# Extras Source
@@ -174,6 +175,10 @@
stop_dstat
+if is_service_enabled atop; then
+ stop_atop
+fi
+
# NOTE: Cinder automatically installs the lvm2 package, independently of the
# enabled backends. So if Cinder is enabled, and installed successfully we are
# sure lvm2 (lvremove, /etc/lvm/lvm.conf, etc.) is here.