Fix the neutron-lbaas-agent container issues
* copy the ml2_conf.ini file to the container * map the host /etc/localtime file to the container * remove the output_file and wrap_with options in the lbaas_agent.ini file, which are useless * remove the interface_driver in the lbaas_agent, which is configured in the neutron.conf file * install net-tools package into the container, which is used by the neutron-lbaas Change-Id: Ia58d825e41d3b843d8c6e6b3c9ee1756c1aed1ac Closes-Bug: #1606755
This commit is contained in:
parent
02b2280323
commit
512be70cee
@ -75,6 +75,7 @@
|
|||||||
- "neutron-dhcp-agent"
|
- "neutron-dhcp-agent"
|
||||||
- "neutron-l3-agent"
|
- "neutron-l3-agent"
|
||||||
- "neutron-linuxbridge-agent"
|
- "neutron-linuxbridge-agent"
|
||||||
|
- "neutron-lbaas-agent"
|
||||||
- "neutron-metadata-agent"
|
- "neutron-metadata-agent"
|
||||||
- "neutron-openvswitch-agent"
|
- "neutron-openvswitch-agent"
|
||||||
- "neutron-server"
|
- "neutron-server"
|
||||||
|
@ -196,6 +196,7 @@
|
|||||||
privileged: True
|
privileged: True
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ node_config_directory }}/neutron-lbaas-agent/:{{ container_config_directory }}/:ro"
|
- "{{ node_config_directory }}/neutron-lbaas-agent/:{{ container_config_directory }}/:ro"
|
||||||
|
- "/etc/localtime:/etc/localtime:ro"
|
||||||
- "/run:/run"
|
- "/run:/run"
|
||||||
- "/run/netns/:/run/netns/:shared"
|
- "/run/netns/:/run/netns/:shared"
|
||||||
- "neutron_metadata_socket:/var/lib/neutron/kolla/"
|
- "neutron_metadata_socket:/var/lib/neutron/kolla/"
|
||||||
|
@ -1,15 +1,5 @@
|
|||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
debug = {{ neutron_logging_debug }}
|
debug = {{ neutron_logging_debug }}
|
||||||
|
|
||||||
output_file = /etc/neutron/lbaas_agent.ini
|
|
||||||
wrap_width = 79
|
|
||||||
|
|
||||||
{% if neutron_plugin_agent == "openvswitch" %}
|
|
||||||
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
|
|
||||||
{% elif neutron_plugin_agent == "linuxbridge" %}
|
|
||||||
interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
device_driver = neutron_lbaas.drivers.haproxy.namespace_driver.HaproxyNSDriver
|
device_driver = neutron_lbaas.drivers.haproxy.namespace_driver.HaproxyNSDriver
|
||||||
|
|
||||||
[haproxy]
|
[haproxy]
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"command": "neutron-lbaasv2-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/lbaas_agent.ini",
|
"command": "neutron-lbaasv2-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini --config-file /etc/neutron/lbaas_agent.ini",
|
||||||
"config_files": [
|
"config_files": [
|
||||||
{
|
{
|
||||||
"source": "{{ container_config_directory }}/neutron.conf",
|
"source": "{{ container_config_directory }}/neutron.conf",
|
||||||
@ -12,6 +12,12 @@
|
|||||||
"dest": "/etc/neutron/lbaas_agent.ini",
|
"dest": "/etc/neutron/lbaas_agent.ini",
|
||||||
"owner": "neutron",
|
"owner": "neutron",
|
||||||
"perm": "0600"
|
"perm": "0600"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "{{ container_config_directory }}/ml2_conf.ini",
|
||||||
|
"dest": "/etc/neutron/plugins/ml2/ml2_conf.ini",
|
||||||
|
"owner": "neutron",
|
||||||
|
"perm": "0600"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -5,12 +5,14 @@ MAINTAINER {{ maintainer }}
|
|||||||
|
|
||||||
RUN yum -y install \
|
RUN yum -y install \
|
||||||
haproxy \
|
haproxy \
|
||||||
|
net-tools \
|
||||||
&& yum clean all
|
&& yum clean all
|
||||||
|
|
||||||
{% elif base_distro in ['ubuntu'] %}
|
{% elif base_distro in ['ubuntu'] %}
|
||||||
|
|
||||||
RUN apt-get -y install --no-install-recommends \
|
RUN apt-get -y install --no-install-recommends \
|
||||||
haproxy \
|
haproxy \
|
||||||
|
net-tools \
|
||||||
&& apt-get clean
|
&& apt-get clean
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -20,6 +22,7 @@ RUN apt-get -y install --no-install-recommends \
|
|||||||
|
|
||||||
RUN yum -y install \
|
RUN yum -y install \
|
||||||
openstack-neutron-lbaas \
|
openstack-neutron-lbaas \
|
||||||
|
net-tools \
|
||||||
&& yum clean all
|
&& yum clean all
|
||||||
|
|
||||||
{% elif base_distro in ['ubuntu'] %}
|
{% elif base_distro in ['ubuntu'] %}
|
||||||
@ -28,6 +31,7 @@ RUN apt-get -y install --no-install-recommends \
|
|||||||
neutron-lbaas-common \
|
neutron-lbaas-common \
|
||||||
neutron-lbaasv2-agent \
|
neutron-lbaasv2-agent \
|
||||||
python-neutron-lbaas \
|
python-neutron-lbaas \
|
||||||
|
net-tools \
|
||||||
&& apt-get clean
|
&& apt-get clean
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user