[FT] Wait for the "neutron-keepalived-state-change" init message

When the process "neutron-keepalived-state-change" is started, wait for
the initialization message "Initial status of router", printed in the
logs, before starting any other operation.

Change-Id: Ifff470c00eae0be1f4a5a882d3b03fd5ccae9d8e
Closes-Bug: #1911925
This commit is contained in:
Rodolfo Alonso Hernandez 2021-01-15 15:27:43 +00:00 committed by Rodolfo Alonso
parent 1683ada81f
commit 66e045360c
1 changed files with 1 additions and 2 deletions

View File

@ -15,7 +15,6 @@
import os
from unittest import mock
import eventlet
from oslo_utils import uuidutils
from neutron.agent.l3 import ha
@ -67,7 +66,7 @@ class TestMonitorDaemon(base.BaseLoggingTestCase):
def _run_monitor(self):
self.ext_process.enable()
self.addCleanup(self.ext_process.disable)
eventlet.sleep(5)
self._search_in_file(self.log_file, 'Initial status of router')
def _callback(self, *args):
return self.cmd_opts