From 38df80046e8f12d7908e40845c2fc537d5639226 Mon Sep 17 00:00:00 2001 From: Maxime Guyot Date: Fri, 13 Mar 2020 18:22:39 +0100 Subject: [PATCH] CI inventory should start at 1 instead of 0 (#5763) --- tests/cloud_playbooks/roles/packet-ci/tasks/create-vms.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/cloud_playbooks/roles/packet-ci/tasks/create-vms.yml b/tests/cloud_playbooks/roles/packet-ci/tasks/create-vms.yml index a8d4ced08..939d432a6 100644 --- a/tests/cloud_playbooks/roles/packet-ci/tasks/create-vms.yml +++ b/tests/cloud_playbooks/roles/packet-ci/tasks/create-vms.yml @@ -17,7 +17,7 @@ template: src: "vm.yml.j2" 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: index_var: vm_id @@ -25,14 +25,14 @@ k8s: state: present 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: index_var: vm_id - 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 '\"'" register: vm_ips - loop: "{{ range(0, vm_count|int, 1) | list }}" + loop: "{{ range(1, vm_count|int + 1, 1) | list }}" loop_control: index_var: vm_id retries: 20