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
19 lines
651 B
YAML
19 lines
651 B
YAML
---
|
|
# Copyright 2018, Rackspace US, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
ansible_host: 10.1.0.4
|
|
ansible_become: True
|
|
ansible_user: root
|