diff options
author | Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com> | 2018-04-06 09:29:15 +0100 |
---|---|---|
committer | Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com> | 2018-04-06 13:01:34 +0000 |
commit | 8c1ae8656417b98d984a247cd10a38adfc4511e1 (patch) | |
tree | 635f9cdba936f704c3fdb080f6c954f66cd015e0 | |
parent | e37427778fc61d6f9b1270dc9bac6684ce958c4b (diff) |
Fix RabbitMQ service installation in Yardstick jobs
RabbitMQ commands need to be executed as root user.
JIRA: YARDSTICK-1104
Change-Id: Ia6667cc3f7572f67a38fd4fd4bcf9fbb4309d36c
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
-rw-r--r-- | jjb/yardstick/yardstick-project-jobs.yml | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/jjb/yardstick/yardstick-project-jobs.yml b/jjb/yardstick/yardstick-project-jobs.yml index 63ce2986f..7987a329a 100644 --- a/jjb/yardstick/yardstick-project-jobs.yml +++ b/jjb/yardstick/yardstick-project-jobs.yml @@ -169,11 +169,11 @@ sudo apt-get -y clean && sudo apt-get -y autoremove echo "Configure RabbitMQ service" - service rabbitmq-server restart - rabbitmqctl start_app - if [ -z "$(rabbitmqctl list_users | grep yardstick)" ]; then - rabbitmqctl add_user yardstick yardstick - rabbitmqctl set_permissions yardstick ".*" ".*" ".*" + sudo service rabbitmq-server restart + sudo rabbitmqctl start_app + if [ -z "$(sudo rabbitmqctl list_users | grep yardstick)" ]; then + sudo rabbitmqctl add_user yardstick yardstick + sudo rabbitmqctl set_permissions yardstick ".*" ".*" ".*" fi echo "Running functional tests in Python 2.7 ..." @@ -193,11 +193,11 @@ sudo apt-get -y clean && sudo apt-get -y autoremove echo "Configure RabbitMQ service" - service rabbitmq-server restart - rabbitmqctl start_app - if [ -z "$(rabbitmqctl list_users | grep yardstick)" ]; then - rabbitmqctl add_user yardstick yardstick - rabbitmqctl set_permissions yardstick ".*" ".*" ".*" + sudo service rabbitmq-server restart + sudo rabbitmqctl start_app + if [ -z "$(sudo rabbitmqctl list_users | grep yardstick)" ]; then + sudo rabbitmqctl add_user yardstick yardstick + sudo rabbitmqctl set_permissions yardstick ".*" ".*" ".*" fi echo "Running functional tests in Python 3 ..." |