diff options
author | 2016-10-21 10:36:09 +0100 | |
---|---|---|
committer | 2016-11-02 08:43:26 +0000 | |
commit | 5e784f05f291a1874d693cc792f77a9029411ab0 (patch) | |
tree | fac2904f9dfd82664df61fa737518967cdb5c752 | |
parent | b7eee962c92607148ff410381648217f1977bcd7 (diff) |
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 <mchandras@suse.de>
-rw-r--r-- | prototypes/bifrost/playbooks/test-bifrost-infracloud.yaml | 8 |
1 files changed, 4 insertions, 4 deletions
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 |