Remove support for OracleLinux
We have agreed to remove support for Oracle Linux. http://lists.openstack.org/pipermail/openstack-discuss/2019-June/006896.html Change-Id: I961dfba1aeef2c509ecdaf376dfe6928926ffb39 Depends-On: https://review.opendev.org/682858
This commit is contained in:
parent
1c86301f28
commit
fa8e174be6
@ -1,9 +1,9 @@
|
|||||||
{% extends parent_template %}
|
{% extends parent_template %}
|
||||||
|
|
||||||
{% block opendaylight_install %}
|
{% block opendaylight_install %}
|
||||||
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
{% if base_package_type == 'rpm' %}
|
||||||
{% set opendaylight_packages = ['java-1.8.0-openjdk'] %}
|
{% set opendaylight_packages = ['java-1.8.0-openjdk'] %}
|
||||||
{% elif base_distro in ['ubuntu', 'debian'] %}
|
{% elif base_package_type == 'deb' %}
|
||||||
{% set opendaylight_packages = ['openjdk-8-jre'] %}
|
{% set opendaylight_packages = ['openjdk-8-jre'] %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
# install ovs from source
|
# install ovs from source
|
||||||
|
|
||||||
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
{% if base_package_type == 'rpm' %}
|
||||||
{% set ovs_dpdk_packages = [
|
{% set ovs_dpdk_packages = [
|
||||||
'kernel-devel-$(uname -r)',
|
'kernel-devel-$(uname -r)',
|
||||||
'redhat-lsb-core',
|
'redhat-lsb-core',
|
||||||
@ -22,7 +22,7 @@
|
|||||||
'crudini'
|
'crudini'
|
||||||
] %}
|
] %}
|
||||||
|
|
||||||
{% elif base_distro in [ 'debian', 'ubuntu' ] %}
|
{% elif base_package_type == 'deb' %}
|
||||||
|
|
||||||
{% set ovs_dpdk_packages = [
|
{% set ovs_dpdk_packages = [
|
||||||
'linux-headers-$(uname -r)',
|
'linux-headers-$(uname -r)',
|
||||||
@ -46,7 +46,7 @@
|
|||||||
|
|
||||||
{{ macros.install_packages(ovs_dpdk_packages | customizable("packages")) }}
|
{{ macros.install_packages(ovs_dpdk_packages | customizable("packages")) }}
|
||||||
|
|
||||||
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
{% if base_package_type == 'rpm' %}
|
||||||
RUN mkdir -p /lib/modules/$(uname -r) \
|
RUN mkdir -p /lib/modules/$(uname -r) \
|
||||||
&& ln -s /usr/src/kernels/$(uname -r) /lib/modules/$(uname -r)/build
|
&& ln -s /usr/src/kernels/$(uname -r) /lib/modules/$(uname -r)/build
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -71,7 +71,6 @@ There are following distros available for building images:
|
|||||||
|
|
||||||
- centos
|
- centos
|
||||||
- debian
|
- debian
|
||||||
- oraclelinux
|
|
||||||
- rhel
|
- rhel
|
||||||
- ubuntu
|
- ubuntu
|
||||||
|
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
OVS-DPDK Source build
|
OVS-DPDK Source build
|
||||||
=====================
|
=====================
|
||||||
|
|
||||||
CentOS and Oracle Linux currently do not provide packages
|
CentOS currently does not provide packages for ovs with dpdk.
|
||||||
for ovs with dpdk.
|
|
||||||
The Ubuntu packages do not support UIO based drivers.
|
The Ubuntu packages do not support UIO based drivers.
|
||||||
To use the uio_pci_generic driver on Ubuntu a source build is required.
|
To use the uio_pci_generic driver on Ubuntu a source build is required.
|
||||||
|
|
||||||
|
@ -45,15 +45,6 @@ RUN CURRENT_DISTRO_RELEASE=$(awk '{match($0, /[0-9]+/,version)}END{print version
|
|||||||
|
|
||||||
{% block base_yum_conf %}
|
{% block base_yum_conf %}
|
||||||
|
|
||||||
{% if base_distro in ['oraclelinux'] %}
|
|
||||||
{% set centos_contentdir = 'centos' %}
|
|
||||||
|
|
||||||
{% if base_arch in ['aarch64', 'ppc64le'] %}
|
|
||||||
{% set centos_contentdir = 'altarch' %}
|
|
||||||
{% endif %}
|
|
||||||
RUN echo {{ centos_contentdir }} >> /etc/yum/vars/contentdir
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if distro_package_manager == 'dnf' %}
|
{% if distro_package_manager == 'dnf' %}
|
||||||
COPY dnf.conf /etc/dnf/dnf.conf
|
COPY dnf.conf /etc/dnf/dnf.conf
|
||||||
{% else %}
|
{% else %}
|
||||||
@ -200,31 +191,6 @@ RUN yum-config-manager --enable rhel-7-server-optional-rpms \
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{# Endif for base_distro RHEL #}
|
{# Endif for base_distro RHEL #}
|
||||||
|
|
||||||
{% if base_distro == 'oraclelinux' %}
|
|
||||||
|
|
||||||
{% block base_oraclelinux_package_installation %}
|
|
||||||
COPY oraclelinux-extras.repo /etc/yum.repos.d/oraclelinux-extras.repo
|
|
||||||
RUN {{ macros.install_packages( ['tar', 'yum-utils', 'https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm' ], chain=True, clean=False) }} \
|
|
||||||
&& rpm -Uvh --nodeps \
|
|
||||||
http://mirror.centos.org/centos-7/7/extras/x86_64/Packages/centos-release-nfs-ganesha28-1.0-2.el7.centos.noarch.rpm \
|
|
||||||
http://mirror.centos.org/centos-7/7/extras/x86_64/Packages/centos-release-ceph-nautilus-1.2-2.el7.centos.noarch.rpm \
|
|
||||||
http://mirror.centos.org/centos-7/7/extras/x86_64/Packages/centos-release-opstools-1-8.el7.noarch.rpm \
|
|
||||||
http://mirror.centos.org/centos-7/7/extras/x86_64/Packages/centos-release-qemu-ev-1.0-3.el7.centos.noarch.rpm \
|
|
||||||
http://mirror.centos.org/centos-7/7/extras/x86_64/Packages/centos-release-virt-common-1-1.el7.centos.noarch.rpm \
|
|
||||||
http://mirror.centos.org/centos-7/7/extras/x86_64/Packages/centos-release-storage-common-2-2.el7.centos.noarch.rpm \
|
|
||||||
&& sed -i 's/\$releasever/7/g' /etc/yum.repos.d/CentOS-*.repo \
|
|
||||||
&& rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 \
|
|
||||||
&& rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-OpsTools \
|
|
||||||
&& rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Storage \
|
|
||||||
&& rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Virtualization \
|
|
||||||
&& yum-config-manager --enable ol7_optional_latest ol7_addons \
|
|
||||||
&& {{ macros.install_packages( ['yum-plugin-priorities' ], chain=True, clean=False) }} \
|
|
||||||
&& {{ macros.rpm_security_update(clean_package_cache) }}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
{# Endif for base_distro oraclelinux #}
|
|
||||||
|
|
||||||
#### END REPO ENABLEMENT
|
#### END REPO ENABLEMENT
|
||||||
|
|
||||||
{# We are back to the basic if conditional here which is:
|
{# We are back to the basic if conditional here which is:
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
[extras]
|
|
||||||
name=CentOS-$releasever - Extras
|
|
||||||
mirrorlist=http://mirrorlist.centos.org/?release=7&arch=$basearch&repo=extras&infra=$infra
|
|
||||||
#baseurl=http://mirror.centos.org/centos/7/extras/$basearch/
|
|
||||||
gpgcheck=1
|
|
||||||
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-7
|
|
@ -48,7 +48,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
|
|||||||
'lvm2',
|
'lvm2',
|
||||||
'cryptsetup',
|
'cryptsetup',
|
||||||
] %}
|
] %}
|
||||||
{% if base_distro in ['centos', 'oraclelinux'] %}
|
{% if base_distro in ['centos'] %}
|
||||||
{% set cinder_base_packages = cinder_base_packages + [
|
{% set cinder_base_packages = cinder_base_packages + [
|
||||||
'qemu-img-ev'
|
'qemu-img-ev'
|
||||||
] %}
|
] %}
|
||||||
|
@ -10,12 +10,12 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
&& /bin/false
|
&& /bin/false
|
||||||
|
|
||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
{% if base_package_type == 'rpm' %}
|
||||||
{% set cyborg_api_packages = [
|
{% set cyborg_api_packages = [
|
||||||
'mod_ssl',
|
'mod_ssl',
|
||||||
'mod_wsgi'
|
'mod_wsgi'
|
||||||
] %}
|
] %}
|
||||||
{% elif base_distro in ['debian', 'ubuntu'] %}
|
{% elif base_package_type == 'deb' %}
|
||||||
{% set cyborg_api_packages = [
|
{% set cyborg_api_packages = [
|
||||||
'apache2',
|
'apache2',
|
||||||
'libapache2-mod-wsgi'
|
'libapache2-mod-wsgi'
|
||||||
@ -26,11 +26,11 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
|
|
||||||
{{ macros.install_packages(cyborg_api_packages | customizable("packages")) }}
|
{{ macros.install_packages(cyborg_api_packages | customizable("packages")) }}
|
||||||
|
|
||||||
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
{% if base_package_type == 'rpm' %}
|
||||||
RUN sed -i -r 's,^(Listen 80),#\1,' /etc/httpd/conf/httpd.conf \
|
RUN sed -i -r 's,^(Listen 80),#\1,' /etc/httpd/conf/httpd.conf \
|
||||||
&& sed -i -r 's,^(Listen 443),#\1,' /etc/httpd/conf.d/ssl.conf
|
&& sed -i -r 's,^(Listen 443),#\1,' /etc/httpd/conf.d/ssl.conf
|
||||||
|
|
||||||
{% elif base_distro in ['debian', 'ubuntu'] %}
|
{% elif base_package_type == 'deb' %}
|
||||||
RUN echo > /etc/apache2/ports.conf
|
RUN echo > /etc/apache2/ports.conf
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -5,7 +5,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
|
|||||||
|
|
||||||
{% import "macros.j2" as macros with context %}
|
{% import "macros.j2" as macros with context %}
|
||||||
|
|
||||||
{% if base_distro in ['centos', 'oraclelinux'] %}
|
{% if base_distro in ['centos'] %}
|
||||||
{% set glance_api_packages = ['qemu-img-ev'] %}
|
{% set glance_api_packages = ['qemu-img-ev'] %}
|
||||||
{% elif base_distro == 'rhel' %}
|
{% elif base_distro == 'rhel' %}
|
||||||
{% set glance_api_packages = ['qemu-img'] %}
|
{% set glance_api_packages = ['qemu-img'] %}
|
||||||
|
@ -47,7 +47,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
|
|||||||
'systemd-python'
|
'systemd-python'
|
||||||
] %}
|
] %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if base_distro in ['centos', 'oraclelinux'] %}
|
{% if base_distro in ['centos'] %}
|
||||||
{% set ironic_conductor_packages = ironic_conductor_packages + [
|
{% set ironic_conductor_packages = ironic_conductor_packages + [
|
||||||
'qemu-img-ev'
|
'qemu-img-ev'
|
||||||
] %}
|
] %}
|
||||||
|
@ -15,7 +15,7 @@ function prepare_pxe {
|
|||||||
function prepare_ipxe {
|
function prepare_ipxe {
|
||||||
if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then
|
if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then
|
||||||
cp /usr/lib/ipxe/{undionly.kpxe,ipxe.efi} /tftpboot
|
cp /usr/lib/ipxe/{undionly.kpxe,ipxe.efi} /tftpboot
|
||||||
elif [[ "${KOLLA_BASE_DISTRO}" =~ centos|oraclelinux|rhel ]]; then
|
elif [[ "${KOLLA_BASE_DISTRO}" =~ centos|rhel ]]; then
|
||||||
cp /usr/share/ipxe/{undionly.kpxe,ipxe.efi} /tftpboot
|
cp /usr/share/ipxe/{undionly.kpxe,ipxe.efi} /tftpboot
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -35,7 +35,7 @@ if [[ "${ironic_arch}" =~ aarch64 ]]; then
|
|||||||
|
|
||||||
if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then
|
if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then
|
||||||
grub-mkimage -v -o /tftpboot/grubaa64.efi -O arm64-efi -p "grub" $modules
|
grub-mkimage -v -o /tftpboot/grubaa64.efi -O arm64-efi -p "grub" $modules
|
||||||
elif [[ "${KOLLA_BASE_DISTRO}" =~ centos|oraclelinux|rhel ]]; then
|
elif [[ "${KOLLA_BASE_DISTRO}" =~ centos|rhel ]]; then
|
||||||
grub2-mkimage -v -o /tftpboot/grubaa64.efi -O arm64-efi -p "EFI/centos" $modules
|
grub2-mkimage -v -o /tftpboot/grubaa64.efi -O arm64-efi -p "EFI/centos" $modules
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -10,8 +10,7 @@ COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
|||||||
RUN chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_keystone_bootstrap
|
RUN chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_keystone_bootstrap
|
||||||
|
|
||||||
{% if install_type == 'binary' %}
|
{% if install_type == 'binary' %}
|
||||||
# TODO: oraclelinux fails to install these packages. Should be added when this is fixed.
|
{% if base_package_type == 'rpm' %}
|
||||||
{% if base_package_type == 'rpm' and base_distro != 'oraclelinux' %}
|
|
||||||
{% set keystone_packages = [
|
{% set keystone_packages = [
|
||||||
'mod_auth_gssapi'
|
'mod_auth_gssapi'
|
||||||
] %}
|
] %}
|
||||||
@ -33,7 +32,7 @@ RUN chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_keystone_bo
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{{ macros.install_packages(keystone_packages | customizable("packages")) }}
|
{{ macros.install_packages(keystone_packages | customizable("packages")) }}
|
||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
{% if base_package_type == 'rpm' and base_distro != 'oraclelinux' %}
|
{% if base_package_type == 'rpm' %}
|
||||||
{% set keystone_packages = [
|
{% set keystone_packages = [
|
||||||
'mod_auth_gssapi',
|
'mod_auth_gssapi',
|
||||||
] %}
|
] %}
|
||||||
|
@ -108,7 +108,7 @@ RUN apt-get update \
|
|||||||
{% macro install_fluent_plugins(plugins, chain=False) -%}
|
{% macro install_fluent_plugins(plugins, chain=False) -%}
|
||||||
{% if plugins is defined and plugins|length > 0 -%}
|
{% if plugins is defined and plugins|length > 0 -%}
|
||||||
{% if not chain -%} RUN {% endif -%}
|
{% if not chain -%} RUN {% endif -%}
|
||||||
{%- if base_arch == 'x86_64' and base_distro in ['centos', 'oraclelinux', 'rhel', 'ubuntu'] -%}
|
{%- if base_arch == 'x86_64' and base_distro in ['centos', 'rhel', 'ubuntu'] -%}
|
||||||
ulimit -n 65536 && td-agent-gem install {{ plugins | join(' ') }}
|
ulimit -n 65536 && td-agent-gem install {{ plugins | join(' ') }}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
ulimit -n 65536 && gem install --minimal-deps {{ plugins | join(' ') }}
|
ulimit -n 65536 && gem install --minimal-deps {{ plugins | join(' ') }}
|
||||||
|
@ -14,7 +14,7 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
|
|
||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
{% if base_package_type == 'rpm' %}
|
||||||
|
|
||||||
{% set masakari_monitors_packages = [
|
{% set masakari_monitors_packages = [
|
||||||
'libvirt-devel',
|
'libvirt-devel',
|
||||||
@ -22,7 +22,7 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|||||||
'tcpdump',
|
'tcpdump',
|
||||||
] %}
|
] %}
|
||||||
|
|
||||||
{% elif base_distro in ['debian', 'ubuntu'] %}
|
{% elif base_package_type == 'deb' %}
|
||||||
|
|
||||||
{% set masakari_monitors_packages = [
|
{% set masakari_monitors_packages = [
|
||||||
'libvirt-dev',
|
'libvirt-dev',
|
||||||
|
@ -16,13 +16,13 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
|
|||||||
] %}
|
] %}
|
||||||
|
|
||||||
{% if base_arch == 'x86_64' %}
|
{% if base_arch == 'x86_64' %}
|
||||||
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] and base_distro_tag.startswith('7') %}
|
{% if base_distro_tag.startswith('7') %}
|
||||||
{% set nova_base_packages = nova_base_packages + [
|
{% set nova_base_packages = nova_base_packages + [
|
||||||
'OVMF'
|
'OVMF'
|
||||||
] %}
|
] %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif base_arch == 'aarch64' %}
|
{% elif base_arch == 'aarch64' %}
|
||||||
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] and base_distro_tag.startswith('7') %}
|
{% if base_distro_tag.startswith('7') %}
|
||||||
{% set nova_base_packages = nova_base_packages + [
|
{% set nova_base_packages = nova_base_packages + [
|
||||||
'AAVMF'
|
'AAVMF'
|
||||||
] %}
|
] %}
|
||||||
@ -61,13 +61,13 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
|
|||||||
'openvswitch'
|
'openvswitch'
|
||||||
] %}
|
] %}
|
||||||
{% if base_arch == 'x86_64' %}
|
{% if base_arch == 'x86_64' %}
|
||||||
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] and base_distro_tag.startswith('7') %}
|
{% if base_distro_tag.startswith('7') %}
|
||||||
{% set nova_base_packages = nova_base_packages + [
|
{% set nova_base_packages = nova_base_packages + [
|
||||||
'OVMF'
|
'OVMF'
|
||||||
] %}
|
] %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif base_arch == 'aarch64' %}
|
{% elif base_arch == 'aarch64' %}
|
||||||
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] and base_distro_tag.startswith('7') %}
|
{% if base_distro_tag.startswith('7') %}
|
||||||
{% set nova_base_packages = nova_base_packages + [
|
{% set nova_base_packages = nova_base_packages + [
|
||||||
'AAVMF'
|
'AAVMF'
|
||||||
] %}
|
] %}
|
||||||
|
@ -21,7 +21,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
|
|||||||
'openvswitch',
|
'openvswitch',
|
||||||
'trousers'
|
'trousers'
|
||||||
] %}
|
] %}
|
||||||
{% if base_distro in ['centos', 'oraclelinux'] %}
|
{% if base_distro in ['centos'] %}
|
||||||
{% set nova_libvirt_packages = nova_libvirt_packages + [
|
{% set nova_libvirt_packages = nova_libvirt_packages + [
|
||||||
'qemu-kvm-ev'
|
'qemu-kvm-ev'
|
||||||
] %}
|
] %}
|
||||||
|
@ -9,7 +9,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
|
|||||||
{% if base_package_type == 'rpm' %}
|
{% if base_package_type == 'rpm' %}
|
||||||
|
|
||||||
#TODO(sean-k-mooney) create repo via open suse build system to package
|
#TODO(sean-k-mooney) create repo via open suse build system to package
|
||||||
# for centos/oraclelinux/rhel distros.
|
# for centos/rhel distros.
|
||||||
|
|
||||||
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
||||||
&& /bin/false
|
&& /bin/false
|
||||||
|
@ -31,13 +31,13 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
|
|||||||
|
|
||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
{% if base_package_type == 'rpm' %}
|
||||||
|
|
||||||
{% set placement_base_packages = [
|
{% set placement_base_packages = [
|
||||||
'mariadb',
|
'mariadb',
|
||||||
] %}
|
] %}
|
||||||
|
|
||||||
{% elif base_distro in ['debian', 'ubuntu'] %}
|
{% elif base_package_type == 'deb' %}
|
||||||
|
|
||||||
{% set placement_base_packages = [
|
{% set placement_base_packages = [
|
||||||
'mariadb-client',
|
'mariadb-client',
|
||||||
|
@ -59,7 +59,7 @@ RUN echo '{{ image_name }} not yet available for {{ base_distro }}' \
|
|||||||
|
|
||||||
# Sensu plugins are all using semantic versioning.
|
# Sensu plugins are all using semantic versioning.
|
||||||
# Let's cap them to the known major version that works with the ruby shipped on
|
# Let's cap them to the known major version that works with the ruby shipped on
|
||||||
# rhel/centos/oraclelinux (currently 2.0)
|
# rhel/centos (currently 2.0)
|
||||||
{% set sensu_plugins = [
|
{% set sensu_plugins = [
|
||||||
'ceph:"~>1"',
|
'ceph:"~>1"',
|
||||||
'cpu-checks:"~>1"',
|
'cpu-checks:"~>1"',
|
||||||
|
@ -25,7 +25,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
|
|||||||
|
|
||||||
# Sensu plugins are all using semantic versioning.
|
# Sensu plugins are all using semantic versioning.
|
||||||
# Let's cap them to the known major version that works with the ruby shipped on
|
# Let's cap them to the known major version that works with the ruby shipped on
|
||||||
# rhel/centos/oraclelinux (currently 2.0)
|
# rhel/centos (currently 2.0)
|
||||||
{% set sensu_plugins = [
|
{% set sensu_plugins = [
|
||||||
'mailer:"~>3"',
|
'mailer:"~>3"',
|
||||||
'slack:"~>3"'
|
'slack:"~>3"'
|
||||||
|
@ -19,19 +19,17 @@ from oslo_config import types
|
|||||||
from kolla.version import version_info as version
|
from kolla.version import version_info as version
|
||||||
|
|
||||||
|
|
||||||
BASE_OS_DISTRO = ['centos', 'rhel', 'ubuntu', 'oraclelinux', 'debian']
|
BASE_OS_DISTRO = ['centos', 'rhel', 'ubuntu', 'debian']
|
||||||
BASE_ARCH = ['x86_64', 'ppc64le', 'aarch64']
|
BASE_ARCH = ['x86_64', 'ppc64le', 'aarch64']
|
||||||
DEFAULT_BASE_TAGS = {
|
DEFAULT_BASE_TAGS = {
|
||||||
'centos': '7',
|
'centos': '7',
|
||||||
'rhel': '7',
|
'rhel': '7',
|
||||||
'oraclelinux': '7-slim',
|
|
||||||
'debian': 'buster',
|
'debian': 'buster',
|
||||||
'ubuntu': '18.04',
|
'ubuntu': '18.04',
|
||||||
}
|
}
|
||||||
DISTRO_RELEASE = {
|
DISTRO_RELEASE = {
|
||||||
'centos': '7',
|
'centos': '7',
|
||||||
'rhel': '7',
|
'rhel': '7',
|
||||||
'oraclelinux': '7',
|
|
||||||
'debian': 'buster',
|
'debian': 'buster',
|
||||||
'ubuntu': '18.04',
|
'ubuntu': '18.04',
|
||||||
}
|
}
|
||||||
|
@ -123,9 +123,6 @@ UNBUILDABLE_IMAGES = {
|
|||||||
'centos': {
|
'centos': {
|
||||||
"ovsdpdk",
|
"ovsdpdk",
|
||||||
},
|
},
|
||||||
'oraclelinux': {
|
|
||||||
"ovsdpdk",
|
|
||||||
},
|
|
||||||
'debian': {
|
'debian': {
|
||||||
"bifrost-base", # tries to install 'mysql-server' which is not in
|
"bifrost-base", # tries to install 'mysql-server' which is not in
|
||||||
# Debian 'buster'
|
# Debian 'buster'
|
||||||
@ -173,10 +170,6 @@ UNBUILDABLE_IMAGES = {
|
|||||||
"zaqar",
|
"zaqar",
|
||||||
},
|
},
|
||||||
|
|
||||||
'oraclelinux+source': {
|
|
||||||
"bifrost-base",
|
|
||||||
},
|
|
||||||
|
|
||||||
'ubuntu+binary': {
|
'ubuntu+binary': {
|
||||||
"cloudkitty-base",
|
"cloudkitty-base",
|
||||||
"congress-base",
|
"congress-base",
|
||||||
@ -681,7 +674,7 @@ class KollaWorker(object):
|
|||||||
conf.rpm_setup_config if repo_file is not None])
|
conf.rpm_setup_config if repo_file is not None])
|
||||||
self.rpm_setup = self.build_rpm_setup(rpm_setup_config)
|
self.rpm_setup = self.build_rpm_setup(rpm_setup_config)
|
||||||
|
|
||||||
rh_base = ['centos', 'oraclelinux', 'rhel']
|
rh_base = ['centos', 'rhel']
|
||||||
rh_type = ['source', 'binary', 'rdo', 'rhos']
|
rh_type = ['source', 'binary', 'rdo', 'rhos']
|
||||||
deb_base = ['ubuntu', 'debian']
|
deb_base = ['ubuntu', 'debian']
|
||||||
deb_type = ['source', 'binary']
|
deb_type = ['source', 'binary']
|
||||||
|
@ -283,7 +283,7 @@ class KollaWorkerTest(base.TestCase):
|
|||||||
self.mock_client = patcher.start()
|
self.mock_client = patcher.start()
|
||||||
|
|
||||||
def test_supported_base_type(self):
|
def test_supported_base_type(self):
|
||||||
rh_base = ['centos', 'oraclelinux', 'rhel']
|
rh_base = ['centos', 'rhel']
|
||||||
rh_type = ['source', 'binary', 'rdo', 'rhos']
|
rh_type = ['source', 'binary', 'rdo', 'rhos']
|
||||||
deb_base = ['ubuntu', 'debian']
|
deb_base = ['ubuntu', 'debian']
|
||||||
deb_type = ['source', 'binary']
|
deb_type = ['source', 'binary']
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
Removes support for building OracleLinux container images.
|
@ -30,7 +30,7 @@ parser.add_argument('-b', '--base',
|
|||||||
required=True)
|
required=True)
|
||||||
args = vars(parser.parse_args())
|
args = vars(parser.parse_args())
|
||||||
|
|
||||||
if args['base'] not in ['centos', 'rhel', 'oraclelinux']:
|
if args['base'] not in ['centos', 'rhel']:
|
||||||
print("Non rpm-based distros are not yet supported.")
|
print("Non rpm-based distros are not yet supported.")
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
|
@ -111,22 +111,6 @@ class BuildTestDebianSource(BuildTest, base.BaseTestCase):
|
|||||||
"--type", "source"])
|
"--type", "source"])
|
||||||
|
|
||||||
|
|
||||||
class BuildTestOracleLinuxBinary(BuildTest, base.BaseTestCase):
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
super(BuildTestOracleLinuxBinary, self).setUp()
|
|
||||||
self.build_args.extend(["--base", "oraclelinux",
|
|
||||||
"--type", "binary"])
|
|
||||||
|
|
||||||
|
|
||||||
class BuildTestOracleLinuxSource(BuildTest, base.BaseTestCase):
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
super(BuildTestOracleLinuxSource, self).setUp()
|
|
||||||
self.build_args.extend(["--base", "oraclelinux",
|
|
||||||
"--type", "source"])
|
|
||||||
|
|
||||||
|
|
||||||
class DeployTestCentosBinary(BuildTestCentosBinary):
|
class DeployTestCentosBinary(BuildTestCentosBinary):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
@ -141,20 +125,6 @@ class DeployTestCentosSource(BuildTestCentosSource):
|
|||||||
self.build_args.extend(["--profile", "gate"])
|
self.build_args.extend(["--profile", "gate"])
|
||||||
|
|
||||||
|
|
||||||
class DeployTestOracleLinuxBinary(BuildTestOracleLinuxBinary):
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
super(DeployTestOracleLinuxBinary, self).setUp()
|
|
||||||
self.build_args.extend(["--profile", "gate"])
|
|
||||||
|
|
||||||
|
|
||||||
class DeployTestOracleLinuxSource(BuildTestOracleLinuxSource):
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
super(DeployTestOracleLinuxSource, self).setUp()
|
|
||||||
self.build_args.extend(["--profile", "gate"])
|
|
||||||
|
|
||||||
|
|
||||||
class DeployTestUbuntuBinary(BuildTestUbuntuBinary):
|
class DeployTestUbuntuBinary(BuildTestUbuntuBinary):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
@ -28,7 +28,7 @@ check_for_errors () {
|
|||||||
|
|
||||||
echo Looking for forbidden instructions in binary image templates
|
echo Looking for forbidden instructions in binary image templates
|
||||||
|
|
||||||
for distro in debian ubuntu centos rhel oraclelinux; do
|
for distro in debian ubuntu centos rhel; do
|
||||||
tmpdir=$(mktemp -d kolla-templates.XXXXXX --tmpdir)
|
tmpdir=$(mktemp -d kolla-templates.XXXXXX --tmpdir)
|
||||||
generate_templates
|
generate_templates
|
||||||
check_for_errors "gem .*install"
|
check_for_errors "gem .*install"
|
||||||
|
20
tox.ini
20
tox.ini
@ -135,26 +135,6 @@ commands =
|
|||||||
bash -c "if [ ! -d .stestr ]; then stestr init; fi"
|
bash -c "if [ ! -d .stestr ]; then stestr init; fi"
|
||||||
stestr run test_build.BuildTestDebianSource
|
stestr run test_build.BuildTestDebianSource
|
||||||
|
|
||||||
[testenv:build-oraclelinux-binary]
|
|
||||||
whitelist_externals = find
|
|
||||||
bash
|
|
||||||
setenv =
|
|
||||||
DOCKER_BUILD_TEST=1
|
|
||||||
commands =
|
|
||||||
find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete
|
|
||||||
bash -c "if [ ! -d .stestr ]; then stestr init; fi"
|
|
||||||
stestr run test_build.BuildTestOracleLinuxBinary
|
|
||||||
|
|
||||||
[testenv:build-oraclelinux-source]
|
|
||||||
whitelist_externals = find
|
|
||||||
bash
|
|
||||||
setenv =
|
|
||||||
DOCKER_BUILD_TEST=1
|
|
||||||
commands =
|
|
||||||
find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete
|
|
||||||
bash -c "if [ ! -d .stestr ]; then stestr init; fi"
|
|
||||||
stestr run test_build.BuildTestOracleLinuxSource
|
|
||||||
|
|
||||||
[testenv:genconfig]
|
[testenv:genconfig]
|
||||||
whitelist_externals = which
|
whitelist_externals = which
|
||||||
commands=
|
commands=
|
||||||
|
Loading…
x
Reference in New Issue
Block a user