Bug 1669150
| Summary: | Functional tests failing due to duplicate Encap entries | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Lucas Alvares Gomes <lmartins> |
| Component: | python-networking-ovn | Assignee: | Lucas Alvares Gomes <lmartins> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Eran Kuris <ekuris> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 14.0 (Rocky) | CC: | apevec, lhh, majopela |
| Target Milestone: | --- | Keywords: | Triaged, ZStream |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-02-28 10:59:14 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: | |||
| Bug Blocks: | 1620581 | ||
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