Skip to content

Commit 9678090

Browse files
authored
Merge pull request #315 from redhat-performance/turn_on_pcp
Add the option to Zathras to turn on and off pcp in the wrappers.
2 parents 162587b + 55fbecc commit 9678090

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

ansible_roles/roles/test_generic/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
--sysname "{{ config_info.host_or_cloud_inst }}"
8181
--sys_type {{ config_info.system_type }}
8282
{{ "--no_pkg_install" if config_info.do_not_install_packages else "" }}
83+
{{ config_info.use_pcp }}
8384
{{ test_data.test_specific }}
8485
8586
- name: command running

bin/burden

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ gl_spot_recover=1
140140
gl_cloud_placement=${value_not_set}
141141
gl_cloud_networks_sys="duplicate"
142142
gl_preflight=0
143+
gl_use_pcp="--use_pcp"
143144
#
144145
# Global values
145146
# gl_sys_file: sysctl files to use.
@@ -1929,6 +1930,7 @@ create_ansible_options()
19291930
echo " test_exec_location: none" >> ansible_vars_main.yml
19301931
fi
19311932

1933+
echo " use_pcp: ${gl_use_pcp}" >> ansible_vars_main.yml
19321934
#
19331935
# More differences in the cloud space that has to be addressed here.
19341936
#
@@ -3329,6 +3331,8 @@ usage()
33293331
echo " --no_spot_recover: Do not recover from a spot system going away."
33303332
echo " --package_name <name>: Use this set of packages to override the default in the test config."
33313333
echo " file instead of the default. Default format package name <os>_pkg, new name <os>_pkg_<ver>."
3334+
echo " --use_pcp 0/1: If set to 0, pcp will not be used by the wrappers. If set to 1, pcp will be"
3335+
echo " used by the wrappers. Default is 1."
33323336
echo " --persistent_log: enable persistent logging"
33333337
echo " --preflight_check: Performs various checks on the scenario file, and Zathras and then exits"
33343338
echo " --results_prefix <prefix>: Run directory prefix"
@@ -3757,6 +3761,15 @@ set_general_value()
37573761
usage "0"
37583762
shift_by=1
37593763
;;
3764+
--use_pcp)
3765+
echo "$1 $2" >> $gl_cli_supplied_options
3766+
if [[ $2 -eq 1 ]]; then
3767+
gl_use_pcp="--use_pcp"
3768+
else
3769+
gl_use_pcp=""
3770+
fi
3771+
shift_by=2
3772+
;;
37603773
--use_spot)
37613774
gl_use_spot=$2
37623775
shift_by=2
@@ -3822,6 +3835,7 @@ grab_cli_data()
38223835
"tuned_reboot"
38233836
"update_target"
38243837
"upload_rpms"
3838+
"use_pcp"
38253839
"use_spot"
38263840
)
38273841

docs/command_line_reference.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ Currently rhel, ubuntu, amazon, suse.
6161
### --package_name \<name>
6262
Use this set of packages to override the default in the test config file instead of the default. Default format package name \<os>_pkg, new name \<os>_pkg_\<ver>.
6363

64+
### --use_pcp 0/1
65+
If set to 0, pcp will not be used by the wrappers. If set to 1, pcp will be used by the wrappers. Default is 1.
66+
6467
### --persistent_log
6568
Enable persistent logging.
6669

@@ -187,4 +190,5 @@ Operating mode. Use 'image' for bootc-based hosts (skips packages, uses safe upl
187190
Name of the user to log into the system with. This setting will override the defaults based on cloud or local system.
188191

189192
### --update_test_versions
190-
Will update the templates so we are using the latest versions of the test (git repos only).
193+
Will update the templates so we are using the latest versions of the test (git repos only).
194+

0 commit comments

Comments
 (0)