From 45da777d2526acd355da974eb338695559dd64c8 Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Sun, 5 Mar 2017 13:07:39 -0500 Subject: [PATCH] Change to messagingv2 for oslo_messaging_notifications.driver The oslo.messaging docs on the notification messaging driver says that "messaging" (1.0) is a legacy format and you should use messagingv2 unless otherwise required for that old format. By default we should be testing with messagingv2. Change-Id: I3031afe7551a0c8dde46e1ccfacff445fb68e122 --- lib/cinder | 2 +- lib/glance | 4 ++-- lib/neutron-legacy | 2 +- lib/nova | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/cinder b/lib/cinder index 767fd00d34..c17cea06c7 100644 --- a/lib/cinder +++ b/lib/cinder @@ -315,7 +315,7 @@ function configure_cinder { fi if is_service_enabled ceilometer; then - iniset $CINDER_CONF oslo_messaging_notifications driver "messaging" + iniset $CINDER_CONF oslo_messaging_notifications driver "messagingv2" fi if is_service_enabled tls-proxy; then diff --git a/lib/glance b/lib/glance index 58f1deff6f..0ba2cfa3d4 100644 --- a/lib/glance +++ b/lib/glance @@ -112,7 +112,7 @@ function configure_glance { iniset $GLANCE_REGISTRY_CONF DEFAULT workers "$API_WORKERS" iniset $GLANCE_REGISTRY_CONF paste_deploy flavor keystone configure_auth_token_middleware $GLANCE_REGISTRY_CONF glance $GLANCE_AUTH_CACHE_DIR/registry - iniset $GLANCE_REGISTRY_CONF oslo_messaging_notifications driver messaging + iniset $GLANCE_REGISTRY_CONF oslo_messaging_notifications driver messagingv2 iniset_rpc_backend glance $GLANCE_REGISTRY_CONF iniset $GLANCE_REGISTRY_CONF DEFAULT graceful_shutdown_timeout "$SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT" @@ -125,7 +125,7 @@ function configure_glance { iniset $GLANCE_API_CONF DEFAULT image_cache_dir $GLANCE_CACHE_DIR/ iniset $GLANCE_API_CONF paste_deploy flavor keystone+cachemanagement configure_auth_token_middleware $GLANCE_API_CONF glance $GLANCE_AUTH_CACHE_DIR/api - iniset $GLANCE_API_CONF oslo_messaging_notifications driver messaging + iniset $GLANCE_API_CONF oslo_messaging_notifications driver messagingv2 iniset_rpc_backend glance $GLANCE_API_CONF if [ "$VIRT_DRIVER" = 'xenserver' ]; then iniset $GLANCE_API_CONF DEFAULT container_formats "ami,ari,aki,bare,ovf,tgz" diff --git a/lib/neutron-legacy b/lib/neutron-legacy index b381b642c6..1a16a44986 100644 --- a/lib/neutron-legacy +++ b/lib/neutron-legacy @@ -798,7 +798,7 @@ function _configure_neutron_metadata_agent { } function _configure_neutron_ceilometer_notifications { - iniset $NEUTRON_CONF oslo_messaging_notifications driver messaging + iniset $NEUTRON_CONF oslo_messaging_notifications driver messagingv2 } function _configure_neutron_metering { diff --git a/lib/nova b/lib/nova index 79f07f2a99..4c9f30f593 100644 --- a/lib/nova +++ b/lib/nova @@ -575,7 +575,7 @@ function create_nova_conf { # Set the oslo messaging driver to the typical default. This does not # enable notifications, but it will allow them to function when enabled. - iniset $NOVA_CONF oslo_messaging_notifications driver "messaging" + iniset $NOVA_CONF oslo_messaging_notifications driver "messagingv2" iniset_rpc_backend nova $NOVA_CONF iniset $NOVA_CONF glance api_servers "${GLANCE_SERVICE_PROTOCOL}://${GLANCE_HOSTPORT}"