Bug Fix: Start openvswitch service in Centos distro 67/56767/7
authorDimitrios Markou <mardim@intracom-telecom.com>
Fri, 27 Apr 2018 08:51:17 +0000 (11:51 +0300)
committerDimitrios Markou <mardim@intracom-telecom.com>
Thu, 3 May 2018 09:48:18 +0000 (12:48 +0300)
JIRA: YARDSTICK-1142

Change-Id: I82c479c95e10de37416081eacf2d8bee396e50dc
Signed-off-by: Dimitrios Markou <mardim@intracom-telecom.com>
yardstick/benchmark/scenarios/availability/ha_tools/start_service.bash

index 1d0fffd..2388507 100755 (executable)
@@ -16,11 +16,9 @@ set -e
 service_name=$1
 operation=${2-start} # values are "start" or "restart"
 
-Distributor=$(lsb_release -a | grep "Distributor ID" | awk '{print $3}')
-
-if [ "$Distributor" != "Ubuntu" -a "$service_name" != "keystone" -a "$service_name" != "neutron-server" -a "$service_name" != "haproxy" ]; then
+if [ -f /usr/bin/yum -a "$service_name" != "keystone" -a "$service_name" != "neutron-server" -a "$service_name" != "haproxy" -a "$service_name" != "openvswitch" ]; then
     service_name="openstack-"${service_name}
-elif [ "$Distributor" = "Ubuntu" -a "$service_name" = "keystone" ]; then
+elif [ -f /usr/bin/apt -a "$service_name" = "keystone" ]; then
     service_name="apache2"
 elif [ "$service_name" = "keystone" ]; then
     service_name="httpd"