Remove weird deps

This is a follow-up on "Refactor httpd install to base image"
[1].

It seems a copy-paste algorithm was used to craft Dockerfiles
for some httpd-enabled services which resulted in an abundance of
ldappool packages getting installed, even in the 'source' case.
This seems to have also kept ldappool at a lower version because
it did not get updated via pip later.
This patch deals with that and also moves ldap deps for Keystone
to their proper place in 'source' case (extras).
Note Keystone client gets installed in openstack-base.

Cinder does not need to include Keystone either.

[1] https://review.opendev.org/744037

Change-Id: I017d7a6a5d2b1ae6c04556dcf172453a36de5be7
This commit is contained in:
Radosław Piliszek 2020-08-10 21:14:07 +02:00
parent fd60c65710
commit 6319bc6f55
12 changed files with 5 additions and 30 deletions

View File

@ -16,7 +16,6 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% set aodh_base_packages = [
'openstack-aodh-api',
'openstack-aodh-common',
'python3-ldappool'
] %}
{{ macros.install_packages(aodh_base_packages | customizable("packages")) }}
@ -27,7 +26,6 @@ RUN mkdir -p /var/www/cgi-bin/aodh \
{% set aodh_base_packages = [
'aodh-common',
'python3-aodh',
'python3-ldappool'
] %}
{{ macros.install_packages(aodh_base_packages | customizable("packages")) }}
@ -38,7 +36,6 @@ RUN mkdir -p /var/www/cgi-bin/aodh \
{% elif install_type == 'source' %}
{% set aodh_base_packages = [
'python3-ldappool'
] %}
{{ macros.install_packages(aodh_base_packages | customizable("packages")) }}

View File

