Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1620581

Summary: OVN DB sync tests are failing
Product: Red Hat OpenStack Reporter: Arie Bregman <abregman>
Component: python-networking-ovnAssignee: Lucas Alvares Gomes <lmartins>
Status: CLOSED ERRATA QA Contact: Eran Kuris <ekuris>
Severity: high Docs Contact:
Priority: high    
Version: 14.0 (Rocky)CC: apevec, bcafarel, lhh, lmartins, majopela, rheslop, slinaber
Target Milestone: z1Keywords: AutomationBlocker, Triaged, ZStream
Target Release: 14.0 (Rocky)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-networking-ovn-5.0.2-0.20190307204430.6a774a0.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-30 17:51:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1669150    
Bug Blocks:    

Description Arie Bregman 2018-08-23 08:48:01 UTC
Description of problem:

The following tests fail every time in CI:

 networking_ovn.tests.functional.test_ovn_db_sync.TestOvnNbSyncOverSsl.test_ovn_nb_sync_log
 networking_ovn.tests.functional.test_ovn_db_sync.TestOvnNbSync.test_ovn_nb_sync_off
 networking_ovn.tests.functional.test_ovn_db_sync.TestOvnNbSyncOverSsl.test_ovn_nb_sync_repair
 networking_ovn.tests.functional.test_ovn_db_sync.TestOvnNbSyncOverTcp.test_ovn_nb_sync_log
 networking_ovn.tests.functional.test_ovn_db_sync.TestOvnNbSync.test_ovn_nb_sync_repair
 networking_ovn.tests.functional.test_ovn_db_sync.TestOvnNbSyncOverTcp.test_ovn_nb_sync_repair_delete_ovn_nb_db	
 networking_ovn.tests.functional.test_ovn_db_sync.TestOvnNbSyncOverTcp.test_ovn_nb_sync_off
 networking_ovn.tests.functional.test_ovn_db_sync.TestOvnNbSyncOverTcp.test_ovn_nb_sync_repair

With the following traceback:

AssertionError: Sequences differ: [{'action': 'allow', 'external_ids': {'neut[25252 chars]rt'}] != [{u'severity': [], u'priority': 1002, u'act[27221 chars] []}]

First differing element 0:
{'action': 'allow', 'external_ids': {'neutron:lport': u'50a1dd05-f489-4d7e-a929-82d3c2fa3d43'}, 'match': u'inport == "50a1dd05-f489-4d7e-a929-82d3c2fa3d43" && ip4 && ip4.dst == {255.255.255.255, 10.0.0.0/24} && udp && udp.src == 68 && udp.dst == 67', 'severity': [], 'log': False, 'priority': 1002, 'name': [], 'direction': 'from-lport'}
{u'severity': [], u'priority': 1002, u'action': u'allow', u'direction': u'from-lport', u'meter': [], u'external_ids': {u'neutron:lport': u'50a1dd05-f489-4d7e-a929-82d3c2fa3d43'}, u'log': False, u'match': u'inport == "50a1dd05-f489-4d7e-a929-82d3c2fa3d43" && ip4 && ip4.dst == {255.255.255.255, 10.0.0.0/24} && udp && udp.src == 68 && udp.dst == 67', u'name': []}

Diff is 68266 characters long. Set self.maxDiff to None to see it.

Version-Release number of selected component (if applicable): Latest OSP 14


How reproducible: 100%

Steps to Reproduce:
1. Clone OVN and checkout OSP 14 branch
2. Run functional tests (after running gate hooks)

Comment 2 Eran Kuris 2018-08-23 11:27:34 UTC
The issue is seen on:
osp14 -p 2018-08-21.2

Comment 3 Lucas Alvares Gomes 2018-08-27 10:53:21 UTC
I believe this has been fixed upstream at [0], I've looked at the stable/rocky branch upstream and the change is there as well.

Now, downstream I don't see that change in the networking-ovn's "rhos-14.0-patches" branch, so perhaps it hasnt' been sync yet ?

In any case here's a backport [1].

[0] https://review.openstack.org/#/c/587477/
[1] https://code.engineering.redhat.com/gerrit/#/c/148181/

Comment 8 Lucas Alvares Gomes 2019-01-24 11:21:36 UTC
(In reply to Lucas Alvares Gomes from comment #3)
> I believe this has been fixed upstream at [0], I've looked at the
> stable/rocky branch upstream and the change is there as well.
> 
> Now, downstream I don't see that change in the networking-ovn's
> "rhos-14.0-patches" branch, so perhaps it hasnt' been sync yet ?
> 
> In any case here's a backport [1].
> 
> [0] https://review.openstack.org/#/c/587477/
> [1] https://code.engineering.redhat.com/gerrit/#/c/148181/

I looked at the "rhosp-14.0-patches" branch and the commit is already sync'd with upstream. Moving it to ON_QA then.

Comment 9 Eran Kuris 2019-01-24 13:23:32 UTC
Can't verify the issue because our CI job is busted 

I am waiting to backport fix  https://review.openstack.org/#/c/627961/

Comment 15 errata-xmlrpc 2019-04-30 17:51:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:0950