Skip to content

Commit 2f3c92a

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Enable dstat and memory_tracker in functional/fullstack jobs" into stable/yoga
2 parents 9c5ae16 + 969a0db commit 2f3c92a

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

roles/configure_functional_tests/tasks/main.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
OVS_BRANCH={{ OVS_BRANCH }}
1717
OVN_BRANCH={{ OVN_BRANCH }}
1818
Q_BUILD_OVS_FROM_GIT={{ Q_BUILD_OVS_FROM_GIT }}
19+
MEMORY_TRACKER={{ MEMORY_TRACKER }}
1920
INSTALL_OVN={{ INSTALL_OVN }}
2021
# This is DB USER used in e.g. pgsql db
2122
DATABASE_USER=openstack_citest

tools/configure_for_func_testing.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ USE_CONSTRAINT_ENV=${USE_CONSTRAINT_ENV:-True}
2323
MYSQL_USER=${MYSQL_USER:-root}
2424
DATABASE_USER=${DATABASE_USER:-openstack_citest}
2525
DATABASE_NAME=${DATABASE_NAME:-openstack_citest}
26+
MEMORY_TRACKER=${MEMORY_TRACKER:-False}
2627

2728

2829
if [[ "$IS_GATE" != "True" ]] && [[ "$#" -lt 1 ]]; then
@@ -279,6 +280,20 @@ function _install_post_devstack {
279280
fi
280281

281282
enable_kernel_bridge_firewall
283+
284+
# install/start memory tracker service if enabled
285+
if [[ "$MEMORY_TRACKER" == "True" ]]; then
286+
# is_service_enabled checks for service into ENABLED_SERVICES
287+
ENABLED_SERVICES+=,dstat,memory_tracker
288+
source $DEVSTACK_PATH/lib/dstat
289+
if is_ubuntu; then
290+
install_package pcp
291+
else
292+
install_package pcp-system-tools
293+
fi
294+
install_dstat
295+
start_dstat
296+
fi
282297
}
283298

284299

zuul.d/base.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
- ^zuul.d/(?!(project)).*\.yaml
3030
vars:
3131
Q_BUILD_OVS_FROM_GIT: True
32+
MEMORY_TRACKER: True
3233
INSTALL_OVN: True
3334
OVN_BRANCH: v21.06.0
3435
OVS_BRANCH: v2.16.0

0 commit comments

Comments
 (0)