@ -10,7 +10,6 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% if install_type == 'binary' %}
{% if base_package_type == 'rpm' %}
{% set cinder_api_packages = [
'python3-keystone'
] %}
{% elif base_package_type == 'deb' %}
{% set cinder_api_packages = [

View File

@ -22,7 +22,6 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
'gnocchi-common',
'python3-boto3',
'python3-cradox',
'python3-ldappool',
] %}
{{ macros.install_packages(gnocchi_base_packages | customizable("packages")) }}
{% elif base_package_type == 'deb' %}
@ -33,7 +32,6 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
'librados-dev',
'python3-boto3',
'python3-dev',
'python3-ldappool',
'python3-pip',
'python3-rados',
'python3-setuptools',
@ -52,7 +50,6 @@ RUN {{ macros.install_pip(gnocchi_base_pip_packages | customizable("pip_packages
{% set gnocchi_base_packages = [
'librados2-devel',
'python3-ldappool'
] %}
# on x86-64 pip grabs precompiled numpy/scipy - on aarch64/ppc64le
@ -71,7 +68,6 @@ RUN mkdir -p /var/www/cgi-bin/gnocchi
{% set gnocchi_base_packages = [
'librados-dev',
'python3-ldappool'
] %}
# on x86-64 pip grabs precompiled numpy/scipy - on aarch64/ppc64le

View File

@ -15,7 +15,6 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
'mod_auth_mellon',
'mod_auth_openidc',
'openstack-keystone',
'python3-keystoneclient',
'python3-ldappool'
] %}
@ -44,9 +43,10 @@ RUN mkdir -p /var/www/cgi-bin/keystone \
{% elif install_type == 'source' %}
{% if base_package_type == 'rpm' %}
{% set keystone_base_packages = [
'cyrus-sasl-devel',
'mod_auth_mellon',
'mod_auth_openidc',
'python3-ldappool'
'openldap-devel',
] %}
RUN dnf module enable mod_auth_openidc -y
@ -56,7 +56,8 @@ RUN dnf module enable mod_auth_openidc -y
{% set keystone_base_packages = [
'libapache2-mod-auth-mellon',
'libapache2-mod-auth-openidc',
'python3-ldappool'
'libldap2-dev',
'libsasl2-dev',
] %}
{{ macros.install_packages(keystone_base_packages | customizable("packages")) }}
{% endif %}
@ -65,7 +66,7 @@ RUN dnf module enable mod_auth_openidc -y
ADD keystone-base-archive /keystone-base-source
{% set keystone_base_pip_packages = [
'/keystone'
'/keystone[ldap]',
] %}
RUN ln -s keystone-base-source/* keystone \

View File

@ -19,7 +19,6 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
{% if base_package_type == 'rpm' %}
{% set masakari_base_packages = [
'python3-ldappool',
] %}
{{ macros.install_packages(masakari_base_packages | customizable("packages")) }}
@ -27,7 +26,6 @@ RUN mkdir -p /var/www/cgi-bin/masakari
{% elif base_package_type == 'deb' %}
{% set masakari_base_packages = [
'python3-ldappool'
] %}
{{ macros.install_packages(masakari_base_packages | customizable("packages")) }}

View File

@ -160,7 +160,6 @@ ENV DEBIAN_FRONTEND noninteractive
'make',
'mariadb-devel',
'mod_ssl',
'openldap-devel',
'openssl',
'openssl-devel',
'pcre-devel',

View File

@ -14,7 +14,6 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% set panko_base_packages = [
'openstack-panko-common',
'python3-ldappool'
] %}
{% elif base_package_type == 'deb' %}
{% set panko_base_packages = [
@ -26,13 +25,11 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% if base_package_type == 'rpm' %}
{% set panko_base_packages = [
'python3-ldappool'
] %}
{{ macros.install_packages(panko_base_packages | customizable("packages")) }}
{% elif base_package_type == 'deb' %}
{% set panko_base_packages = [
'python3-ldappool'
] %}
{{ macros.install_packages(panko_base_packages | customizable("packages")) }}

View File

@ -19,13 +19,11 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
{% if base_package_type == 'rpm' %}
{% set qinling_base_packages = [
'python3-ldappool'
] %}
{% elif base_package_type == 'deb' %}
{% set qinling_base_packages = [
'python3-ldappool'
] %}
{% endif %}

View File

@ -13,7 +13,6 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% set vitrage_api_packages = [
'openstack-vitrage-api',
'python3-ldappool'
] %}
{{ macros.install_packages(vitrage_api_packages | customizable("packages")) }}
@ -22,7 +21,6 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% if base_distro == 'debian' %}
{% set vitrage_api_packages = [
'python3-ldappool',
'vitrage-api'
] %}

View File

@ -45,7 +45,6 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
{% if base_package_type == 'rpm' %}
{% set vitrage_base_packages = [
'python3-ldappool'
] %}
{{ macros.install_packages(vitrage_base_packages | customizable("packages")) }}
@ -53,7 +52,6 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
{% elif base_package_type == 'deb' %}
{% set vitrage_base_packages = [
'python3-ldappool'
] %}
{{ macros.install_packages(vitrage_base_packages | customizable("packages")) }}

View File

@ -14,7 +14,6 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% if base_package_type == 'rpm' %}
{% set zaqar_base_packages = [
'openstack-zaqar',
'python3-ldappool'
] %}
{{ macros.install_packages(zaqar_base_packages | customizable("packages")) }} \
@ -25,7 +24,6 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% elif base_package_type == 'deb' %}
{% set zaqar_base_packages = [
'zaqar-common',
'python3-ldappool'
] %}
{{ macros.install_packages(zaqar_base_packages | customizable("packages")) }} \
@ -38,14 +36,12 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% if base_package_type == 'rpm' %}
{% set zaqar_base_packages = [
'python3-ldappool'
] %}
{{ macros.install_packages(zaqar_base_packages | customizable("packages")) }}
{% elif base_package_type == 'deb' %}
{% set zaqar_base_packages = [
'python3-ldappool'
] %}
{{ macros.install_packages(zaqar_base_packages | customizable("packages")) }}

View File

@ -20,7 +20,6 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
{% set zun_base_packages = [
'numactl',
'python3-ldappool'
] %}
{{ macros.install_packages(zun_base_packages | customizable("packages")) }}
@ -30,7 +29,6 @@ RUN mkdir -p /var/www/cgi-bin/zun
{% set zun_base_packages = [
'numactl',
'python3-ldappool'
] %}
{{ macros.install_packages(zun_base_packages | customizable("packages")) }}