Provision building netcontrold container
Netcontrold container service[1] is used to load balance PMD threads in OpenVSwitch for the dataplane traffic. This patch enables building netcontrold container for Openstack. [1] https://github.com/netcontrold/netcontrold-py Change-Id: I09cb42323d36fcff49da81fc2356c9f83400d5d6 Signed-off-by: Gowrishankar Muthukrishnan <gmuthukr@redhat.com>
This commit is contained in:
parent
112928f5f0
commit
1c6145f0da
38
docker/openvswitch/openvswitch-netcontrold/Dockerfile.j2
Normal file
38
docker/openvswitch/openvswitch-netcontrold/Dockerfile.j2
Normal file
@ -0,0 +1,38 @@
|
||||
FROM {{ namespace }}/{{ image_prefix }}openvswitch-base:{{ tag }}
|
||||
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
||||
|
||||
{% block openvswitch_netcontrold_header %}{% endblock %}
|
||||
|
||||
{% import "macros.j2" as macros with context %}
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
|
||||
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
||||
&& /bin/false
|
||||
|
||||
{% elif install_type == 'source' %}
|
||||
|
||||
{% block openvswitch_netcontrold_install %}
|
||||
|
||||
{% set openvswitch_netcontrold_packages = [
|
||||
'python3-pip',
|
||||
] %}
|
||||
|
||||
{{ macros.install_packages(openvswitch_netcontrold_packages | customizable("packages")) }}
|
||||
|
||||
{% set openvswitch_netcontrold_pip_packages = [
|
||||
'netcontrold',
|
||||
]
|
||||
%}
|
||||
|
||||
RUN {{ macros.install_pip(openvswitch_netcontrold_pip_packages | customizable("pip_packages"), constraints = false, pip_version = "pip3") }}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
COPY extend_start.sh /usr/local/bin/kolla_openvswitch_extend_start
|
||||
RUN chmod 755 /usr/local/bin/kolla_openvswitch_extend_start
|
||||
|
||||
{% block openvswitch_netcontrold_footer %}{% endblock %}
|
||||
{% block footer %}{% endblock %}
|
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
if [[ ! -d "/var/log/kolla/openvswitch/netcontrold" ]]; then
|
||||
mkdir -p /var/log/kolla/openvswitch/netcontrold
|
||||
fi
|
||||
if [[ $(stat -c %a /var/log/kolla/openvswitch/netcontrold) != "755" ]]; then
|
||||
chmod 755 /var/log/kolla/openvswitch/netcontrold
|
||||
fi
|
@ -119,6 +119,7 @@ UNBUILDABLE_IMAGES = {
|
||||
"monasca-base",
|
||||
"monasca-thresh",
|
||||
"nova-mksproxy",
|
||||
"openvswitch-netcontrold",
|
||||
"qinling-base",
|
||||
"searchlight-base",
|
||||
"solum-base",
|
||||
|
3
releasenotes/notes/netcontrold-24c9d6602f84e819.yaml
Normal file
3
releasenotes/notes/netcontrold-24c9d6602f84e819.yaml
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
features:
|
||||
- Adds possibility to run netcontrold image for openvswitch service.
|
Loading…
Reference in New Issue
Block a user