Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci/playbooks/e2e-collect-logs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
environment:
ANSIBLE_LOG_PATH: "{{ ansible_user_dir }}/ci-framework-data/logs/e2e-collect-logs-must-gather.log"

- name: "Run ci/playbooks/e2e-collect-logs.yml on CRC host"
- name: "Run ci/playbooks/collect-logs.yml on CRC host"
hosts: crc
gather_facts: false
tasks:
Expand Down
16 changes: 12 additions & 4 deletions roles/env_op_images/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@
PATH: "{{ cifmw_path }}"
block:
- name: Get images from the CSV
ansible.builtin.command:
ansible.builtin.shell:
cmd: >-
oc get ClusterServiceVersion
-l operators.coreos.com/openstack-operator.openstack-operators
--all-namespaces
-o yaml
register: _csvs_out
-o yaml > /tmp/csvs_output.yaml
no_log: "{{ cifmw_nolog | default(true) | bool }}"

- name: Get the images name
ansible.builtin.shell: >
Expand Down Expand Up @@ -95,9 +95,16 @@
cifmw_install_yamls_vars_content:
OPENSTACK_IMG: "{{ selected_pod.status.containerStatuses[0].imageID }}"

- name: Read csvs_output.yaml file
ansible.builtin.slurp:
src: /tmp/csvs_output.yaml
register: _csvs_out
no_log: "{{ cifmw_nolog | default(true) | bool }}"

- name: Get all the pods in openstack-operator namespace
vars:
csv_items: "{{ (_csvs_out.stdout | from_yaml)['items'] }}"
parsed_csv: "{{ _csvs_out['content'] | b64decode | from_yaml }}"
csv_items: "{{ parsed_csv['items'] }}"
kubernetes.core.k8s_info:
kind: Pod
namespace: >-
Expand Down Expand Up @@ -140,6 +147,7 @@
loop: "{{ selected_pods }}"
loop_control:
label: "{{ item.metadata.name }}"
no_log: "{{ cifmw_nolog | default(true) | bool }}"

- name: Write images to file
vars:
Expand Down