diff --git a/kolla/image/build.py b/kolla/image/build.py index 45cdb2bdaa..ac2114e5a3 100755 --- a/kolla/image/build.py +++ b/kolla/image/build.py @@ -332,9 +332,14 @@ def push_image(self, image): # Since docker 3.0.0, the argument of 'insecure_registry' is removed. # To be compatible, set 'insecure_registry=True' for old releases. - dc_running_ver = StrictVersion(docker.version) - if dc_running_ver < StrictVersion('3.0.0'): - kwargs['insecure_registry'] = True + # NOTE(frickler): The version check will fail for docker >= 6.0, but + # in that case we know that the workaround isn't needed. + try: + dc_running_ver = StrictVersion(docker.version) + if dc_running_ver < StrictVersion('3.0.0'): + kwargs['insecure_registry'] = True + except TypeError: + pass for response in self.dc.push(image.canonical_name, **kwargs): if 'stream' in response: diff --git a/kolla/template/repos.yaml b/kolla/template/repos.yaml index de4110bcd2..f5ffe6cdd8 100644 --- a/kolla/template/repos.yaml +++ b/kolla/template/repos.yaml @@ -63,7 +63,7 @@ debian: influxdb: "deb https://repos.influxdata.com/debian bullseye stable" logstash: "deb https://artifacts.elastic.co/packages/oss-7.x/apt stable main" kibana: "deb https://artifacts.elastic.co/packages/oss-7.x/apt stable main" - mariadb: "deb http://downloads.mariadb.com/MariaDB/mariadb-10.5/repo/debian bullseye main" + mariadb: "deb https://dlm.mariadb.com/repo/mariadb-server/10.5/repo/debian bullseye main" rabbitmq: "deb https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/debian bullseye main" td-agent: "deb http://packages.treasuredata.com/4/debian/bullseye bullseye contrib" @@ -74,7 +74,7 @@ debian-aarch64: influxdb: "deb https://repos.influxdata.com/debian bullseye stable" logstash: "deb https://artifacts.elastic.co/packages/oss-7.x/apt stable main" kibana: "deb [arch=amd64] https://artifacts.elastic.co/packages/oss-7.x/apt stable main" - mariadb: "deb http://downloads.mariadb.com/MariaDB/mariadb-10.5/repo/debian bullseye main" + mariadb: "deb https://dlm.mariadb.com/repo/mariadb-server/10.5/repo/debian bullseye main" rabbitmq: "deb https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/debian bullseye main" td-agent: "deb http://packages.treasuredata.com/4/debian/bullseye bullseye contrib" @@ -85,7 +85,7 @@ ubuntu: influxdb: "deb https://repos.influxdata.com/ubuntu focal stable" logstash: "deb https://artifacts.elastic.co/packages/oss-7.x/apt stable main" kibana: "deb https://artifacts.elastic.co/packages/oss-7.x/apt stable main" - mariadb: "deb http://downloads.mariadb.com/MariaDB/mariadb-10.3/repo/ubuntu focal main" + mariadb: "deb https://dlm.mariadb.com/repo/mariadb-server/10.3/repo/ubuntu focal main" qdrouterd: "deb http://ppa.launchpad.net/qpid/released/ubuntu/ focal main" rabbitmq: "deb https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/ubuntu focal main" td-agent: "deb http://packages.treasuredata.com/4/ubuntu/focal/ focal contrib" @@ -96,7 +96,7 @@ ubuntu-aarch64: grafana: "deb https://packages.grafana.com/oss/deb stable main" influxdb: "deb https://repos.influxdata.com/ubuntu focal stable" logstash: "deb https://artifacts.elastic.co/packages/oss-7.x/apt stable main" - mariadb: "deb http://downloads.mariadb.com/MariaDB/mariadb-10.3/repo/ubuntu focal main" + mariadb: "deb https://dlm.mariadb.com/repo/mariadb-server/10.3/repo/ubuntu focal main" rabbitmq: "deb https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/ubuntu focal main" td-agent: "deb http://packages.treasuredata.com/4/ubuntu/focal/ focal contrib" diff --git a/releasenotes/notes/docker-6-6d77b5ff7ec1daef.yaml b/releasenotes/notes/docker-6-6d77b5ff7ec1daef.yaml new file mode 100644 index 0000000000..f666813255 --- /dev/null +++ b/releasenotes/notes/docker-6-6d77b5ff7ec1daef.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixes problems when running with docker-py >=6. + `LP#1988121 `__