Added Neutron Mellanox agent image
Neutron Mellanox agent image is a Neutron base image plus package: python-networking-mlnx. Ubuntu and Debian image bases when build type is binary is not supported because of missing python-networking-mlnx package. Change-Id: If57c34bd5c3aee3e5b1f1c7b3703fd544ce498da
This commit is contained in:
parent
b5cfa8ef73
commit
ac12834c67
|
@ -52,6 +52,7 @@ mongodb,N,N,C,C,N,N
|
|||
multipathd,C,C,C,C,N,C
|
||||
murano,C,C,C,C,N,C
|
||||
neutron,C,C,C,C,N,C
|
||||
neutron-mlnx-agent,C,C,N,C,N,C
|
||||
nova,C,C,C,C,N,C
|
||||
novajoin,C,C,N,C,N,C
|
||||
octavia,C,C,N,C,N,C
|
||||
|
|
|
|
@ -52,6 +52,7 @@ mongodb,C,C,C,C,N,N
|
|||
multipathd,C,C,C,C,N,C
|
||||
murano,C,C,C,C,N,C
|
||||
neutron,T,T,T,T,N,T
|
||||
neutron-mlnx-agent,C,C,N,C,N,C
|
||||
nova,T,T,T,T,N,T
|
||||
novajoin,C,C,N,C,N,C
|
||||
octavia,C,C,N,C,N,C
|
||||
|
|
|
|
@ -0,0 +1,46 @@
|
|||
FROM {{ namespace }}/{{ image_prefix }}neutron-base:{{ tag }}
|
||||
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
||||
|
||||
{% block neutron_mlnx_agent_header %}{% endblock %}
|
||||
|
||||
{% import "macros.j2" as macros with context %}
|
||||
|
||||
{% if base_package_type == 'rpm' %}
|
||||
|
||||
{% set neutron_mlnx_agent_packages = [
|
||||
'libvirt-python',
|
||||
'python-ethtool',
|
||||
] %}
|
||||
|
||||
{% elif base_package_type == 'deb' %}
|
||||
|
||||
{% set neutron_mlnx_agent_packages = [
|
||||
'python-libvirt',
|
||||
'python-ethtool',
|
||||
] %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
|
||||
{% set neutron_mlnx_agent_packages = neutron_mlnx_agent_packages + [
|
||||
'python-networking-mlnx'
|
||||
] %}
|
||||
|
||||
{{ macros.install_packages(neutron_mlnx_agent_packages | customizable("packages")) }}
|
||||
|
||||
{% elif install_type == 'source' %}
|
||||
|
||||
{% set neutron_mlnx_agent_pip_packages = [
|
||||
'networking-mlnx'
|
||||
] %}
|
||||
|
||||
{{ macros.install_packages(neutron_mlnx_agent_packages | customizable("packages")) }}
|
||||
RUN {{ macros.install_pip(neutron_mlnx_agent_pip_packages | customizable("pip_packages")) }}
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% block neutron_mlnx_agent_footer %}{% endblock %}
|
||||
{% block footer %}{% endblock %}
|
||||
|
||||
USER neutron
|
|
@ -202,6 +202,7 @@ UNBUILDABLE_IMAGES = {
|
|||
"tripleoclient",
|
||||
"trove-base",
|
||||
"vitrage-base",
|
||||
"neutron-mlnx-agent",
|
||||
},
|
||||
|
||||
'ubuntu+binary': {
|
||||
|
@ -216,6 +217,7 @@ UNBUILDABLE_IMAGES = {
|
|||
"tripleoclient",
|
||||
"vitrage-base",
|
||||
"zaqar",
|
||||
"neutron-mlnx-agent",
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
features:
|
||||
- |
|
||||
Adds Neutron Mellanox agent image.
|
Loading…
Reference in New Issue