Skip to content
Snippets Groups Projects
Commit 11ad3b99 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Ubuntu - Neutron"

parents 946f73a1 7ca1e19e
No related branches found
No related tags found
No related merge requests found
...@@ -38,9 +38,3 @@ priority=40 ...@@ -38,9 +38,3 @@ priority=40
startsec=10 startsec=10
stderr_events_enabled=true stderr_events_enabled=true
stdout_events_enabled=true stdout_events_enabled=true
[eventlistener:stdout]
command = supervisor_stdout
buffer_size = 100
events = PROCESS_LOG
result_handler = supervisor_stdout:event_handler
...@@ -3,16 +3,18 @@ MAINTAINER Kolla Project (https://launchpad.net.kolla) ...@@ -3,16 +3,18 @@ MAINTAINER Kolla Project (https://launchpad.net.kolla)
{% if base_distro in ['centos', 'fedora', 'oraclelinux'] %} {% if base_distro in ['centos', 'fedora', 'oraclelinux'] %}
# Install supervisor RUN yum install -y supervisor \
RUN easy_install supervisor && yum clean all
# Install supervisor-stdout
RUN pip install supervisor-stdout
# Configure supervisord
RUN mkdir -p /var/log/supervisor/
COPY supervisord.conf /etc/ COPY supervisord.conf /etc/
{% elif base_distro in ['ubuntu', 'debian'] %}
RUN apt-get install -y --no-install-recommends supervisor \
&& apt-get clean
COPY supervisord.conf /etc/supervisor/
{% endif %} {% endif %}
# TODO: SamYaple FWaaS is part of the l3-agent, not a seperate agent that is # TODO: SamYaple FWaaS is part of the l3-agent, not a seperate agent that is
......
...@@ -18,8 +18,18 @@ RUN echo '{{ install_type}} not yet available for {{ base_distro }}' \ ...@@ -18,8 +18,18 @@ RUN echo '{{ install_type}} not yet available for {{ base_distro }}' \
&& /bin/false && /bin/false
{% endif %} {% endif %}
{% elif install_type == 'source' %} {% elif install_type == 'source' %}
{% if base_distro in ['ubuntu', 'debian'] %}
RUN apt-get install -y --no-install-recommends \
iptables \
dnsmasq \
uuid-runtime \
ipset \
openvswitch-switch \
&& apt-get clean
{% endif %}
ADD ./neutron.tar / ADD ./neutron.tar /
RUN ln -s /neutron-* /neutron RUN ln -s /neutron-* /neutron
...@@ -27,13 +37,13 @@ RUN ln -s /neutron-* /neutron ...@@ -27,13 +37,13 @@ RUN ln -s /neutron-* /neutron
RUN cd /neutron \ RUN cd /neutron \
&& useradd --user-group neutron \ && useradd --user-group neutron \
&& pip install -r requirements.txt \ && pip install -r requirements.txt \
&& pip install /neutron \ && pip install --install-option="--install-scripts=/usr/bin" /neutron \
&& mkdir /etc/neutron /usr/share/neutron /var/log/neutron \ && mkdir -p /etc/neutron /usr/share/neutron /var/log/neutron /home/neutron \
&& cp -r etc/* /etc/neutron/ \ && cp -r etc/* /etc/neutron/ \
&& cp -r etc/neutron/* /etc/neutron/ \ && cp -r etc/neutron/* /etc/neutron/ \
&& cp etc/api-paste.ini /usr/share/neutron \ && cp etc/api-paste.ini /usr/share/neutron \
&& mv /etc/neutron/neutron/ /etc/neutron/plugins/ \ && mv /etc/neutron/neutron/ /etc/neutron/plugins/ \
&& chown -R neutron: /etc/neutron /var/log/neutron \ && chown -R neutron: /etc/neutron /var/log/neutron /home/neutron \
&& rm -rf /root/.cache && rm -rf /root/.cache
{% endif %} {% endif %}
......
...@@ -5,16 +5,19 @@ MAINTAINER Kolla Project (https://launchpad.net.kolla) ...@@ -5,16 +5,19 @@ MAINTAINER Kolla Project (https://launchpad.net.kolla)
{% if base_distro in ['centos', 'fedora', 'oraclelinux'] %} {% if base_distro in ['centos', 'fedora', 'oraclelinux'] %}
# Install required packages # Install required packages
RUN yum install -y ebtables openstack-neutron-linuxbridge \ RUN yum install -y \
ebtables \
openstack-neutron-linuxbridge \
&& yum clean all && yum clean all
{% endif %} {% endif %}
{% elif install_type == 'source' %} {% elif install_type == 'source' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux'] %}
# Install required packages # Install required packages
RUN yum install -y ebtables && yum clean all RUN yum install -y ebtables && yum clean all
{% endif %}
{% endif %} {% endif %}
COPY start.sh / COPY start.sh /
......
...@@ -5,13 +5,14 @@ MAINTAINER Kolla Project (https://launchpad.net.kolla) ...@@ -5,13 +5,14 @@ MAINTAINER Kolla Project (https://launchpad.net.kolla)
{% if base_distro in ['centos', 'fedora', 'oraclelinux'] %} {% if base_distro in ['centos', 'fedora', 'oraclelinux'] %}
# Install required packages # Install required packages
RUN yum install -y openstack-neutron-openvswitch \ RUN yum install -y \
openvswitch \ openstack-neutron-openvswitch \
openvswitch \
&& yum clean all && yum clean all
{% endif %} {% endif %}
{% elif install_type == 'source' %} {% elif install_type == 'source' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux'] %}
# Install required packages # Install required packages
RUN yum install -y \ RUN yum install -y \
...@@ -20,6 +21,7 @@ RUN yum install -y \ ...@@ -20,6 +21,7 @@ RUN yum install -y \
openvswitch \ openvswitch \
&& yum clean all && yum clean all
{% endif %}
{% endif %} {% endif %}
COPY start.sh / COPY start.sh /
......
...@@ -13,13 +13,14 @@ RUN yum install -y which \ ...@@ -13,13 +13,14 @@ RUN yum install -y which \
RUN pip install oslo.messaging==2.2.0 RUN pip install oslo.messaging==2.2.0
{% endif %} {% endif %}
{% elif install_type == 'source' %} {% elif install_type == 'source' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux'] %}
#Install required packages #Install required packages
RUN yum install -y which \ RUN yum install -y which \
&& yum clean all && yum clean all
{% endif %}
{% endif %} {% endif %}
COPY start.sh / COPY start.sh /
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment