Merge "Messaging multi-backend support"

This commit is contained in:
Jenkins 2017-01-30 13:23:31 +00:00 committed by Gerrit Code Review
commit a03835c453
7 changed files with 16 additions and 17 deletions

View File

@ -15,7 +15,8 @@ service:
command: calico-dhcp-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini
dependencies:
- neutron-db-sync
- rabbitmq
- "{{ messaging.dependencies[messaging.backend.rpc] }}"
- "{{ messaging.dependencies[messaging.backend.notifications] }}"
files:
- neutron.conf
- ml2-conf.ini

View File

@ -43,14 +43,6 @@ endpoint_type = internal
[oslo_concurrency]
lock_path = /var/lib/neutron/tmp
[oslo_messaging_rabbit]
rabbit_userid = {{ rabbitmq.user }}
rabbit_password = {{ rabbitmq.password }}
rabbit_ha_queues = true
# Here we should have a list of RBMQ servers, but for now 1 is ok
# FIXME
rabbit_hosts = {{ address('rabbitmq', rabbitmq.port) }}
[agent]
root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf
root_helper_daemon = sudo neutron-rootwrap-daemon /etc/neutron/rootwrap.conf
@ -70,9 +62,11 @@ username = {{ neutron.db.username }}
password = {{ neutron.db.password }}
memcached_servers = {{ address('memcached', memcached.port) }}
[oslo_messaging_notifications]
{% if searchlight is defined and (searchlight.services.neutron or searchlight.services.nova) %}
[oslo_messaging_notifications]
driver = {{ searchlight.notification_driver }}
{% else %}
driver = noop
{% endif %}
{# messaging macros templates #}
{{ oslo_messaging[messaging.backend.notifications]('notifications_config') }}
{{ oslo_messaging[messaging.backend.rpc]('rpc_config') }}

View File

@ -18,7 +18,8 @@ service:
command: neutron-dhcp-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/dhcp_agent.ini
dependencies:
- neutron-db-sync
- rabbitmq
- "{{ messaging.dependencies[messaging.backend.rpc] }}"
- "{{ messaging.dependencies[messaging.backend.notifications] }}"
files:
- neutron.conf
- ml2-conf.ini

View File

@ -18,7 +18,8 @@ service:
command: neutron-l3-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/l3_agent.ini --config-file /etc/neutron/plugins/ml2/ml2_conf.ini
dependencies:
- neutron-db-sync
- rabbitmq
- "{{ messaging.dependencies[messaging.backend.rpc] }}"
- "{{ messaging.dependencies[messaging.backend.notifications] }}"
files:
- neutron.conf
- ml2-conf.ini

View File

@ -17,7 +17,7 @@ service:
command: neutron-metadata-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/metadata-agent.ini
dependencies:
- neutron-db-sync
- rabbitmq
- "{{ messaging.dependencies[messaging.backend.rpc] }}"
files:
- neutron.conf
- ml2-conf.ini

View File

@ -18,7 +18,8 @@ service:
command: neutron-openvswitch-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini
dependencies:
- neutron-db-sync
- rabbitmq
- "{{ messaging.dependencies[messaging.backend.rpc] }}"
- "{{ messaging.dependencies[messaging.backend.notifications] }}"
- openvswitch-vswitchd:local
files:
- neutron.conf

View File

@ -20,7 +20,8 @@ service:
type: single
command: neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head
dependencies:
- rabbitmq
- "{{ messaging.dependencies[messaging.backend.rpc] }}"
- "{{ messaging.dependencies[messaging.backend.notifications] }}"
- neutron-db-create
files:
- neutron.conf