Skip to content

Commit 649a09a

Browse files
committed
Do not print some env_op_images and e2e-collect-logs tasks
The tasks gives a lot of output, where later you can find it in log file. Signed-off-by: Daniel Pawlik <[email protected]>
1 parent e248975 commit 649a09a

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

ci/playbooks/e2e-collect-logs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
environment:
3939
ANSIBLE_LOG_PATH: "{{ ansible_user_dir }}/ci-framework-data/logs/e2e-collect-logs-must-gather.log"
4040

41-
- name: "Run ci/playbooks/e2e-collect-logs.yml on CRC host"
41+
- name: "Run ci/playbooks/collect-logs.yml on CRC host"
4242
hosts: crc
4343
gather_facts: false
4444
tasks:

roles/env_op_images/tasks/main.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@
4646
PATH: "{{ cifmw_path }}"
4747
block:
4848
- name: Get images from the CSV
49-
ansible.builtin.command:
49+
ansible.builtin.shell:
5050
cmd: >-
5151
oc get ClusterServiceVersion
5252
-l operators.coreos.com/openstack-operator.openstack-operators
5353
--all-namespaces
54-
-o yaml
55-
register: _csvs_out
54+
-o yaml > /tmp/csvs_output.yaml
55+
no_log: "{{ cifmw_nolog | default(true) | bool }}"
5656

5757
- name: Get the images name
5858
ansible.builtin.shell: >
@@ -95,9 +95,16 @@
9595
cifmw_install_yamls_vars_content:
9696
OPENSTACK_IMG: "{{ selected_pod.status.containerStatuses[0].imageID }}"
9797

98+
- name: Read csvs_output.yaml file
99+
ansible.builtin.slurp:
100+
src: /tmp/csvs_output.yaml
101+
register: _csvs_out
102+
no_log: "{{ cifmw_nolog | default(true) | bool }}"
103+
98104
- name: Get all the pods in openstack-operator namespace
99105
vars:
100-
csv_items: "{{ (_csvs_out.stdout | from_yaml)['items'] }}"
106+
parsed_csv: "{{ _csvs_out['content'] | b64decode | from_yaml }}"
107+
csv_items: "{{ parsed_csv['items'] }}"
101108
kubernetes.core.k8s_info:
102109
kind: Pod
103110
namespace: >-
@@ -140,6 +147,7 @@
140147
loop: "{{ selected_pods }}"
141148
loop_control:
142149
label: "{{ item.metadata.name }}"
150+
no_log: "{{ cifmw_nolog | default(true) | bool }}"
143151

144152
- name: Write images to file
145153
vars:

0 commit comments

Comments
 (0)