From: Markos Chandras Date: Fri, 21 Oct 2016 09:36:09 +0000 (+0100) Subject: playbooks: Do not serialize ironic deployment X-Git-Tag: danube.1.0~685 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=5e784f05f291a1874d693cc792f77a9029411ab0;p=releng.git 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 --- diff --git a/prototypes/bifrost/playbooks/test-bifrost-infracloud.yaml b/prototypes/bifrost/playbooks/test-bifrost-infracloud.yaml index d650f1056..a0bc28506 100644 --- a/prototypes/bifrost/playbooks/test-bifrost-infracloud.yaml +++ b/prototypes/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