diff options
| author | Eduardo Gonzalez <dabarren@gmail.com> | 2018-01-05 15:11:57 +0100 |
|---|---|---|
| committer | Eduardo Gonzalez <dabarren@gmail.com> | 2018-01-05 15:11:57 +0100 |
| commit | 9342ed6b6f2bc235e095a5031441073737383946 (patch) | |
| tree | 84c730a9cae180b21facb0b3544d9c2dc1066899 | |
| parent | bee9ea39ff1b1c960c5f4f8f1a26fcced71a4ec3 (diff) | |
| download | kolla-9342ed6b6f2bc235e095a5031441073737383946.tar.gz kolla-9342ed6b6f2bc235e095a5031441073737383946.zip | |
Add networking-sfc package to tacker images
Tacker need networking-sfc package to allow creation
of SFC flows in neutron.
Change-Id: I825fa9f67cfadb99d6bd90d7bc322747bd44fca4
| -rw-r--r-- | docker/tacker/tacker-base/Dockerfile.j2 | 13 | ||||
| -rwxr-xr-x | kolla/common/config.py | 4 | ||||
| -rw-r--r-- | releasenotes/notes/tacker-networking-sfc-138b9fedd09b8728.yaml | 4 |
3 files changed, 19 insertions, 2 deletions
diff --git a/docker/tacker/tacker-base/Dockerfile.j2 b/docker/tacker/tacker-base/Dockerfile.j2 index d3a9f4701..4bc277170 100644 --- a/docker/tacker/tacker-base/Dockerfile.j2 +++ b/docker/tacker/tacker-base/Dockerfile.j2 @@ -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 %} diff --git a/kolla/common/config.py b/kolla/common/config.py index 4bcda4170..8d7863b97 100755 --- a/kolla/common/config.py +++ b/kolla/common/config.py @@ -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/' diff --git a/releasenotes/notes/tacker-networking-sfc-138b9fedd09b8728.yaml b/releasenotes/notes/tacker-networking-sfc-138b9fedd09b8728.yaml new file mode 100644 index 000000000..16968b389 --- /dev/null +++ b/releasenotes/notes/tacker-networking-sfc-138b9fedd09b8728.yaml @@ -0,0 +1,4 @@ +--- +features: + - Networking-sfc package is installed in tacker images + to provide Service Function Chaining capabilities. |
