Skip to content

Commit b3e7221

Browse files
markgoddardosfrickler
authored andcommitted
mariadb: Fix RPM repository URLs
The MariaDB project changed the location of the repositories, and the old URLs no longer work. Fix added for stable branches: Wrap version detection for docker module since it can fail for docker >= 6.0. Change-Id: Ia094cd1e29232c47d1fb26e00de569677bc5b8a1 (cherry picked from commit 94fad9f)
1 parent f0cf958 commit b3e7221

File tree

5 files changed

+23
-13
lines changed

5 files changed

+23
-13
lines changed

docker/base/mariadb-aarch64.repo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[mariadb]
2-
name = MariaDB
3-
baseurl = https://downloads.mariadb.com/MariaDB/mariadb-10.6/yum/centos8-aarch64
4-
module_hotfixes = 1
2+
name = MariaDB Server
3+
baseurl = https://dlm.mariadb.com/repo/mariadb-server/10.6/yum/rhel/8/aarch64
54
gpgcheck = 1
65
enabled = 0
6+
module_hotfixes = 1

docker/base/mariadb.repo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[mariadb]
2-
name = MariaDB
3-
baseurl = https://downloads.mariadb.com/MariaDB/mariadb-10.6/yum/centos8-amd64
4-
module_hotfixes = 1
2+
name = MariaDB Server
3+
baseurl = https://dlm.mariadb.com/repo/mariadb-server/10.6/yum/rhel/8/x86_64
54
gpgcheck = 1
65
enabled = 0
6+
module_hotfixes = 1

kolla/image/build.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,14 @@ def push_image(self, image):
307307

308308
# Since docker 3.0.0, the argument of 'insecure_registry' is removed.
309309
# To be compatible, set 'insecure_registry=True' for old releases.
310-
dc_running_ver = StrictVersion(docker.version)
311-
if dc_running_ver < StrictVersion('3.0.0'):
312-
kwargs['insecure_registry'] = True
310+
# NOTE(frickler): The version check will fail for docker >= 6.0, but
311+
# in that case we know that the workaround isn't needed.
312+
try:
313+
dc_running_ver = StrictVersion(docker.version)
314+
if dc_running_ver < StrictVersion('3.0.0'):
315+
kwargs['insecure_registry'] = True
316+
except TypeError:
317+
pass
313318

314319
for response in self.dc.push(image.canonical_name, **kwargs):
315320
if 'stream' in response:

kolla/template/repos.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ debian:
7272
component: "main"
7373
gpg_key: "elasticsearch.asc"
7474
mariadb:
75-
url: "http://downloads.mariadb.com/MariaDB/mariadb-10.6/repo/debian"
75+
url: "https://dlm.mariadb.com/repo/mariadb-server/10.6/repo/debian"
7676
suite: "bullseye"
7777
component: "main"
7878
gpg_key: "mariadb.gpg"
@@ -124,7 +124,7 @@ debian-aarch64:
124124
component: "main"
125125
gpg_key: "elasticsearch.asc"
126126
mariadb:
127-
url: "http://downloads.mariadb.com/MariaDB/mariadb-10.6/repo/debian"
127+
url: "https://dlm.mariadb.com/repo/mariadb-server/10.6/repo/debian"
128128
suite: "bullseye"
129129
component: "main"
130130
gpg_key: "mariadb.gpg"
@@ -181,7 +181,7 @@ ubuntu:
181181
component: "main"
182182
gpg_key: "elasticsearch.asc"
183183
mariadb:
184-
url: "http://downloads.mariadb.com/MariaDB/mariadb-10.6/repo/ubuntu"
184+
url: "https://dlm.mariadb.com/repo/mariadb-server/10.6/repo/ubuntu"
185185
suite: "focal"
186186
component: "main"
187187
gpg_key: "mariadb.gpg"
@@ -233,7 +233,7 @@ ubuntu-aarch64:
233233
component: "main"
234234
gpg_key: "elasticsearch.asc"
235235
mariadb:
236-
url: "http://downloads.mariadb.com/MariaDB/mariadb-10.6/repo/ubuntu"
236+
url: "https://dlm.mariadb.com/repo/mariadb-server/10.6/repo/ubuntu"
237237
suite: "focal"
238238
component: "main"
239239
gpg_key: "mariadb.gpg"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes problems when running with docker-py >=6.
5+
`LP#1988121 <https://launchpad.net/bugs/1988121>`__

0 commit comments

Comments
 (0)