Skip buggy release of docker PyPI package

The tag regex is buggy and fails if the docker registry contains a port
number[1].

[1] https://github.com/docker/docker-py/issues/3195

Change-Id: I5d85e751b490ab1e39e417ff8797ca8f8688590b
Closes-Bug: #2054715
This commit is contained in:
Will Szumski 2024-02-22 16:23:52 +00:00
parent 292125b5a4
commit 9c1951478f
3 changed files with 15 additions and 3 deletions

View File

@ -67,7 +67,9 @@
version: "{{ item.version | default(omit) }}"
state: "{{ item.state | default('present') }}"
virtualenv: "{{ kolla_venv }}"
extra_args: "{% if kolla_upper_constraints_file %}-c {{ kolla_upper_constraints_file }}{% endif %}"
extra_args: "{{ item.extra_args | default(default_extra_args) }}"
vars:
default_extra_args: "{% if kolla_upper_constraints_file %}-c {{ kolla_upper_constraints_file }}{% endif %}"
with_items:
# Install Kolla from source.
- name: "{{ kolla_source_path }}"
@ -77,5 +79,10 @@
version: "{{ kolla_openstack_release }}"
install: "{{ kolla_ctl_install_type == 'binary' }}"
# Install docker from PyPI since it was dropped from kolla requirements.
- name: "docker"
# Skip 7.0.0 due to: https://github.com/docker/docker-py/issues/3195
- name: "docker!=7.0.0,<8"
# NOTE(wszumski): Workaround for ERROR: ResolutionImpossible when using upper constraints.
# This can be removed once a newer version of docker is released and the version in upper
# constraints has been bumped (>7.0.0).
extra_args: "{{ omit }}"
when: item.install | default(True) | bool

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Fixes issue building container images when docker registry contained a
port. See `LP#2054715 <https://bugs.launchpad.net/kayobe/+bug/2054715>`__
for more details.

View File

@ -221,7 +221,6 @@
Base job for testing seed image builds.
Configures the primary VM as a seed.
voting: false
vars:
build_images: true