Skip to content

Commit b2cb7a2

Browse files
committed
Reboot controller-0 to avoid running deployments
Because deploy architecture runs detached from the zuul job and might run other playbooks in a detached way we need to make sure there are no leftover running deployments that might break the cleanup (trying to create additional resources while the cleanup is running). Added a reboot for controller-0 before cleanup to avoid such cases.
1 parent 4c9be83 commit b2cb7a2

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

deploy-edpm-reuse.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22
- name: Manage unique ID
33
ansible.builtin.import_playbook: playbooks/unique-id.yml
44

5+
- name: Reboot controller-0 to make sure there are no running deployments
6+
hosts: controller-0
7+
gather_facts: false
8+
tasks:
9+
- name: Reboot controller-0
10+
ansible.builtin.reboot:
11+
reboot_timeout: 600
12+
become: true
13+
14+
- name: Wait for controller-0 to come back online
15+
ansible.builtin.wait_for_connection:
16+
timeout: 600
17+
delay: 10
18+
519
- name: Reproducer prepare play
620
hosts: "{{ cifmw_target_host | default('localhost') }}"
721
gather_facts: true

0 commit comments

Comments
 (0)