From c323c5be7fd4ebcc71ca4e10a5c15b9ab1f29ba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Piliszek?= Date: Fri, 16 Aug 2019 15:13:03 +0200 Subject: [PATCH] Add pciutils package to cyborg-agent and zun-compute MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These run lspci and have this requirement in respective bindeps. CentOS images seem to have it installed but Ubuntu not. Ensure pciutils package is always installed. zun-compute seemed to work nonetheless but generated errors about being unable to take host inventory. cyborg-agent is unknown to work at all and deb is unbuildable. Change-Id: Iebc1f2c05c1f57c2b6f98ca9772f1ae9d9a420fa Signed-off-by: Radosław Piliszek --- docker/cyborg/cyborg-agent/Dockerfile.j2 | 6 ++++++ docker/zun/zun-compute/Dockerfile.j2 | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/docker/cyborg/cyborg-agent/Dockerfile.j2 b/docker/cyborg/cyborg-agent/Dockerfile.j2 index 398e6b2983..edd67e2b9d 100644 --- a/docker/cyborg/cyborg-agent/Dockerfile.j2 +++ b/docker/cyborg/cyborg-agent/Dockerfile.j2 @@ -4,6 +4,10 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {% block cyborg_agent_header %}{% endblock %} {% import "macros.j2" as macros with context %} +{% set cyborg_agent_packages = [ + 'pciutils', +] %} + {% if install_type == 'binary' %} RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \ @@ -17,6 +21,8 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \ {% endif %} +{{ macros.install_packages(cyborg_agent_packages | customizable("packages")) }} + RUN {{ macros.install_pip(cyborg_agent_pip_packages | customizable("pip_packages")) }} {% if base_package_type == 'rpm' %} diff --git a/docker/zun/zun-compute/Dockerfile.j2 b/docker/zun/zun-compute/Dockerfile.j2 index 33061893b3..0d8d385c86 100644 --- a/docker/zun/zun-compute/Dockerfile.j2 +++ b/docker/zun/zun-compute/Dockerfile.j2 @@ -3,6 +3,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {% block zun_compute_header %}{% endblock %} +{% import "macros.j2" as macros with context %} + {% if install_type == 'binary' %} RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \ @@ -10,6 +12,12 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \ {% endif %} +{% set zun_compute_packages = [ + 'pciutils', +] %} + +{{ macros.install_packages(zun_compute_packages | customizable("packages")) }} + COPY zun_sudoers /etc/sudoers.d/kolla_zun_sudoers COPY extend_start.sh /usr/local/bin/kolla_zun_extend_start