aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-03-25 06:49:16 +0000
committerGerrit Code Review <review@openstack.org>2018-03-25 06:49:16 +0000
commitf8f132d1267be673fec02234420d61c57254e59e (patch)
treebbdbe6b64f8c31d9bb973344be954980931e10b9
parent9233ca5a161d345c0c5c55bf9f692c6ed8174c0e (diff)
parentd0546485f6d16418eb645e7474965eaefc376953 (diff)
downloadkolla-f8f132d1267be673fec02234420d61c57254e59e.tar.gz
kolla-f8f132d1267be673fec02234420d61c57254e59e.zip
Merge "Add networking-baremetal"
-rw-r--r--docker/networking-baremetal/ironic-neutron-agent/Dockerfile.j232
-rwxr-xr-xkolla/common/config.py4
-rwxr-xr-xkolla/image/build.py2
-rw-r--r--releasenotes/notes/add-networking-baremtal-ed44e0fc04371eb8.yaml17
4 files changed, 55 insertions, 0 deletions
diff --git a/docker/networking-baremetal/ironic-neutron-agent/Dockerfile.j2 b/docker/networking-baremetal/ironic-neutron-agent/Dockerfile.j2
new file mode 100644
index 000000000..e8567aecb
--- /dev/null
+++ b/docker/networking-baremetal/ironic-neutron-agent/Dockerfile.j2
@@ -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
diff --git a/kolla/common/config.py b/kolla/common/config.py
index 0a51f3c72..a45f7f674 100755
--- a/kolla/common/config.py
+++ b/kolla/common/config.py
@@ -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/'
diff --git a/kolla/image/build.py b/kolla/image/build.py
index 2ac591cf1..b1bc718d3 100755
--- a/kolla/image/build.py
+++ b/kolla/image/build.py
@@ -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",
diff --git a/releasenotes/notes/add-networking-baremtal-ed44e0fc04371eb8.yaml b/releasenotes/notes/add-networking-baremtal-ed44e0fc04371eb8.yaml
new file mode 100644
index 000000000..e334e8046
--- /dev/null
+++ b/releasenotes/notes/add-networking-baremtal-ed44e0fc04371eb8.yaml
@@ -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.