Skip to content

Commit fa76f14

Browse files
fmountdanpawlik
authored andcommitted
[os_must_gather] - Gather data without using OMC mode
We recently hit some performances issues with watcher and the must-gather fails hitting the timeout limit. This patch explicitly disables OMC mode until we have more stability in CI. Signed-off-by: Francesco Pantano <[email protected]>
1 parent daa7918 commit fa76f14

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

roles/os_must_gather/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ testing the new changes.
1616
* `cifmw_os_must_gather_namespaces`: (List) List of namespaces required by the gather task in case of failure
1717
* `cifmw_os_must_gather_additional_namespaces`: (String) List of comma separated additional namespaces. Defaults to `kuttl,openshift-storage,sushy-emulator`
1818
* `cifmw_os_must_gather_volume_percentage`: (int) Specify maximum percentage of must-gather pod's allocated volume that can be used. If this limit is exceeded, must-gather will stop gathering, but still copy gathered data. Defaults to `80`
19+
* `cifmw_os_must_gather_omc`: (bool) Enables the full gathering method. When set to false, a lightweight mode is used; when true, it performs a comprehensive data collection, which is more resource-intensive. Defaults to `false`
1920

2021
## Examples
2122
```

roles/os_must_gather/defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@ cifmw_os_must_gather_namespaces:
3737
- metallb-system
3838
- crc-storage
3939
cifmw_os_must_gather_host_network: false
40+
cifmw_os_must_gather_omc: false
4041
cifmw_os_must_gather_dump_db: "ALL"
4142
cifmw_os_must_gather_kubeconfig: "{{ ansible_user_dir }}/.kube/config"

roles/os_must_gather/tasks/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
SOS_EDPM: "all"
6565
SOS_DECOMPRESS: "0"
6666
OPENSTACK_DATABASES: "{{ cifmw_os_must_gather_dump_db }}"
67+
OMC: "{{ cifmw_os_must_gather_omc }}"
6768
cifmw.general.ci_script:
6869
output_dir: "{{ cifmw_os_must_gather_output_dir }}/artifacts"
6970
script: >-
@@ -76,6 +77,7 @@
7677
-- ADDITIONAL_NAMESPACES={{ cifmw_os_must_gather_additional_namespaces }}
7778
OPENSTACK_DATABASES=$OPENSTACK_DATABASES
7879
SOS_EDPM=$SOS_EDPM
80+
OMC=$OMC
7981
SOS_DECOMPRESS=$SOS_DECOMPRESS
8082
gather
8183
2>&1 || {

0 commit comments

Comments
 (0)