Make controller role checking more reliable 68/98468/6
authorSangwook Ha <sangwook.ha@verizon.com>
Fri, 12 Nov 2021 22:23:07 +0000 (14:23 -0800)
committerSangwook Ha <sangwook.ha@verizon.com>
Sat, 13 Nov 2021 05:58:46 +0000 (21:58 -0800)
commitcde1c4287ee19f25df5b00c3d0c81ceff9213a2c
tree38bec04f835ebfa046bebe64ad9856496942d754
parent7dc9678b294479446ce4fb72ccca9994384bd03b
Make controller role checking more reliable

When there are two active OpenFlow channel connections configured,
the role of each connection keeps changing as the two connections
compete and keep reconnecting. So checking the controller role
every second is not a very reliable way to detect transient state.

Use OVSDB monitoring which streams updates in the database to
record all the changes of the controller role, instead of periodic
polling, to make the test results more reliable. This will help
to detect true failure cases.

Signed-off-by: Sangwook Ha <sangwook.ha@verizon.com>
Change-Id: Ided77a53e4df7db1ef99d453cfd7aa0dcd062532
csit/suites/openflowplugin/Bug_Validation/8723.robot