Skip to content

Commit

Permalink
Update DCN playbook to save job CRs
Browse files Browse the repository at this point in the history
This update adds two steps to save job CRs in the ci-framework-data folder.
This folder is collected during the collect-log stage, which makes
the debugging process much easier.
  • Loading branch information
sbekkerm authored and openshift-merge-bot[bot] committed Nov 19, 2024
1 parent f31aef1 commit 1d89345
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions playbooks/dcn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,29 @@
- _ceph_bootstrap_node != ''
ansible.builtin.include_role:
name: ci_dcn_site

- name: Find all created CRs
ansible.builtin.find:
paths: >-
{{
(ansible_user_dir,
'src',
'github.com',
'openstack-k8s-operators',
'architecture',
'examples',
'dt',
cifmw_architecture_scenario) | path_join
}}
file_type: file
patterns:
- "control*.yaml"
- "dataplane*.yaml"
register: dcn_crs

- name: Copy found CR files to the manifests folder
ansible.builtin.copy:
src: "{{ item.path }}"
dest: "/home/zuul/ci-framework-data/artifacts/manifests/openstack/cr"
loop: "{{ dcn_crs.files }}"
when: dcn_crs.matched > 0

0 comments on commit 1d89345

Please sign in to comment.