Fix OVN DB verifications from ovn_dbs_are_synchronized
This method compares OVN DB entries from master and slave nodes. It is expected that those DBs are synchronized. This verification failed sometimes, regardless of the DB synchronization, because entries where ordered differently (which is normal, it is not an issue) The verification has been made more flexible Change-Id: Ic18ddaaaae497e867e3251ba20f2cfbf3e7d6eab
This commit is contained in:
parent
2829e66b9a
commit
787c94c482
@ -164,8 +164,12 @@ def ovn_dbs_are_synchronized(test_case):
|
||||
ovn_db_show = sh.execute(
|
||||
show_cmd, ssh_client=node.ssh_client, sudo=True).stdout
|
||||
ovn_dbs_show_dict[db] = build_ovn_db_show_dict(ovn_db_show)
|
||||
test_case.assertEqual(ovn_dbs_show_dict[db],
|
||||
ovn_master_dbs_show_dict[db])
|
||||
test_case.assertEqual(len(ovn_dbs_show_dict[db]),
|
||||
len(ovn_master_dbs_show_dict[db]))
|
||||
for key in ovn_dbs_show_dict[db]:
|
||||
test_case.assertEqual(
|
||||
sorted(ovn_dbs_show_dict[db][key]),
|
||||
sorted(ovn_master_dbs_show_dict[db][key]))
|
||||
|
||||
LOG.info("All OVN DBs are synchronized")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user