Bug 1526798 - test_create_subport_invalid_inherit_network_segmentation_type fails
Summary: test_create_subport_invalid_inherit_network_segmentation_type fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron
Version: 12.0 (Pike)
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: z2
: 12.0 (Pike)
Assignee: Jakub Libosvar
QA Contact: Arie Bregman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-17 13:45 UTC by Arie Bregman
Modified: 2018-03-28 19:08 UTC (History)
6 users (show)

Fixed In Version: openstack-neutron-11.0.1-10.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-28 19:08:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1739227 0 None None None 2017-12-19 17:49:52 UTC
OpenStack gerrit 529124 0 None None None 2017-12-19 17:49:37 UTC
OpenStack gerrit 530857 0 None None None 2018-01-03 08:12:54 UTC
Red Hat Product Errata RHBA-2018:0617 0 None None None 2018-03-28 19:08:59 UTC

Description Arie Bregman 2017-12-17 13:45:36 UTC
Description of problem:

The following test fails in composable (networker) deployment after performing OSP 12 update:

neutron.tests.tempest.api.test_trunk_negative.TrunkTestJSON.test_create_subport_invalid_inherit_network_segmentation_type

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


How reproducible: 100%


Steps to Reproduce:
1. Deploy OSP 12 (previous minor release to latest)
2. Perform update to latest minor
3. Run neutron tests

Actual results:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/neutron/tests/tempest/api/test_trunk_negative.py", line 114, in test_create_subport_invalid_inherit_network_segmentation_type
    'segmentation_id': -1}])
  File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 422, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 435, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: <bound method NetworkClientJSON.add_subports of <neutron.tests.tempest.services.network.json.network_client.NetworkClientJSON object at 0x63f27d0>> returned {u'status': u'DOWN', u'created_at': u'2017-12-14T23:53:57Z', u'name': u'', u'admin_state_up': True, u'tenant_id': u'17fc2519823644b48e513406a97ee697', u'sub_ports': [{u'port_id': u'21cf29d1-2c7b-487e-bf06-6ca9f016580e', u'segmentation_type': u'vlan', u'segmentation_id': 1033}], u'tags': [], u'updated_at': u'2017-12-14T23:54:00Z', u'revision_number': 1, u'project_id': u'17fc2519823644b48e513406a97ee697', u'port_id': u'6f7f83ef-4e95-416c-b9c9-d5399548ccd6', u'id': u'43f787f8-570f-48b8-beea-568f2552366b', u'description': u''}

Expected results: Test passed successfully

Comment 3 Jakub Libosvar 2017-12-19 17:04:20 UTC
The reason test is failing is that network of is parent trunk port is actually vlan, which is supported segmentation type. So when inherit is passed to api, it's expected to get vlan instead of -1.

Comment 11 errata-xmlrpc 2018-03-28 19:08:05 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-2018:0617


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