Fix below linters issues
E001 Trailing Whitespace
E003 Indent not multiple of 4
E006 Line too long
E011 Then keyword is not on same line as if or elif keyword
E020 Function declaration not in format ^function name {$
E040 Syntax error: syntax error near unexpected token `;'
ignore cases are added in tox setup
E006 Line too long
E010: do not on the same line as for
Story: 2003368
Task: 24427
Change-Id: I6acf64271a4e608be8bc8fa965cac4fa31e0c05b
Signed-off-by: Sun Austin <austin.sun@intel.com>
40 lines
790 B
Bash
40 lines
790 B
Bash
#!/bin/bash
|
|
#
|
|
# Copyright (c) 2013-2014 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
#
|
|
# This test script soaks the mtcAgent and hbsAgent start and stop operations.
|
|
# Start Condition: Agents are already running
|
|
|
|
primary_resource="svr_vip"
|
|
proc="Openstack Swact Soak:"
|
|
count=0
|
|
delay_list="1 2 3 4 5 6 7 8 9 10 11 12 13 14 15"
|
|
|
|
|
|
while true
|
|
do
|
|
|
|
logger "$proc Swacting to Controller 1 ----------"
|
|
crm resource move $primary_resource controller-1
|
|
for delay in $delay_list
|
|
do
|
|
sleep 10
|
|
echo -n "."
|
|
crm status
|
|
done
|
|
|
|
logger "$proc Swacting to Controller 0 ----------"
|
|
crm resource move $primary_resource controller-0
|
|
for delay in $delay_list
|
|
do
|
|
sleep 10
|
|
echo -n "."
|
|
crm status
|
|
done
|
|
|
|
done
|