Bug 1493226

Summary: segment host mapping tests are failing
Product: Red Hat OpenStack Reporter: Arie Bregman <abregman>
Component: python-networking-ovnAssignee: Assaf Muller <amuller>
Status: CLOSED ERRATA QA Contact: Ofer Blaut <oblaut>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 12.0 (Pike)CC: apevec, jlibosva, lhh, lmartins, majopela, nyechiel, tvignaud
Target Milestone: betaKeywords: AutomationBlocker, Triaged
Target Release: 12.0 (Pike)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-networking-ovn-3.0.1-0.20171005161553.0cde8a5.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-13 22:10:20 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:

Description Arie Bregman 2017-09-19 16:12:10 UTC
Description of problem:

The following tests fail:

networking_ovn.tests.unit.ml2.test_mech_driver.TestOVNMechansimDriverSegment.test_clear_segment_host_mapping

networking_ovn.tests.unit.ml2.test_mech_driver.TestOVNMechansimDriverSegment.test_update_segment_host_mapping

The failure is: 

{"NeutronError": {"type": "InvalidInput", "message": "Invalid input for operation: Requested MTU is too big, maximum is 1450.", "detail": ""}}


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


How reproducible: 100%


Steps to Reproduce:
1. Clone networking-ovn and checkout rhos-12.0-patches branch
2. Run unit tests

Actual results:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/neutron/tests/base.py", line 118, in func
    return f(self, *args, **kwargs)
  File "networking_ovn/tests/unit/ml2/test_mech_driver.py", line 1325, in test_clear_segment_host_mapping
    _, host = self._test_segment_host_mapping()
  File "networking_ovn/tests/unit/ml2/test_mech_driver.py", line 1307, in _test_segment_host_mapping
    network_type='geneve')['segment']
  File "/usr/lib/python2.7/site-packages/neutron/tests/unit/extensions/test_segment.py", line 124, in _test_create_segment
    segment = self.segment(**keys)
  File "/usr/lib/python2.7/site-packages/neutron/tests/unit/extensions/test_segment.py", line 120, in segment
    self.fmt, tenant_id=self._tenant_id, **kwargs)
  File "/usr/lib/python2.7/site-packages/neutron/tests/unit/extensions/test_segment.py", line 114, in _make_segment
    code=res.status_int, explanation=str(res))
webob.exc.HTTPClientError: 400 Bad Request
Content-Length: 142
Content-Type: application/json; charset=utf8

{"NeutronError": {"type": "InvalidInput", "message": "Invalid input for operation: Requested MTU is too big, maximum is 1450.", "detail": ""}}


Expected results: Tests passed successfully

Comment 2 Lucas Alvares Gomes 2017-10-23 13:21:49 UTC
Looks like [0] should fix these MTU problems, it has been ported to stable/pike upstream as well. Perhaps we just need a rebase downstream ?

[0] https://review.openstack.org/#/q/12f0d9f3992ce3f08d68d8102ec5d5f9b138c756

Comment 8 errata-xmlrpc 2017-12-13 22:10:20 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/RHEA-2017:3462