summaryrefslogtreecommitdiff
path: root/docker/networking-baremetal
diff options
context:
space:
mode:
authorAlex Schultz <aschultz@redhat.com>2019-01-21 12:58:19 -0700
committerMark Goddard <mark@stackhpc.com>2019-03-12 17:48:18 +0000
commit3e5d8e2653db1c6c28cb428f81cd0bc332c623c3 (patch)
tree25de124db6ae7848cecb121ac414eb468bfd4d5c /docker/networking-baremetal
parent8df6eb01184672ffdc752437ea4d98d13f16026e (diff)
downloadkolla-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/networking-baremetal')
-rw-r--r--docker/networking-baremetal/ironic-neutron-agent/Dockerfile.j211
1 files changed, 9 insertions, 2 deletions
diff --git a/docker/networking-baremetal/ironic-neutron-agent/Dockerfile.j2 b/docker/networking-baremetal/ironic-neutron-agent/Dockerfile.j2
index 977e01b8d..179e41b09 100644
--- a/docker/networking-baremetal/ironic-neutron-agent/Dockerfile.j2
+++ b/docker/networking-baremetal/ironic-neutron-agent/Dockerfile.j2
@@ -9,11 +9,18 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% if base_package_type == 'rpm' %}
+ {% if distro_python_version.startswith('3') %}
{% set ironic_neutron_agent_packages = [
- 'python-networking-baremetal',
- 'python-ironic-neutron-agent'
+ 'python3-ironic-neutron-agent',
+ 'python3-networking-baremetal'
+ ] %}
+ {% else %}
+ {% set ironic_neutron_agent_packages = [
+ 'python-ironic-neutron-agent',
+ 'python-networking-baremetal'
] %}
+ {% endif %}
{% elif base_package_type == 'deb' %}
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \