Corosync service should be restarted on failover test

After the "killall" command the corosync service will be
in running state. That is why we should restart service
(but not start) to receive 0 exit code.

Change-Id: Ia46bbc31c6b4c49cdcc92047e1d51c6a5b2216de
Closes-Bug: 1637522
(cherry picked from commit f4348d5bb8)
This commit is contained in:
Dmitry Belyaninov 2016-11-09 12:20:50 +00:00
parent 6f02ec09b9
commit 92fc50d152
1 changed files with 1 additions and 1 deletions

View File

@ -1184,7 +1184,7 @@ class TestHaFailoverBase(TestBasic):
wait_pass(
lambda: assert_equal(
remote_controller.execute(
'service corosync start && service pacemaker '
'service corosync restart && service pacemaker '
'restart')['exit_code'], 0,
'Corosync was not started, see debug log,'
' count-{0}'.format(count)), timeout=20)