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
19 changes: 19 additions & 0 deletions deploy-edpm-reuse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,25 @@
name: reproducer
tasks_from: reuse_main

- name: Find stale root-owned log files
delegate_to: controller-0
ansible.builtin.find:
paths: /home/zuul/ci-framework-data/logs
patterns: "ansible-*.log"
file_type: file
register: _stale_logs
failed_when: false

- name: Fix log file ownership for reuse runs
delegate_to: controller-0
become: true
ansible.builtin.file:
path: "{{ item }}"
owner: zuul
group: zuul
loop: "{{ _stale_logs.files | default([]) | map(attribute='path') | list }}"
failed_when: false

- name: Run deployment if instructed to
when:
- cifmw_deploy_architecture | default(false) | bool
Expand Down
5 changes: 4 additions & 1 deletion roles/cleanup_openstack/tasks/detach_bmh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@
retries: 60
delay: 10
until:
- bmh_status.resources | length == 0 or bmh_status.resources[0].status.operationalStatus == 'detached'
- >-
bmh_status.resources | length == 0 or
bmh_status.resources[0].status is not defined or
bmh_status.resources[0].status.operationalStatus | default('') == 'detached'
register: bmh_status
loop: "{{ cifmw_deploy_bmh_bm_hosts_list }}"
loop_control:
Expand Down
Loading