diff options
author | yatinkarel <ykarel@redhat.com> | 2022-04-01 13:17:55 +0530 |
---|---|---|
committer | yatin <ykarel@redhat.com> | 2022-04-11 06:02:34 +0000 |
commit | 9bc447077bce642c25faed9306537b4f1bf57230 (patch) | |
tree | 7120cd7a7fc393151918d7628fd6d1a28354e7bd /tools | |
parent | 430abde13ec58e611a8752ca579fee5110a0a61d (diff) | |
download | neutron-9bc447077bce642c25faed9306537b4f1bf57230.tar.gz |
Enable dstat and memory_tracker in functional/fullstack jobs
This Will help in troubleshooting failures related to high
memory or cpu usage.
Related-Bug: #1966394
Change-Id: I74b0d53bfc54b71d3e8b2d46739a944e5f5a6b6f
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/configure_for_func_testing.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/configure_for_func_testing.sh b/tools/configure_for_func_testing.sh index 25205d982f..29d514359a 100755 --- a/tools/configure_for_func_testing.sh +++ b/tools/configure_for_func_testing.sh @@ -23,6 +23,7 @@ USE_CONSTRAINT_ENV=${USE_CONSTRAINT_ENV:-True} MYSQL_USER=${MYSQL_USER:-root} DATABASE_USER=${DATABASE_USER:-openstack_citest} DATABASE_NAME=${DATABASE_NAME:-openstack_citest} +MEMORY_TRACKER=${MEMORY_TRACKER:-False} if [[ "$IS_GATE" != "True" ]] && [[ "$#" -lt 1 ]]; then @@ -279,6 +280,20 @@ function _install_post_devstack { fi enable_kernel_bridge_firewall + + # install/start memory tracker service if enabled + if [[ "$MEMORY_TRACKER" == "True" ]]; then + # is_service_enabled checks for service into ENABLED_SERVICES + ENABLED_SERVICES+=,dstat,memory_tracker + source $DEVSTACK_PATH/lib/dstat + if is_ubuntu; then + install_package pcp + else + install_package pcp-system-tools + fi + install_dstat + start_dstat + fi } |