Fix typo;Add debugging;Add missing key
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
9887faa7c4
commit
2870041530
@ -20,7 +20,7 @@
|
|||||||
# Unable to use REST api based readycheck due to lack of ingress
|
# Unable to use REST api based readycheck due to lack of ingress
|
||||||
wait: yes
|
wait: yes
|
||||||
kubeconfig: "{{ kubeconfig.path }}"
|
kubeconfig: "{{ kubeconfig.path }}"
|
||||||
values-files:
|
values_files:
|
||||||
- "{{ values_file.path }}"
|
- "{{ values_file.path }}"
|
||||||
|
|
||||||
- name: Cleanup tempfile
|
- name: Cleanup tempfile
|
||||||
|
@ -14,12 +14,20 @@
|
|||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.metadata.name }}"
|
label: "{{ item.metadata.name }}"
|
||||||
|
|
||||||
|
- ansible.builtin.uri:
|
||||||
|
url: https://storage.{{ vapp['metacluster.fqdn'] }}/v1/volumes
|
||||||
|
method: GET
|
||||||
|
register: debug_volume_details
|
||||||
|
- debug:
|
||||||
|
msg: "{{ debug_volume_details }}"
|
||||||
|
|
||||||
- name: Wait for replica rebuilds to complete
|
- name: Wait for replica rebuilds to complete
|
||||||
ansible.builtin.uri:
|
ansible.builtin.uri:
|
||||||
url: https://storage.{{ vapp['metacluster.fqdn'] }}/v1/volumes
|
url: https://storage.{{ vapp['metacluster.fqdn'] }}/v1/volumes
|
||||||
method: GET
|
method: GET
|
||||||
register: volume_details
|
register: volume_details
|
||||||
until:
|
until:
|
||||||
|
- volume_details.json.data is defined
|
||||||
- (volume_details.json.data | json_query('[*].robustness') | unique | length) == 1
|
- (volume_details.json.data | json_query('[*].robustness') | unique | length) == 1
|
||||||
- (volume_details.json.data | json_query('[*].robustness') | first) == "healthy"
|
- (volume_details.json.data | json_query('[*].robustness') | first) == "healthy"
|
||||||
retries: "{{ playbook.retries }}"
|
retries: "{{ playbook.retries }}"
|
||||||
@ -33,6 +41,8 @@
|
|||||||
create_namespace: yes
|
create_namespace: yes
|
||||||
wait: no
|
wait: no
|
||||||
values: "{{ components.longhorn.chart_values }}"
|
values: "{{ components.longhorn.chart_values }}"
|
||||||
|
# Workaround; module_defaults are not respected by this module
|
||||||
|
kubeconfig: "{{ kubeconfig.path }}"
|
||||||
|
|
||||||
- name: Ensure longhorn API availability
|
- name: Ensure longhorn API availability
|
||||||
ansible.builtin.uri:
|
ansible.builtin.uri:
|
||||||
|
Loading…
Reference in New Issue
Block a user