diff options
author | Dimitrios Markou <mardim@intracom-telecom.com> | 2018-04-27 11:51:17 +0300 |
---|---|---|
committer | Dimitrios Markou <mardim@intracom-telecom.com> | 2018-05-03 12:48:18 +0300 |
commit | d00660e583ef89fe07149c7f0cffcced7cd72133 (patch) | |
tree | 6e0b3185760ee851a838e7af1113650cfef4d4c3 | |
parent | 131b9f04a360ccc894510a275bd33c57634608fc (diff) |
Bug Fix: Start openvswitch service in Centos distro
JIRA: YARDSTICK-1142
Change-Id: I82c479c95e10de37416081eacf2d8bee396e50dc
Signed-off-by: Dimitrios Markou <mardim@intracom-telecom.com>
-rwxr-xr-x | yardstick/benchmark/scenarios/availability/ha_tools/start_service.bash | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/yardstick/benchmark/scenarios/availability/ha_tools/start_service.bash b/yardstick/benchmark/scenarios/availability/ha_tools/start_service.bash index 1d0fffd06..2388507d7 100755 --- a/yardstick/benchmark/scenarios/availability/ha_tools/start_service.bash +++ b/yardstick/benchmark/scenarios/availability/ha_tools/start_service.bash @@ -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" |