Skip to content

Commit bf5193d

Browse files
authored
Merge pull request #464 from stackhpc/upstream/2025.1-2025-08-25
Synchronise 2025.1 with upstream
2 parents f8f80e3 + 94caafc commit bf5193d

File tree

5 files changed

+18
-12
lines changed

5 files changed

+18
-12
lines changed

ansible/roles/dnf/templates/epel.repo.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ name=Extra Packages for Enterprise Linux $releasever - $basearch
33
baseurl=http://{{ dnf_epel_mirror_host }}/{{ dnf_epel_mirror_directory }}/$releasever/Everything/$basearch
44
enabled=1
55
gpgcheck=1
6-
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
6+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-{{ ansible_facts.distribution_major_version }}
77
fastestmirror=0
88

99
[epel-debuginfo]
1010
name=Extra Packages for Enterprise Linux $releasever - $basearch - Debug
1111
baseurl=http://{{ dnf_epel_mirror_host }}/{{ dnf_epel_mirror_directory }}/$releasever/Everything/$basearch/debug
1212
enabled=0
13-
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
13+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-{{ ansible_facts.distribution_major_version }}
1414
gpgcheck=1
1515
fastestmirror=0
1616

1717
[epel-source]
1818
name=Extra Packages for Enterprise Linux $releasever - $basearch - Source
1919
baseurl=http://{{ dnf_epel_mirror_host }}/{{ dnf_epel_mirror_directory }}/$releasever/Everything/SRPMS
2020
enabled=0
21-
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
21+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-{{ ansible_facts.distribution_major_version }}
2222
gpgcheck=1
2323
fastestmirror=0

playbooks/kayobe-overcloud-host-configure-base/overrides.yml.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ apt_repositories:
146146
suites: noble-security
147147
components: main universe
148148
# Treasuredata repository.
149-
- url: http://packages.treasuredata.com/5/ubuntu/noble/
149+
- url: https://packages.treasuredata.com/lts/5/ubuntu/noble
150150
components: contrib
151151
signed_by: td-agent.asc
152152
apt_preferences:
@@ -178,8 +178,8 @@ dnf_epel_mirror_host: "{{ zuul_site_mirror_fqdn }}"
178178
dnf_epel_mirror_directory: 'epel'
179179
# Configure a custom DNF repository.
180180
dnf_custom_repos:
181-
td-agent:
182-
baseurl: http://packages.treasuredata.com/4/redhat/$releasever/$basearch
181+
fluent-package:
182+
baseurl: https://packages.treasuredata.com/lts/5/redhat/$releasever/$basearch
183183
gpgkey: https://packages.treasuredata.com/GPG-KEY-td-agent
184184
gpgcheck: yes
185185
# Install EPEL local mirror.

playbooks/kayobe-overcloud-host-configure-base/tests/test_overcloud_host_configure.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ def test_apt_preferences(host):
229229
@pytest.mark.skipif(not _is_apt(), reason="Apt only supported on Ubuntu")
230230
def test_apt_custom_package_repository_is_available(host):
231231
with host.sudo():
232-
host.check_output("apt -y install td-agent")
233-
assert host.package("td-agent").is_installed
232+
host.check_output("apt -y install fluent-package")
233+
assert host.package("fluent-package").is_installed
234234

235235

236236
@pytest.mark.skipif(not _is_apt(), reason="Apt only supported on Ubuntu")
@@ -246,7 +246,7 @@ def test_apt_auth(host):
246246

247247
@pytest.mark.parametrize('repo', ["appstream", "baseos", "extras", "epel"])
248248
@pytest.mark.skipif(not _is_dnf_mirror(),
249-
reason="DNF OpenDev mirror only for CentOS 8")
249+
reason="DNF OpenDev mirror only for CentOS Stream 9")
250250
def test_dnf_local_package_mirrors(host, repo):
251251
# Depends on SITE_MIRROR_FQDN environment variable.
252252
assert os.getenv('SITE_MIRROR_FQDN')
@@ -261,8 +261,8 @@ def test_dnf_local_package_mirrors(host, repo):
261261
@pytest.mark.skipif(not _is_dnf(), reason="DNF only supported on CentOS/Rocky")
262262
def test_dnf_custom_package_repository_is_available(host):
263263
with host.sudo():
264-
host.check_output("dnf -y install td-agent")
265-
assert host.package("td-agent").is_installed
264+
host.check_output("dnf -y install fluent-package")
265+
assert host.package("fluent-package").is_installed
266266

267267

268268
@pytest.mark.skipif(not _is_dnf(), reason="DNF only supported on CentOS/Rocky")
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes wrong name of ``gpgkey`` used for EPEL repositories when
5+
``dnf_use_local_mirror`` is enabled.
6+
`LP#2119921 <https://bugs.launchpad.net/kayobe/+bug/2119921>`__

zuul.d/project.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
- kayobe-seed-rocky9-podman
3030
- kayobe-seed-ubuntu-noble
3131
- kayobe-seed-ubuntu-noble-podman
32-
- kayobe-seed-images-rocky9
3332
- kayobe-seed-upgrade-rocky9
3433
- kayobe-seed-upgrade-ubuntu-noble
3534
- kayobe-seed-upgrade-slurp-rocky9
@@ -76,6 +75,7 @@
7675
- kayobe-overcloud-centos9s
7776
- kayobe-overcloud-host-configure-centos9s
7877
- kayobe-seed-images-centos9s
78+
- kayobe-seed-images-rocky9
7979
- kayobe-seed-images-rocky9-podman
8080
- kayobe-seed-images-ubuntu-noble
8181
- kayobe-seed-images-ubuntu-noble-podman

0 commit comments

Comments
 (0)