From ea88285a511f7aa13cff3d491e143d17188b700f Mon Sep 17 00:00:00 2001 From: Tim Rozet Date: Wed, 5 Dec 2018 10:54:38 -0500 Subject: Fixes incompatible python-docker package When adding upstream packages to undercloud image, there is a conflict between a new dependency python2-docker and already installed python-docker. This patch removes the latter before trying to install upstream packages. Also, updates nic templates based on: https://review.openstack.org/#/c/604943/ Change-Id: Ia7db0a3b37652d066bbe80478689f4d1ebaea560 Signed-off-by: Tim Rozet --- apex/builders/undercloud_builder.py | 2 ++ build/nics-template.yaml.jinja2 | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/apex/builders/undercloud_builder.py b/apex/builders/undercloud_builder.py index d9e23337..943c2525 100644 --- a/apex/builders/undercloud_builder.py +++ b/apex/builders/undercloud_builder.py @@ -39,6 +39,8 @@ def add_upstream_packages(image): 'python-tripleoclient', 'openstack-tripleo-heat-templates' ] + # Remove incompatible python-docker version + virt_ops.append({con.VIRT_RUN_CMD: "yum remove -y python-docker-py"}) for pkg in pkgs: virt_ops.append({con.VIRT_INSTALL: pkg}) diff --git a/build/nics-template.yaml.jinja2 b/build/nics-template.yaml.jinja2 index 189654ca..6d1fb9c0 100644 --- a/build/nics-template.yaml.jinja2 +++ b/build/nics-template.yaml.jinja2 @@ -9,6 +9,14 @@ parameters: default: '' description: IP address/subnet on the ctlplane network type: string + ControlPlaneStaticRoutes: + default: [] + description: > + Routes for the ctlplane network traffic. + JSON route e.g. [{'destination':'10.0.0.0/16', 'nexthop':'10.0.0.1'}] + Unless the default is changed, the parameter is automatically resolved + from the subnet host_routes attribute. + type: json ExternalNetworkVlanID: default: 10 description: Vlan ID for the external network traffic. -- cgit 1.2.3-korg