4417b2ceef
When executing the role in parallel, there is a race condition due to all targets trying to build simultaneously and then all trying to copy their packages back to the same folder on the deployment host. In this patch we implement the use of a dynamic group based on the venv_reuse_download_subfolder which, by default, combines the architecture and distribution data. We then use this group to ensure that only the first of each group does the build and the others consume the first host's package. The conditional in tasks/python_venv_install.yml checking whether the src venv is present was unnecessary given the same conditional is present in tasks/main.yml. It interferes with the new parallel execution capability, so it's been removed. To validate whether builds happen properly, whether in serial or parallel, and to also implement a way to implement tests for future validations, we implement a test system using multiple containers while allowing localhost to be the deployment host only. Change-Id: I29d230c16bee3e2d7e434f98c05af4a6a53ff10a
21 lines
648 B
YAML
21 lines
648 B
YAML
- name: apt_package_pinning
|
|
src: https://git.openstack.org/openstack/openstack-ansible-apt_package_pinning
|
|
scm: git
|
|
version: master
|
|
- name: pip_install
|
|
src: https://git.openstack.org/openstack/openstack-ansible-pip_install
|
|
scm: git
|
|
version: master
|
|
- name: openstack_hosts
|
|
src: https://git.openstack.org/openstack/openstack-ansible-openstack_hosts
|
|
scm: git
|
|
version: master
|
|
- name: lxc_hosts
|
|
src: https://git.openstack.org/openstack/openstack-ansible-lxc_hosts
|
|
scm: git
|
|
version: master
|
|
- name: lxc_container_create
|
|
src: https://git.openstack.org/openstack/openstack-ansible-lxc_container_create
|
|
scm: git
|
|
version: master
|