Add networking-sfc package to tacker images

Tacker need networking-sfc package to allow creation
of SFC flows in neutron.

Change-Id: I825fa9f67cfadb99d6bd90d7bc322747bd44fca4
This commit is contained in:
Eduardo Gonzalez 2018-01-05 15:11:57 +01:00
parent bee9ea39ff
commit 9342ed6b6f
3 changed files with 19 additions and 2 deletions

View File

@ -11,7 +11,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set tacker_base_packages = [
'openstack-tacker-common'
'openstack-tacker-common',
'python-networking-sfc'
] %}
{% elif base_distro in ['debian', 'ubuntu'] %}
@ -26,16 +27,24 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
{% elif install_type == 'source' %}
ADD tacker-base-archive /tacker-base-source
ADD plugins-archive /
{% set tacker_base_pip_packages = [
'/tacker'
] %}
{% set tacker_base_plugins_pip_packages = [
'/plugins/*'
] %}
RUN ln -s tacker-base-source/* tacker \
&& {{ macros.install_pip(tacker_base_pip_packages | customizable("pip_packages")) }} \
&& mkdir -p /etc/tacker \
&& cp -r /tacker/etc/tacker/* /etc/tacker \
&& chown -R tacker: /etc/tacker
&& chown -R tacker: /etc/tacker \
&& if [ "$(ls /plugins)" ]; then \
{{ macros.install_pip(tacker_base_plugins_pip_packages) }}; \
fi
{% endif %}

View File

@ -637,6 +637,10 @@ SOURCES = {
'type': 'url',
'location': ('$tarballs_base/tacker/'
'tacker-master.tar.gz')},
'tacker-base-plugin-networking-sfc': {
'type': 'url',
'location': ('$tarballs_base/networking-sfc/'
'networking-sfc-master.tar.gz')},
'tempest': {
'type': 'url',
'location': ('$tarballs_base/tempest/'

View File

@ -0,0 +1,4 @@
---
features:
- Networking-sfc package is installed in tacker images
to provide Service Function Chaining capabilities.