Bug 1669150 - Functional tests failing due to duplicate Encap entries
Summary: Functional tests failing due to duplicate Encap entries
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-networking-ovn
Version: 14.0 (Rocky)
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: ---
Assignee: Lucas Alvares Gomes
QA Contact: Eran Kuris
URL:
Whiteboard:
Depends On:
Blocks: 1620581
TreeView+ depends on / blocked
 
Reported: 2019-01-24 13:17 UTC by Lucas Alvares Gomes
Modified: 2019-09-09 17:14 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-02-28 10:59:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Lucas Alvares Gomes 2019-01-24 13:17:24 UTC
Description of problem:

When we create fake chassis from functional tests, a new Encap row is created for ip '172.24.4.10' and type 'geneve'. Now, in OVS having duplicated entries in the Encap table is considered a constraint violation and that causes our functional tests to fail.

It doesn't make sense to have two chassis with the same IP address and encap type but for the purpose of functional tests we can just 'fake' it by using different IP addresses. This shouldn't have any side effect as ovn-controller is not running on functional tests and will allow us to still test multiple chassis scenarios.

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


How reproducible:
100%

Steps to Reproduce:
1. Just run: $ tox -edsvm-functional
2.
3.

Actual results:

Some functional tests will fail with:

RuntimeError: OVSDB Error: {"details":"Transaction causes multiple rows in \"Encap\" table to have identical values (geneve and \"192.0.2.2\") for index on columns \"type\" and \"ip\".  First row, with UUID 38d82658-fab2-4257-9706-e17b4e7e0cc9, was inserted by this transaction.  Second row, with UUID efde39d8-0b93-4879-90bb-f1a11c30b9b0, existed in the database before this transaction and was not modified by the transaction.","error":"constraint violation"}


Expected results:

Functional tests to pass

Additional info:

None

Comment 1 Lucas Alvares Gomes 2019-02-28 10:59:14 UTC
Solved by: https://code.engineering.redhat.com/gerrit/161387


Note You need to log in before you can comment on or make changes to this bug.