From 0c9e6abc1361107bd79af4f267a6c3efbdea42c6 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Fri, 21 Oct 2016 10:36:09 +0100 Subject: playbooks: Do not serialize ironic deployment [This is similar to upstream https://review.openstack.org/389079] This somewhat reverts 0a82e3d8d29f85229e1ed29d90de47346bc1d9b1 ("Serialize localhost actions during final host deployment"). The only point where we want to serialize the steps is when accessing common files on the host. In the bifrost-deploy-nodes-dynamic role, all tasks are accessing files based on the 'inventory_hostname' variable, which means there is no conflict there and tasks on these role can run in parallel. This allows bifrost to provision machines in parallel during pxe boot which speeds up the entire operation. Change-Id: I64b1f2832c333c89e33e8f9d19f03e4d653d74b4 Signed-off-by: Markos Chandras --- bifrost/playbooks/test-bifrost-infracloud.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bifrost/playbooks') diff --git a/bifrost/playbooks/test-bifrost-infracloud.yaml b/bifrost/playbooks/test-bifrost-infracloud.yaml index d650f105..a0bc2850 100644 --- a/bifrost/playbooks/test-bifrost-infracloud.yaml +++ b/bifrost/playbooks/test-bifrost-infracloud.yaml @@ -67,18 +67,18 @@ - role: ironic-enroll-dynamic - { role: ironic-inspect-node, when: inspect_nodes | default('false') | bool == true } - hosts: baremetal - name: "Create configuration drive files" + name: "Create configuration drive files and deploy machines" + vars: + multinode_testing: "{{ inventory_dhcp | bool == true }}" become: no connection: local roles: - role: bifrost-configdrives-dynamic + - role: bifrost-deploy-nodes-dynamic - hosts: baremetal - vars: - multinode_testing: "{{ inventory_dhcp | bool == true }}" name: "Deploy machines." become: no connection: local serial: 1 roles: - - role: bifrost-deploy-nodes-dynamic - role: bifrost-prepare-for-test-dynamic -- cgit 1.2.3-korg