diff --git a/playbooks/defaults/source_install.yml b/playbooks/defaults/source_install.yml index dc6a064145..8459378850 100644 --- a/playbooks/defaults/source_install.yml +++ b/playbooks/defaults/source_install.yml @@ -34,3 +34,6 @@ openstack_service_setup_host_python_interpreter: "/openstack/venvs/utility-{{ op ## Delegate all database setup tasks to the utility host, and use the utility venv python interpreter openstack_db_setup_host: "{{ openstack_service_setup_host }}" openstack_db_setup_python_interpreter: "{{ openstack_service_setup_host_python_interpreter }}" + +# Locally cached copy on the repo server for the OpenStack upper-constraints.txt +requirements_git_url: "{{ openstack_service_internaluri_proto ~ '://' ~ internal_lb_vip_address ~ ':' ~ repo_server_port ~ '/constraints/upper_constraints_' ~ requirements_git_install_branch ~ '.txt' }}" \ No newline at end of file diff --git a/releasenotes/notes/repo-server-uc-cache-74de275bfd82c998.yaml b/releasenotes/notes/repo-server-uc-cache-74de275bfd82c998.yaml new file mode 100644 index 0000000000..0b1e77e05b --- /dev/null +++ b/releasenotes/notes/repo-server-uc-cache-74de275bfd82c998.yaml @@ -0,0 +1,27 @@ +--- +features: + - | + The repository server can now retrieve and cache upper-constraints files + and serve them as required to pip during the build of python wheels. By + default the relevant version of upper-constraints will be downloaded once + from https://releases.openstack.org/constraints/upper/, or the url in a + new override user_requirements_git_url. Additional constraints files can + be placed in /etc/openstack_deploy/upper-constraints on the deploy host + and these will be copied to the repo server and will be available to + reference in other overrides such as magnum_upper_constraints_url. This + is useful if deploying a different branch of a service such as magnum/master + onto a deployment of openstack/victoria. If the target hosts are in an + air-gapped environment, setting requirements_git_repo to an empty string + will disable downloading of upper-constraints to the repo server and + rely on the deployer providing suitable copies of upper-constraints in + through the deploy host /etc/openstack_deploy/upper-constraints directory. +upgrade: + - | + If a deployment uses local copies or caches of the openstack requirements + repo or upper-constraints files, the repo server is now able to natively + host copies of the relevant upper-constraints files and serve them to pip + during wheel builds. It is now also possible to supply custom constraints + files in the deploy host /etc/openstack_deploy/upper-constraints directory. + Deployers should take account of the new capability in the repo server and + adjust any special handling of downloading upper-constraints that they + may have made via overrides, in particular requirements_git_url.