From eb7661d9e8b620a3183722f7fa49ec43138b4d2d Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Sun, 18 Feb 2018 13:44:26 +0000 Subject: [PATCH] Ensure that constraints are used for AIO bootstrap Currently the pip_install role does not configure any constraints when exercising the AIO bootstrap, creating the possibility that the initial bootstrap may not have the right software versions. This patch ensures that the same constraints are used for the AIO bootstrap as was done for the Ansible bootstrap. Change-Id: I6aa467d4f1f6db33c824f4fcf8e46adb0a26cfa0 --- tests/bootstrap-aio.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/bootstrap-aio.yml b/tests/bootstrap-aio.yml index 8b161d40bd..c19c806446 100644 --- a/tests/bootstrap-aio.yml +++ b/tests/bootstrap-aio.yml @@ -26,6 +26,9 @@ bootstrap_host_scenario: "{{ lookup('env','SCENARIO') | default('aio_lxc', true) }}" openstack_confd_entries: "{{ confd_overrides[bootstrap_host_scenario] }}" pip_install_upper_constraints_proto: "{{ ansible_python_version | version_compare('2.7.9', '>=') | ternary('https','http') }}" + pip_install_upper_constraints: >- + {{ (playbook_dir ~ '/../global-requirement-pins.txt') | realpath }} + --constraint {{ pip_install_upper_constraints_proto }}://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?id={{ requirements_git_install_branch | regex_replace(' #.*$','') }} sftp_subsystem: 'apt': 'sftp /usr/lib/openssh/sftp-server' 'yum': 'sftp /usr/libexec/openssh/sftp-server'