diff options
| author | Alex Schultz <aschultz@redhat.com> | 2019-01-21 12:58:19 -0700 |
|---|---|---|
| committer | Mark Goddard <mark@stackhpc.com> | 2019-03-12 17:48:18 +0000 |
| commit | 3e5d8e2653db1c6c28cb428f81cd0bc332c623c3 (patch) | |
| tree | 25de124db6ae7848cecb121ac414eb468bfd4d5c /docker/collectd | |
| parent | 8df6eb01184672ffdc752437ea4d98d13f16026e (diff) | |
| download | kolla-3e5d8e2653db1c6c28cb428f81cd0bc332c623c3.tar.gz kolla-3e5d8e2653db1c6c28cb428f81cd0bc332c623c3.zip | |
Add python3 packages for RHEL systems
RDO is currently working on python3 support for the next version of
CentOS/RHEL based systems. This package uses the distro_python3 flag
that was added as part of I4028991bad92c0e8e21066cc4173c06ce5eba393 to
use the python3 specific package names. This change only adds python3
package names for RHEL systems.
Conflicts-With: https://review.openstack.org/#/c/636457/
Change-Id: Iad6b70b433a0dd1b0f8ae6790fd280594517661a
Related-Blueprint: python3-support
Diffstat (limited to 'docker/collectd')
| -rw-r--r-- | docker/collectd/Dockerfile.j2 | 35 |
1 files changed, 27 insertions, 8 deletions
diff --git a/docker/collectd/Dockerfile.j2 b/docker/collectd/Dockerfile.j2 index 072b038fe..6747edd1f 100644 --- a/docker/collectd/Dockerfile.j2 +++ b/docker/collectd/Dockerfile.j2 @@ -13,12 +13,10 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {% if base_package_type == 'rpm' %} {% set collectd_packages = collectd_packages + [ - 'collectd-amqp1', 'collectd-apache', 'collectd-bind', 'collectd-ceph', 'collectd-chrony', - 'collectd-connectivity', 'collectd-curl', 'collectd-curl_json', 'collectd-curl_xml', @@ -33,25 +31,39 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build 'collectd-mysql', 'collectd-netlink', 'collectd-openldap', - 'collectd-ovs-events', - 'collectd-ovs-stats', 'collectd-ping', - 'collectd-procevent', 'collectd-python', 'collectd-sensors', 'collectd-smart', 'collectd-snmp', - 'collectd-snmp-agent', - 'collectd-sysevent', 'collectd-utils', 'collectd-virt', 'collectd-write_http', 'collectd-write_kafka', - 'collectd-write_prometheus', + 'collectd-write_prometheus' + ] %} + + {% if distro_python_version.startswith('3') %} + {# TODO(aschultz): there are some missing packages here #} + {% set collectd_packages = collectd_packages + [ + 'collectd-ovs_events', + 'collectd-ovs_stats', + 'collectd-snmp_agent', + ] %} + {% else %} + {% set collectd_packages = collectd_packages + [ + 'collectd-amqp1', + 'collectd-connectivity', + 'collectd-ovs-events', + 'collectd-ovs-stats', + 'collectd-procevent', + 'collectd-snmp-agent', + 'collectd-sysevent', 'python-collectd-gnocchi', 'python2-collectd-rabbitmq-monitoring', 'python2-sqlalchemy-collectd' ] %} + {% endif %} {% if base_arch in ['x86_64', 'ppc64le'] %} {% set collectd_packages = collectd_packages + [ @@ -60,11 +72,18 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {% endif %} {% if base_arch =='x86_64' %} + {% if distro_python_version.startswith('3') %} + {# NOTE(aschultz): there are some missing packages here #} + {% set collectd_packages = collectd_packages + [ + 'collectd-hugepages', + ] %} + {% else %} {% set collectd_packages = collectd_packages + [ 'collectd-hugepages', 'collectd-rdt', 'collectd-turbostat' ] %} + {% endif %} {% endif %} # make sure, collectd is pulled from centos-opstools |
