diff --git a/docker/base/Dockerfile.j2 b/docker/base/Dockerfile.j2 index ef5c161052..c854f4cdf8 100644 --- a/docker/base/Dockerfile.j2 +++ b/docker/base/Dockerfile.j2 @@ -235,9 +235,7 @@ RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 ] %} # FIXME(mnasiadka): Replace with CentOS Storage SIG packages when avail {% else %} -COPY ceph_master.repo /etc/yum.repos.d/ -RUN export CEPH_MASTER_REPO=$(curl -s https://shaman.ceph.com/api/search/\?status\=ready\&project\=ceph\&ref\=master\&flavor\=default\&distros\=centos/8\&sha1\=\latest | awk -F'{|: |,|"|}' '{for(i=1;i<=NF;i++) {gsub(" ",""); if($i == "url") {print $(i+2)}}}') \ - && sed -i "s|CHACRA_URL|${CEPH_MASTER_REPO}|g" /etc/yum.repos.d/ceph_master.repo +COPY ceph.repo /etc/yum.repos.d/ {% endif %} {% if distro_package_manager == 'dnf' %} @@ -255,23 +253,14 @@ RUN export CEPH_MASTER_REPO=$(curl -s https://shaman.ceph.com/api/search/\?statu {% endif %} {% set base_centos_yum_repos_to_disable = [ + 'centos-ceph-nautilus', + 'centos-nfs-ganesha28', 'influxdb', ] %} -# FIXME(mgoddard): Not available for CentOS 8 yet. {% if distro_package_manager == 'yum' %} {% set base_centos_yum_repos_to_disable = base_centos_yum_repos_to_disable + [ - 'centos-ceph-nautilus', - 'centos-nfs-ganesha28', 'centos-qemu-ev', ] %} -{% else %} - # FIXME(mgoddard): Remove when CentOS Storage SIG repo is available for CentOS 8 - {% set base_centos_yum_repos_to_disable = base_centos_yum_repos_to_disable + [ - 'ceph', - 'ceph-noarch', - 'ceph-el8', - 'ceph-lab-extras', - ] %} {% endif %} RUN {{ macros.install_packages(base_centos_yum_repo_packages | customizable("centos_yum_repo_packages"), chain=True, clean=False) }} \ diff --git a/docker/base/ceph.repo b/docker/base/ceph.repo new file mode 100644 index 0000000000..dd0be54300 --- /dev/null +++ b/docker/base/ceph.repo @@ -0,0 +1,13 @@ +[centos-ceph-nautilus] +name=Ceph packages for $basearch +baseurl=https://trunk.rdoproject.org/centos8-master/deps/storage/storage8-ceph-nautilus/$basearch/ +enabled=0 +gpgcheck=0 +type=rpm-md + +[centos-nfs-ganesha28] +name=Ganesha packages for $basearch +baseurl=https://trunk.rdoproject.org/centos8-master/deps/storage/storage8-nfsganesha-28/$basearch/ +enabled=0 +gpgcheck=0 +type=rpm-md diff --git a/docker/base/ceph_master.repo b/docker/base/ceph_master.repo deleted file mode 100644 index b551e5cf5b..0000000000 --- a/docker/base/ceph_master.repo +++ /dev/null @@ -1,32 +0,0 @@ -[ceph] -name=Ceph packages for $basearch -baseurl=CHACRA_URL/$basearch -enabled=0 -gpgcheck=0 -type=rpm-md -gpgkey=https://download.ceph.com/keys/autobuild.asc - -[ceph-noarch] -name=Ceph noarch packages -baseurl=CHACRA_URL/noarch -enabled=0 -gpgcheck=0 -type=rpm-md -gpgkey=https://download.ceph.com/keys/autobuild.asc - -[ceph-el8] -name=Copr repo for ceph-el8 owned by ktdreyer -baseurl=https://copr-be.cloud.fedoraproject.org/results/ktdreyer/ceph-el8/epel-8-$basearch/ -type=rpm-md -skip_if_unavailable=True -gpgcheck=1 -gpgkey=https://copr-be.cloud.fedoraproject.org/results/ktdreyer/ceph-el8/pubkey.gpg -repo_gpgcheck=0 -enabled=0 -enabled_metadata=1 - -[ceph-lab-extras] -name=ceph-lab-extras -baseurl=http://apt-mirror.front.sepia.ceph.com/lab-extras/8/ -enabled=0 -gpgcheck=0 diff --git a/docker/cinder/cinder-base/Dockerfile.j2 b/docker/cinder/cinder-base/Dockerfile.j2 index 6e852f95d4..6dc63b36ca 100644 --- a/docker/cinder/cinder-base/Dockerfile.j2 +++ b/docker/cinder/cinder-base/Dockerfile.j2 @@ -9,12 +9,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {{ macros.configure_user(name='cinder') }} -# FIXME(mnasiadka): Remove when CentOS Storage SIG repo is available for CentOS 8 -{% if distro_package_manager == 'dnf' %} - {{ macros.enable_extra_repos(['ceph', 'ceph-noarch', 'ceph-el8', 'ceph-lab-extras']) }} -{% else %} - {{ macros.enable_extra_repos(['ceph']) }} -{% endif %} +{{ macros.enable_extra_repos(['ceph']) }} {% if install_type == 'binary' %} {% if base_package_type == 'rpm' %} diff --git a/docker/glance/glance-base/Dockerfile.j2 b/docker/glance/glance-base/Dockerfile.j2 index 37020c7a33..f63e899361 100644 --- a/docker/glance/glance-base/Dockerfile.j2 +++ b/docker/glance/glance-base/Dockerfile.j2 @@ -9,12 +9,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {{ macros.configure_user(name='glance') }} -# FIXME(mnasiadka): Remove when CentOS Storage SIG repo is available for CentOS 8 -{% if distro_package_manager == 'dnf' %} - {{ macros.enable_extra_repos(['ceph', 'ceph-noarch', 'ceph-el8', 'ceph-lab-extras']) }} -{% else %} - {{ macros.enable_extra_repos(['ceph']) }} -{% endif %} +{{ macros.enable_extra_repos(['ceph']) }} {% if install_type == 'binary' %} {% if base_package_type == 'rpm' %} diff --git a/docker/gnocchi/gnocchi-base/Dockerfile.j2 b/docker/gnocchi/gnocchi-base/Dockerfile.j2 index 2348b7c5b3..487c70a359 100644 --- a/docker/gnocchi/gnocchi-base/Dockerfile.j2 +++ b/docker/gnocchi/gnocchi-base/Dockerfile.j2 @@ -9,12 +9,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {{ macros.configure_user(name='gnocchi') }} -# FIXME(mnasiadka): Remove when CentOS Storage SIG repo is available for CentOS 8 -{% if distro_package_manager == 'dnf' %} - {{ macros.enable_extra_repos(['ceph', 'ceph-noarch', 'ceph-el8', 'ceph-lab-extras']) }} -{% else %} - {{ macros.enable_extra_repos(['ceph']) }} -{% endif %} +{{ macros.enable_extra_repos(['ceph']) }} {% if install_type == 'binary' %} diff --git a/docker/manila/manila-share/Dockerfile.j2 b/docker/manila/manila-share/Dockerfile.j2 index f3e016eff4..e087c79fdb 100644 --- a/docker/manila/manila-share/Dockerfile.j2 +++ b/docker/manila/manila-share/Dockerfile.j2 @@ -7,12 +7,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {% import "macros.j2" as macros with context %} -# FIXME(mnasiadka): Remove when CentOS Storage SIG repo is available for CentOS 8 -{% if distro_package_manager == 'dnf' %} - {{ macros.enable_extra_repos(['ceph', 'ceph-noarch', 'ceph-el8', 'ceph-lab-extras']) }} -{% else %} - {{ macros.enable_extra_repos(['ceph']) }} -{% endif %} +{{ macros.enable_extra_repos(['ceph']) }} {% if install_type == 'binary' %} {% if base_package_type == 'rpm' %} diff --git a/docker/nova/nova-compute/Dockerfile.j2 b/docker/nova/nova-compute/Dockerfile.j2 index d95f2f2b67..ec6157d336 100644 --- a/docker/nova/nova-compute/Dockerfile.j2 +++ b/docker/nova/nova-compute/Dockerfile.j2 @@ -7,12 +7,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {% import "macros.j2" as macros with context %} -# FIXME(mnasiadka): Remove when CentOS Storage SIG repo is available for CentOS 8 -{% if distro_package_manager == 'dnf' %} - {{ macros.enable_extra_repos(['ceph', 'ceph-noarch', 'ceph-el8', 'ceph-lab-extras']) }} -{% else %} - {{ macros.enable_extra_repos(['ceph']) }} -{% endif %} +{{ macros.enable_extra_repos(['ceph']) }} {% if install_type == 'binary' %} {% if base_package_type == 'rpm' %} diff --git a/docker/nova/nova-libvirt/Dockerfile.j2 b/docker/nova/nova-libvirt/Dockerfile.j2 index 0800856787..7b674cc3a0 100644 --- a/docker/nova/nova-libvirt/Dockerfile.j2 +++ b/docker/nova/nova-libvirt/Dockerfile.j2 @@ -9,12 +9,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {{ macros.configure_user(name='nova', groups='qemu') }} -# FIXME(mnasiadka): Remove when CentOS Storage SIG repo is available for CentOS 8 -{% if distro_package_manager == 'dnf' %} - {{ macros.enable_extra_repos(['ceph', 'ceph-noarch', 'ceph-el8', 'ceph-lab-extras']) }} -{% else %} - {{ macros.enable_extra_repos(['ceph']) }} -{% endif %} +{{ macros.enable_extra_repos(['ceph']) }} {% if base_package_type == 'rpm' %} diff --git a/docker/zun/zun-compute/Dockerfile.j2 b/docker/zun/zun-compute/Dockerfile.j2 index bb96149e18..cf67fb203a 100644 --- a/docker/zun/zun-compute/Dockerfile.j2 +++ b/docker/zun/zun-compute/Dockerfile.j2 @@ -7,12 +7,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {% import "macros.j2" as macros with context %} -# FIXME(mnasiadka): Remove when CentOS Storage SIG repo is available for CentOS 8 -{% if distro_package_manager == 'dnf' %} - {{ macros.enable_extra_repos(['ceph', 'ceph-noarch', 'ceph-el8', 'ceph-lab-extras']) }} -{% else %} - {{ macros.enable_extra_repos(['ceph']) }} -{% endif %} +{{ macros.enable_extra_repos(['ceph']) }} {% if install_type == 'binary' %} diff --git a/kolla/template/repos.yaml b/kolla/template/repos.yaml index 36981b4888..a1d39dc5ec 100644 --- a/kolla/template/repos.yaml +++ b/kolla/template/repos.yaml @@ -39,10 +39,8 @@ centos-ppc64le: # TODO(mnasiadka): Rework the repo list once Ceph Octopus is released centos8: - ceph: "ceph" - ceph-noarch: "ceph-noarch" - ceph-el8: "ceph-el8" - ceph-lab-extras: "ceph-lab-extras" + ceph: "centos-ceph-nautilus" + nfs-ganesha: "centos-nfs-ganesha28" epel: "epel" epel-modular: "epel-modular" grafana: "grafana"