Add OVN bits to neutron-base

Currently neutron-server-ovn container does not run db setup for networking-ovn
subproject when bootstrapping - since it uses extend_start from
neutron-server (where networking-ovn is not installed).

Since OVN is being added as in-tree driver to Neutron and there is no
rationale behind supporting separate container images for neutron-server-ovn
and neutron-metadata-agent-ovn, hile networking-ovn driver uses around 1-2MB
of space - this change adds networking-ovn installation to neutron-base image
and deprecates neutron-server-ovn and neutron-metadata-agent-ovn images.

Change-Id: Ib2dbdd7e7d34f56985b7a5b2494c3b89034688cb
This commit is contained in:
Michal Nasiadka 2020-01-04 08:18:13 +01:00
parent 7c116653e3
commit 17982e5817
4 changed files with 18 additions and 3 deletions

View File

@ -22,15 +22,17 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
] %}
{% if distro_python_version.startswith('3') %}
{% set neutron_base_packages = neutron_base_packages + [
'python3-networking-sfc',
'python3-networking-vmware-nsx',
'python3-networking-baremetal',
'python3-networking-mlnx',
'python3-networking-ovn',
'python3-networking-sfc',
'python3-networking-vmware-nsx',
'python3-openvswitch',
'python3-oslo-vmware'
] %}
{% else %}
{% set neutron_base_packages = neutron_base_packages + [
'python-networking-ovn',
'python-networking-sfc',
'python-networking-vmware-nsx',
'python2-networking-baremetal',
@ -51,8 +53,9 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
'neutron-plugin-ml2',
'neutron-server',
'openvswitch-switch',
'python3-networking-sfc',
'python3-networking-mlnx',
'python3-networking-ovn',
'python3-networking-sfc',
'python3-neutron-fwaas',
'python3-openvswitch',
'python3-oslo.vmware'

View File

@ -8,6 +8,7 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
neutron-db-manage ${OPTS} --subproject neutron-dynamic-routing upgrade head
neutron-db-manage ${OPTS} --subproject neutron-fwaas upgrade head
neutron-db-manage ${OPTS} --subproject neutron-vpnaas upgrade head
neutron-db-manage ${OPTS} --subproject networking-ovn upgrade head
exit 0
fi

View File

@ -587,6 +587,10 @@ SOURCES = {
'type': 'url',
'location': ('$tarballs_base/networking-mlnx/'
'networking-mlnx-${openstack_branch}.tar.gz')},
'neutron-base-plugin-networking-ovn': {
'type': 'url',
'location': ('$tarballs_base/networking-ovn/'
'networking-ovn-${openstack_branch}.tar.gz')},
'neutron-base-plugin-networking-sfc': {
'type': 'url',
'location': ('$tarballs_base/networking-sfc/'

View File

@ -0,0 +1,7 @@
---
deprecations:
- |
The ``neutron-server-ovn`` and ``neutron-metadata-agent-ovn`` images are
deprecated and will be removed in the V cycle. OVN drivers and
networking-ovn-metadata-agent have been moved to ``neutron-base`` image
and are available in ``neutron-server`` and ``neutron-metadata-agent``.