Update Ceph repo name for dnf config-manager command
Since change I1bc19f8198da3f9ab2ae2a8864c3349b21b0249e we install the centos-release-ceph-reef package as a dependency, but some code was still expecting the quincy package. Change-Id: I8ebcf815d80f3bead25e0078d69b34e17ad013bd
This commit is contained in:
parent
d86cba116e
commit
33c988a6ce
@ -146,7 +146,7 @@ RUN rm -f /etc/rpm/macros.image-language-conf \
|
||||
# from delorean or rdo-release-* package
|
||||
# https://review.rdoproject.org/r/c/rdo-infra/ansible-role-dlrn/+/33241
|
||||
{% set base_centos_yum_repos_to_disable = [
|
||||
'centos-ceph-quincy',
|
||||
'centos-ceph-reef',
|
||||
'centos-nfv-openvswitch',
|
||||
'centos-opstools',
|
||||
'centos-rabbitmq-38',
|
||||
|
@ -38,9 +38,9 @@ gpgcheck=1
|
||||
repo_gpgcheck=0
|
||||
enabled=0
|
||||
|
||||
[centos-ceph-quincy]
|
||||
name=(OpenDev mirror) CentOS-$stream - Ceph Quincy
|
||||
baseurl=http://MIRROR/centos-stream/SIGs/$stream/storage/$basearch/ceph-quincy/
|
||||
[centos-ceph-reef]
|
||||
name=(OpenDev mirror) CentOS-$stream - Ceph Reef
|
||||
baseurl=http://MIRROR/centos-stream/SIGs/$stream/storage/$basearch/ceph-reef/
|
||||
gpgcheck=1
|
||||
enabled=0
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Storage
|
||||
|
@ -1,6 +1,6 @@
|
||||
[centos-ceph-quincy]
|
||||
name=(OpenDev mirror) CentOS-$stream - Ceph Quincy
|
||||
baseurl=http://MIRROR/centos-stream/SIGs/$stream/storage/$basearch/ceph-quincy/
|
||||
[centos-ceph-reef]
|
||||
name=(OpenDev mirror) CentOS-$stream - Ceph Reef
|
||||
baseurl=http://MIRROR/centos-stream/SIGs/$stream/storage/$basearch/ceph-reef/
|
||||
gpgcheck=1
|
||||
enabled=0
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Storage
|
||||
|
@ -9,7 +9,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
|
||||
|
||||
{{ macros.configure_user(name='cinder') }}
|
||||
|
||||
{{ macros.enable_extra_repos(['ceph']) }}
|
||||
{{ macros.enable_extra_repos(['ceph', 'epel']) }}
|
||||
|
||||
{% if base_package_type == 'rpm' %}
|
||||
{% set cinder_base_packages = [
|
||||
|
@ -7,7 +7,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
|
||||
|
||||
{% import "macros.j2" as macros with context %}
|
||||
|
||||
{{ macros.enable_extra_repos(['ceph']) }}
|
||||
{{ macros.enable_extra_repos(['ceph', 'epel']) }}
|
||||
|
||||
{% if base_package_type == 'rpm' %}
|
||||
{% set manila_share_packages = [
|
||||
|
@ -7,7 +7,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
|
||||
|
||||
{% import "macros.j2" as macros with context %}
|
||||
|
||||
{{ macros.enable_extra_repos(['ceph', 'libvirt']) }}
|
||||
{{ macros.enable_extra_repos(['ceph', 'epel', 'libvirt']) }}
|
||||
|
||||
{% if base_package_type == 'rpm' %}
|
||||
|
||||
|
@ -9,7 +9,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
|
||||
|
||||
{{ macros.configure_user(name='nova', groups='qemu') }}
|
||||
|
||||
{{ macros.enable_extra_repos(['ceph', 'libvirt', 'openvswitch']) }}
|
||||
{{ macros.enable_extra_repos(['ceph', 'epel', 'libvirt', 'openvswitch']) }}
|
||||
|
||||
{% if base_package_type == 'rpm' %}
|
||||
|
||||
|
@ -7,7 +7,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
|
||||
|
||||
{% import "macros.j2" as macros with context %}
|
||||
|
||||
{{ macros.enable_extra_repos(['ceph']) }}
|
||||
{{ macros.enable_extra_repos(['ceph', 'epel']) }}
|
||||
|
||||
{% set zun_compute_packages = [
|
||||
'ceph-common',
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
centos:
|
||||
ceph: "centos-ceph-quincy"
|
||||
ceph: "centos-ceph-reef"
|
||||
crb: "crb"
|
||||
epel: "epel"
|
||||
erlang: "rabbitmq_rabbitmq-erlang"
|
||||
@ -18,7 +18,7 @@ centos:
|
||||
td-agent: "treasuredata"
|
||||
|
||||
centos-aarch64:
|
||||
ceph: "centos-ceph-quincy"
|
||||
ceph: "centos-ceph-reef"
|
||||
crb: "crb"
|
||||
epel: "epel"
|
||||
erlang: "copr-hrw-erlang-for-rabbitmq"
|
||||
@ -136,7 +136,7 @@ debian-aarch64:
|
||||
gpg_key: "treasuredata.asc"
|
||||
|
||||
rocky:
|
||||
ceph: "centos-ceph-quincy"
|
||||
ceph: "centos-ceph-reef"
|
||||
crb: "crb"
|
||||
epel: "epel"
|
||||
erlang: "rabbitmq_rabbitmq-erlang"
|
||||
@ -154,7 +154,7 @@ rocky:
|
||||
td-agent: "treasuredata"
|
||||
|
||||
rocky-aarch64:
|
||||
ceph: "centos-ceph-quincy"
|
||||
ceph: "centos-ceph-reef"
|
||||
crb: "crb"
|
||||
epel: "epel"
|
||||
erlang: "copr-hrw-erlang-for-rabbitmq"
|
||||
|
@ -55,7 +55,7 @@ class MethodsTest(base.TestCase):
|
||||
result = methods.handle_repos(template_vars, ['grafana', 'ceph'],
|
||||
'enable')
|
||||
expectCmd = 'RUN dnf config-manager --enable grafana '
|
||||
expectCmd += '--enable centos-ceph-quincy || true'
|
||||
expectCmd += '--enable centos-ceph-reef || true'
|
||||
self.assertEqual(expectCmd, result)
|
||||
|
||||
def test_enable_repos_debian(self):
|
||||
@ -167,7 +167,7 @@ class MethodsTest(base.TestCase):
|
||||
result = methods.handle_repos(template_vars, ['grafana', 'ceph'],
|
||||
'disable')
|
||||
expectCmd = 'RUN dnf config-manager --disable grafana '
|
||||
expectCmd += '--disable centos-ceph-quincy || true'
|
||||
expectCmd += '--disable centos-ceph-reef || true'
|
||||
self.assertEqual(expectCmd, result)
|
||||
|
||||
# NOTE(hrw): there is no disabling of repos for Debian/Ubuntu
|
||||
|
Loading…
Reference in New Issue
Block a user