CI inventory should start at 1 instead of 0 (#5763)
This commit is contained in:
parent
57bb7aa5f6
commit
38df80046e
1 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@
|
||||||
template:
|
template:
|
||||||
src: "vm.yml.j2"
|
src: "vm.yml.j2"
|
||||||
dest: "/tmp/{{ test_name }}/instance-{{ vm_id }}.yml"
|
dest: "/tmp/{{ test_name }}/instance-{{ vm_id }}.yml"
|
||||||
loop: "{{ range(0, vm_count|int, 1) | list }}"
|
loop: "{{ range(1, vm_count|int + 1, 1) | list }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
index_var: vm_id
|
index_var: vm_id
|
||||||
|
|
||||||
|
@ -25,14 +25,14 @@
|
||||||
k8s:
|
k8s:
|
||||||
state: present
|
state: present
|
||||||
src: "/tmp/{{ test_name }}/instance-{{ vm_id }}.yml"
|
src: "/tmp/{{ test_name }}/instance-{{ vm_id }}.yml"
|
||||||
loop: "{{ range(0, vm_count|int, 1) | list }}"
|
loop: "{{ range(1, vm_count|int + 1, 1) | list }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
index_var: vm_id
|
index_var: vm_id
|
||||||
|
|
||||||
- name: Wait for vms to have ipaddress assigned
|
- name: Wait for vms to have ipaddress assigned
|
||||||
shell: "kubectl get vmis -n {{ test_name }} instance-{{ vm_id }} -o json | jq '.status.interfaces[].ipAddress' | tr -d '\"'"
|
shell: "kubectl get vmis -n {{ test_name }} instance-{{ vm_id }} -o json | jq '.status.interfaces[].ipAddress' | tr -d '\"'"
|
||||||
register: vm_ips
|
register: vm_ips
|
||||||
loop: "{{ range(0, vm_count|int, 1) | list }}"
|
loop: "{{ range(1, vm_count|int + 1, 1) | list }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
index_var: vm_id
|
index_var: vm_id
|
||||||
retries: 20
|
retries: 20
|
||||||
|
|
Loading…
Reference in a new issue