Fix keepalived double restart

Accidental double restart may cause race condition of service not up in
time when listed by second restart call of reset_node_service.

Resolves: OSPCIX-467

Change-Id: I941673a3cbb6c755254029b8c7b9eb4a456c2d48
This commit is contained in:
Maor Blaustein 2024-09-05 15:57:04 +03:00
parent 0219e833da
commit 5a925a09d6

View File

@ -103,7 +103,6 @@ class VrrpTest(base.BaseTempestTestCaseAdvanced):
'echo "{0}" > /tmp/{1};'
'sudo mv -Z /tmp/{1} /etc/keepalived/'.format(
config_text, config_file))
ssh_client.exec_command("sudo systemctl restart keepalived")
# restart and make sure keepalived is active
self.reset_node_service('keepalived', ssh_client)