Skip to content

Commit

Permalink
Fix Swift storage migration wait condition
Browse files Browse the repository at this point in the history
oc wait fails if the storage instances have not been created yet.
This fix will retry to ensure it does not fail before instances are
created.
  • Loading branch information
cschwede committed Nov 6, 2024
1 parent 7065044 commit b999b38
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/roles/swift_migration/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
- name: wait until all pods are ready
ansible.builtin.shell: |
{{ oc_header }}
oc wait pods --for condition=Ready -l component=swift-storage
oc wait pods --for condition=Ready --timeout=60s -l component=swift-storage
register: swift_storage_ready_result
until: swift_storage_ready_result is success
retries: 60
delay: 2

- name: set standalone node weight to 0 in swift rings
ansible.builtin.shell: |
Expand Down

0 comments on commit b999b38

Please sign in to comment.