diff options
| author | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2020-03-09 17:44:54 +0100 |
|---|---|---|
| committer | Mark Goddard <mark@stackhpc.com> | 2020-04-15 09:32:06 +0000 |
| commit | 53443c5c712f4ec23b859105e94bcd90abc27762 (patch) | |
| tree | 5bc6d8db4c65519e16d231b55f574e813e29da4b /docker/ironic | |
| parent | a176c6e080be2e71829e8ca5e8b330fdda70038a (diff) | |
| download | kolla-53443c5c712f4ec23b859105e94bcd90abc27762.tar.gz kolla-53443c5c712f4ec23b859105e94bcd90abc27762.zip | |
Remove support for CentOS 7
With the move to RHEL/CentOS 8 we no longer have Python 2 in our images
so there is no need for checking which Python version (2.x or 3.x) is
used inside of containers.
We also no longer have to support yum as a value for
distro_package_manager.
Partially-Implements: blueprint centos-rhel-8
Change-Id: Ie45cf3465fedddbde7856961527421883ba3d5c9
Diffstat (limited to 'docker/ironic')
| -rw-r--r-- | docker/ironic/ironic-api/Dockerfile.j2 | 14 | ||||
| -rw-r--r-- | docker/ironic/ironic-conductor/Dockerfile.j2 | 72 | ||||
| -rw-r--r-- | docker/ironic/ironic-pxe/Dockerfile.j2 | 8 |
3 files changed, 14 insertions, 80 deletions
diff --git a/docker/ironic/ironic-api/Dockerfile.j2 b/docker/ironic/ironic-api/Dockerfile.j2 index 35bde0c7a..f6634a3b4 100644 --- a/docker/ironic/ironic-api/Dockerfile.j2 +++ b/docker/ironic/ironic-api/Dockerfile.j2 @@ -12,13 +12,9 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {% set ironic_api_packages = [ 'httpd', 'mod_ssl', - 'openstack-ironic-api' + 'openstack-ironic-api', + 'python3-mod_wsgi', ] %} - {% if distro_python_version.startswith('3') %} - {% set ironic_api_packages = ironic_api_packages + ['python3-mod_wsgi'] %} - {% else %} - {% set ironic_api_packages = ironic_api_packages + ['mod_wsgi'] %} - {% endif %} {% elif base_package_type == 'deb' %} {% set ironic_api_packages = [ 'apache2', @@ -32,12 +28,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {% set ironic_api_packages = [ 'httpd', 'mod_ssl', + 'python3-mod_wsgi', ] %} - {% if distro_python_version.startswith('3') %} - {% set ironic_api_packages = ironic_api_packages + ['python3-mod_wsgi'] %} - {% else %} - {% set ironic_api_packages = ironic_api_packages + ['mod_wsgi'] %} - {% endif %} {% elif base_package_type == 'deb' %} {% set ironic_api_packages = [ 'apache2', diff --git a/docker/ironic/ironic-conductor/Dockerfile.j2 b/docker/ironic/ironic-conductor/Dockerfile.j2 index e8592e36d..5883f604f 100644 --- a/docker/ironic/ironic-conductor/Dockerfile.j2 +++ b/docker/ironic/ironic-conductor/Dockerfile.j2 @@ -7,11 +7,6 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {% import "macros.j2" as macros with context %} -{# NOTE(mgoddard): EPEL required for shellinabox package. Not provided by EPEL8 #} -{% if distro_package_manager == 'yum' %} -{{ macros.enable_extra_repos(['epel']) }} -{% endif %} - {% if install_type == 'binary' %} {% if base_package_type == 'rpm' %} # TODO(Jeffrey4l): no python-oneviewclient @@ -25,14 +20,6 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build 'openstack-ironic-staging-drivers', 'parted', 'psmisc', - 'util-linux', - 'xfsprogs' - ] %} - - # FIXME(mgoddard): Removed shellinabox which is not currently provided - # by EPEL8. - {% if distro_python_version.startswith('3') %} - {% set ironic_conductor_packages = ironic_conductor_packages + [ 'python3dist\(ansible\)', 'python3-dracclient', 'python3-ironic-inspector-client', @@ -40,35 +27,14 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build 'python3-pysnmp', 'python3-scciclient', 'python3-sushy', - 'python3-systemd' - ] %} - {% else %} - {% set ironic_conductor_packages = ironic_conductor_packages + [ - 'ansible', - 'pysnmp', - 'python-UcsSdk', - 'python-dracclient', - 'python-ironic-inspector-client', - 'python-proliantutils', - 'python-scciclient', - 'python-sushy', - 'python2-ImcSdk', - 'shellinabox', - 'systemd-python' + 'python3-systemd', + 'qemu-img', + 'util-linux', + 'xfsprogs' ] %} - {% endif %} - {% if distro_package_manager == 'dnf' or base_distro not in ['centos'] %} - {% set ironic_conductor_packages = ironic_conductor_packages + [ - 'qemu-img' - ] %} - {% else %} - {% set ironic_conductor_packages = ironic_conductor_packages + [ - 'qemu-img-ev' - ] %} - {% endif %} {% elif base_package_type == 'deb' %} - # TODO(jeffrey4l): no python-dracclient, python-oneviewclient, UcsSdk, - # ImcSdk package, python-sushy, ironic-staging-drivers + # TODO(jeffrey4l): no python-dracclient, python-oneviewclient, + # python-sushy, ironic-staging-drivers {% set ironic_conductor_packages = [ 'ansible', 'bsdmainutils', @@ -102,32 +68,12 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build 'openssh-clients', 'parted', 'psmisc', - 'util-linux', - 'xfsprogs', - ] %} - # FIXME(mgoddard): Removed shellinabox which is not currently provided - # by EPEL8. - {% if distro_python_version.startswith('3') %} - {% set ironic_conductor_packages = ironic_conductor_packages + [ 'python3-systemd', + 'qemu-img', 'systemd-udev', + 'util-linux', + 'xfsprogs', ] %} - {% else %} - {% set ironic_conductor_packages = ironic_conductor_packages + [ - 'shellinabox', - 'systemd-python', - 'systemd', - ] %} - {% endif %} - {% if distro_package_manager == 'dnf' or base_distro not in ['centos'] %} - {% set ironic_conductor_packages = ironic_conductor_packages + [ - 'qemu-img' - ] %} - {% else %} - {% set ironic_conductor_packages = ironic_conductor_packages + [ - 'qemu-img-ev' - ] %} - {% endif %} {% elif base_package_type == 'deb' %} {% set ironic_conductor_packages = [ 'bsdmainutils', diff --git a/docker/ironic/ironic-pxe/Dockerfile.j2 b/docker/ironic/ironic-pxe/Dockerfile.j2 index 1a778fa23..52b940bf4 100644 --- a/docker/ironic/ironic-pxe/Dockerfile.j2 +++ b/docker/ironic/ironic-pxe/Dockerfile.j2 @@ -12,13 +12,9 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build 'httpd', 'ipxe-bootimgs', 'mod_ssl', - 'tftp-server' + 'python3-mod_wsgi', + 'tftp-server', ] %} - {% if distro_python_version.startswith('3') %} - {% set ironic_pxe_packages = ironic_pxe_packages + ['python3-mod_wsgi'] %} - {% else %} - {% set ironic_pxe_packages = ironic_pxe_packages + ['mod_wsgi'] %} - {% endif %} {% if base_arch == 'x86_64' %} {% set ironic_pxe_packages = ironic_pxe_packages + [ |
