From 0f52d93d6ddc0716f78fa2cd18ec16422fd367f6 Mon Sep 17 00:00:00 2001 From: Zhi Yan Liu Date: Tue, 30 Dec 2014 14:37:02 +0800 Subject: [PATCH] Setup notification properly for Zaqar As we integrated OSprofiler with Zaqar by change I32565de6c447cd5e95a0ef54a9fbd4e571c2d820 , then service zaqar-server requires using notification API sends profiling data to ceilometer, so zaqar needs relevant options to make it work. Change-Id: Ib09b241f60dd9961e9366f69cf7fbe8388179f96 Signed-off-by: Zhi Yan Liu --- lib/zaqar | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/zaqar b/lib/zaqar index 0d1f6f4aaf..dfa3452f0d 100644 --- a/lib/zaqar +++ b/lib/zaqar @@ -135,6 +135,12 @@ function configure_zaqar { configure_redis fi + if is_service_enabled qpid || [ -n "$RABBIT_HOST" ] && [ -n "$RABBIT_PASSWORD" ]; then + iniset $ZAQAR_CONF DEFAULT notification_driver messaging + iniset $ZAQAR_CONF DEFAULT control_exchange zaqar + fi + iniset_rpc_backend zaqar $ZAQAR_CONF DEFAULT + cleanup_zaqar }