Add networking-baremetal

* Adding Dockerfile to build image with ironic-neutron-agent.
* Add ``neutron-base-plugin-networking-baremetal`` in
  kolla/common/config.py to enable building neutron with baremetal
  plugin.

Since the ML2 mechanism driver and L2 Agent is in the same
python package, the source install will include the
ironic-neutron-agent as part of neutron-base.

Change-Id: I232dcf44c8a56c268610053cf362714d52e6cb93
This commit is contained in:
Harald Jensas 2018-02-19 17:13:14 +01:00 committed by Harald Jensås
parent 38f21c364b
commit d0546485f6
4 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,32 @@
FROM {{ namespace }}/{{ image_prefix }}neutron-base:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% block ironic_neutron_agent_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set ironic_neutron_agent_packages = [
'python-networking-baremetal',
'python-ironic-neutron-agent'
] %}
{% elif base_distro in ['debian', 'ubuntu'] %}
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
&& /bin/false
{% endif %}
{{ macros.install_packages(ironic_neutron_agent_packages | customizable("packages")) }}
{% endif %}
{% block ironic_neutron_agent_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER neutron

View File

@ -527,6 +527,10 @@ SOURCES = {
'type': 'url',
'location': ('$tarballs_base/neutron-fwaas/'
'neutron-fwaas-master.tar.gz')},
'neutron-base-plugin-networking-baremetal': {
'type': 'url',
'location': ('$tarballs_base/networking-baremetal/'
'networking-baremetal-master.tar.gz')},
'neutron-base-plugin-networking-generic-switch': {
'type': 'url',
'location': ('$tarballs_base/networking-generic-switch/'

View File

@ -111,6 +111,7 @@ SKIPPED_IMAGES = {
"ec2-api",
"freezer-base",
"heat-all",
"ironic-neutron-agent",
"karbor-base",
"kuryr-base",
"mistral-event-engine",
@ -141,6 +142,7 @@ SKIPPED_IMAGES = {
"ec2-api",
"freezer-base",
"heat-all",
"ironic-neutron-agent",
"karbor-base",
"kuryr-base",
"mistral-event-engine",

View File

@ -0,0 +1,17 @@
---
features:
- |
Add networking-baremetal components: The ``baremetal`` ML2 mechanism driver
and the ``ironic-neutron-agent`` L2 agent.
Networking Baremetal provides deep integration between the Networking
service and the Bare Metal service. Advanced networking features like
notifications of port status changes and routed networks support in clouds
with Bare Metal service.
The ML2 mechanism driver is installed in the neutron-base image when
building from source. Binary users can use
``neutron_server_packages_append`` to include the
``python-networking-baremetal`` package when building neutron-server image.
The ``ironic-neutron-agent`` L2 agent is in the ``ironic-neutron-agent``
image.