From 057dd566e1a50e6e4dd867dd3c1175e9ce1eff2b Mon Sep 17 00:00:00 2001 From: Arnau Verdaguer Date: Fri, 9 Jan 2026 16:54:49 +0100 Subject: [PATCH] [os_must_gather] Make volume-percentage tunable Add the ability to modify volume-percentage on os-must-gather role via cifmw_os_must_gather_volume_percentage. It's set by default at 70 which is currently the default value so there's no change of behaviour. Signed-off-by: Arnau Verdaguer --- roles/os_must_gather/defaults/main.yml | 1 + roles/os_must_gather/tasks/main.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/roles/os_must_gather/defaults/main.yml b/roles/os_must_gather/defaults/main.yml index 72050e8e36..248d21df61 100644 --- a/roles/os_must_gather/defaults/main.yml +++ b/roles/os_must_gather/defaults/main.yml @@ -24,6 +24,7 @@ cifmw_os_must_gather_output_dir: "{{ cifmw_basedir | default(ansible_user_dir ~ cifmw_os_must_gather_output_log_dir: "{{ cifmw_os_must_gather_output_dir }}/logs/openstack-must-gather" cifmw_os_must_gather_repo_path: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/openstack-must-gather" cifmw_os_must_gather_timeout: "30m" +cifmw_os_must_gather_volume_percentage: 70 cifmw_os_must_gather_additional_namespaces: "kuttl,openshift-storage,openshift-marketplace,openshift-operators,sushy-emulator,tobiko" cifmw_os_must_gather_namespaces: - "{{ operator_namespace }}" diff --git a/roles/os_must_gather/tasks/main.yml b/roles/os_must_gather/tasks/main.yml index 7b578d5fab..277152f82e 100644 --- a/roles/os_must_gather/tasks/main.yml +++ b/roles/os_must_gather/tasks/main.yml @@ -72,6 +72,7 @@ --timeout {{ cifmw_os_must_gather_timeout }} --host-network={{ cifmw_os_must_gather_host_network }} --dest-dir {{ cifmw_os_must_gather_output_log_dir }} + --volume-percentage={{ cifmw_os_must_gather_volume_percentage }} -- ADDITIONAL_NAMESPACES={{ cifmw_os_must_gather_additional_namespaces }} OPENSTACK_DATABASES=$OPENSTACK_DATABASES SOS_EDPM=$SOS_EDPM @@ -115,6 +116,7 @@ oc adm must-gather --dest-dir {{ ansible_user_dir }}/ci-framework-data/must-gather --timeout {{ cifmw_os_must_gather_timeout }} + --volume-percentage={{ cifmw_os_must_gather_volume_percentage }} always: - name: Create oc_inspect log directory ansible.builtin.file: