aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/network_services/nfvi
diff options
context:
space:
mode:
authorDhaval Patel <dhaval.r.patel@intel.com>2017-08-29 14:34:43 -0700
committerDhaval Patel <dhaval.r.patel@intel.com>2017-08-31 10:31:06 -0700
commitea8d64b33130e75de84f711b04a4eabd32ba75e6 (patch)
tree590bb67977d79bf7e42488677f4ec38a2236a178 /yardstick/network_services/nfvi
parentad748320c73587fd09ef7204f03ba3d74567ba78 (diff)
Rabbitmq user fix for collectd
After rabbitmq server reset we need to setup user profile so that collectd and rabbitmq can communitcate. This profile should match amqp plugin configuration in collectd. Change-Id: I7eef3617d983d909418d484f8ded9e269d5d715d Signed-off-by: Dhaval Patel <dhaval.r.patel@intel.com>
Diffstat (limited to 'yardstick/network_services/nfvi')
-rw-r--r--yardstick/network_services/nfvi/resource.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/yardstick/network_services/nfvi/resource.py b/yardstick/network_services/nfvi/resource.py
index 48bcd3118..2a9a1a1a2 100644
--- a/yardstick/network_services/nfvi/resource.py
+++ b/yardstick/network_services/nfvi/resource.py
@@ -222,6 +222,12 @@ class ResourceProfile(object):
connection.execute("sudo rabbitmqctl start_app")
connection.execute("sudo service rabbitmq-server restart")
+ LOG.debug("Creating amdin user for rabbitmq in order to collect data from collectd")
+ connection.execute("sudo rabbitmqctl delete_user guest")
+ connection.execute("sudo rabbitmqctl add_user admin admin")
+ connection.execute("sudo rabbitmqctl authenticate_user admin admin")
+ connection.execute("sudo rabbitmqctl set_permissions -p / admin \".*\" \".*\" \".*\"")
+
LOG.debug("Start collectd service.....")
connection.execute("sudo %s" % collectd_path)
LOG.debug("Done")