From 2dead815647b448bbcdc86bb2268f48d9a8d2515 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Tue, 6 Oct 2015 15:58:12 -0700 Subject: [PATCH] Install agent dependencies from source for CentOS Several packages are not installed from RPM packages which are required in order for CentOS from source to operate correctly. This looked like sudo was failing to execute, but it was because the dnsmasq binary was not found. backport: liberty Change-Id: If23cfbacd55d9089ffec442399ee0151adea923f Closes-Bug: #1503412 --- docker/neutron/neutron-base/Dockerfile.j2 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docker/neutron/neutron-base/Dockerfile.j2 b/docker/neutron/neutron-base/Dockerfile.j2 index fe073d8cfb..8a48517d1f 100644 --- a/docker/neutron/neutron-base/Dockerfile.j2 +++ b/docker/neutron/neutron-base/Dockerfile.j2 @@ -15,7 +15,16 @@ RUN pip install oslo.versionedobjects {% endif %} {% elif install_type == 'source' %} - {% if base_distro in ['ubuntu', 'debian'] %} + {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %} + +RUN yum -y install \ + uuid \ + dnsmasq \ + ipset \ + openvswitch \ + && yum clean all + + {% elif base_distro in ['ubuntu', 'debian'] %} RUN apt-get install -y --no-install-recommends \ iptables \