From 3ffa9997509a1a8319a0b02a03168b1d1a6428f2 Mon Sep 17 00:00:00 2001 From: Travis Truman Date: Fri, 29 Jul 2016 14:51:48 -0400 Subject: [PATCH] Fix bug in RPC config that broke Rabbit SSL support The use_rabbit_ssl query parameter is not respected by oslo.messaging's rabbit driver, only the pika driver supports configuration using query parameters at present. Change-Id: I397b56423d9ef6757bada27c92b7c9f0d5126cc9 Implements: blueprint multi-rabbitmq-clusters --- templates/nova.conf.j2 | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/templates/nova.conf.j2 b/templates/nova.conf.j2 index bacf967c..de188653 100644 --- a/templates/nova.conf.j2 +++ b/templates/nova.conf.j2 @@ -77,7 +77,8 @@ osapi_compute_workers = {{ nova_osapi_compute_workers | default(api_threads) }} # Rpc all rpc_backend = {{ nova_rpc_backend }} -transport_url = rabbit://{% for host in nova_rabbitmq_servers.split(',') %}{{ nova_rabbitmq_userid }}:{{ nova_rabbitmq_password }}@{{ host }}:{{ nova_rabbitmq_port }}/{{ nova_rabbitmq_vhost }}?rabbit_use_ssl={{ nova_rabbitmq_use_ssl }}{% if not loop.last %},{% endif %}{% endfor %} +transport_url = rabbit://{% for host in nova_rabbitmq_servers.split(',') %}{{ nova_rabbitmq_userid }}:{{ nova_rabbitmq_password }}@{{ host }}:{{ nova_rabbitmq_port }}{% if not loop.last %},{% else %}/{{ nova_rabbitmq_vhost }}{% endif %}{% endfor %} + executor_thread_pool_size = {{ nova_rpc_thread_pool_size }} rpc_conn_pool_size = {{ nova_rpc_conn_pool_size }} rpc_response_timeout = {{ nova_rpc_response_timeout }} @@ -127,7 +128,7 @@ notify_on_state_change = vm_and_task_state {% if nova_ceilometer_enabled %} [oslo_messaging_notifications] driver = messagingv2 -transport_url = rabbit://{% for host in nova_rabbitmq_telemetry_servers.split(',') %}{{ nova_rabbitmq_telemetry_userid }}:{{ nova_rabbitmq_telemetry_password }}@{{ host }}:{{ nova_rabbitmq_telemetry_port }}/{{ nova_rabbitmq_telemetry_vhost }}?rabbit_use_ssl={{ nova_rabbitmq_telemetry_use_ssl }}{% if not loop.last %},{% endif %}{% endfor %} +transport_url = rabbit://{% for host in nova_rabbitmq_telemetry_servers.split(',') %}{{ nova_rabbitmq_telemetry_userid }}:{{ nova_rabbitmq_telemetry_password }}@{{ host }}:{{ nova_rabbitmq_telemetry_port }}{% if not loop.last %},{% else %}/{{ nova_rabbitmq_telemetry_vhost }}{% endif %}{% endfor %} {% endif %} # Cache @@ -243,11 +244,6 @@ lock_path = /var/lock/nova [oslo_messaging_rabbit] -rabbit_port = {{ nova_rabbitmq_port }} -rabbit_userid = {{ nova_rabbitmq_userid }} -rabbit_password = {{ nova_rabbitmq_password }} -rabbit_virtual_host = {{ nova_rabbitmq_vhost }} -rabbit_hosts = {{ nova_rabbitmq_servers }} rabbit_use_ssl = {{ nova_rabbitmq_use_ssl }} {% if nova_virt_type == 'ironic' %}