Bug 1487687 - Nova Unit test fails due to python-os-vif backport
Summary: Nova Unit test fails due to python-os-vif backport
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: z6
: 10.0 (Newton)
Assignee: Michal Pryc
QA Contact: Joe H. Rahme
URL:
Whiteboard:
: 1493055 (view as bug list)
Depends On:
Blocks: 1487699 1488500 1493052 1493054 1493055
TreeView+ depends on / blocked
 
Reported: 2017-09-01 15:25 UTC by Michal Pryc
Modified: 2019-09-09 15:56 UTC (History)
13 users (show)

Fixed In Version: openstack-nova-14.0.8-3.el7ost
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
: 1487699 1488500 (view as bug list)
Environment:
Last Closed: 2017-11-15 13:48:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 419558 0 None MERGED Make unit tests work with os-vif 1.4.0 2020-08-05 16:15:37 UTC
Red Hat Product Errata RHBA-2017:3229 0 normal SHIPPED_LIVE openstack-nova bug fix advisory 2017-11-15 18:38:01 UTC

Description Michal Pryc 2017-09-01 15:25:41 UTC
One of the nova unit tests fails due to backport of https://review.openstack.org/#/c/390225/

Without fix for this bug no backports will pass CI.




Failed

nova.tests.unit.network.test_os_vif_util.OSVIFUtilTestCase.test_nova_to_osvif_vhostuser_ovs (from (empty))

Failing for the past 3 builds (Since Failed#4 )
Took 0.1 sec.
add description
Stacktrace

Traceback (most recent call last):
testtools.testresult.real._StringException: Empty attachments:
  pythonlogging:''
  stderr
  stdout

Traceback (most recent call last):
  File "nova/tests/unit/network/test_os_vif_util.py", line 587, in test_nova_to_osvif_vhostuser_ovs
    self.assertObjEqual(expect, actual)
  File "nova/tests/unit/network/test_os_vif_util.py", line 37, in assertObjEqual
    actual.obj_to_primitive())
  File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 350, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 435, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = {'versioned_object.data': {'active': False,
                           'address': '22:52:25:62:e2:aa',
                           'has_traffic_filtering': True,
                           'id': 'dc065497-3c8d-4f44-8fb4-e1d33c16a536',
                           'mode': u'client',
                           'network': {'versioned_object.data': {'bridge_interface': None,
                                                                 'id': 'b82c1929-051e-481d-8110-4669916c7915',
                                                                 'label': u'Demo Net',
                                                                 'mtu': None,
                                                                 'multi_host': False,
                                                                 'should_provide_bridge': False,
                                                                 'should_provide_vlan': False,
                                                                 'subnets': {'versioned_object.data': {'objects': []},
                                                                             'versioned_object.name': 'SubnetList',
                                                                             'versioned_object.namespace': 'os_vif',
                                                                             'versioned_object.version': '1.0'}},
                                       'versioned_object.name': 'Network',
                                       'versioned_object.namespace': 'os_vif',
                                       'versioned_object.version': '1.1'},
                           'path': u'/fake/socket',
                           'plugin': u'ovs',
                           'port_profile': {'versioned_object.data': {'interface_id': 'dc065497-3c8d-4f44-8fb4-e1d33c16a536'},
                                            'versioned_object.name': 'VIFPortProfileOpenVSwitch',
                                            'versioned_object.namespace': 'os_vif',
                                            'versioned_object.version': '1.0'},
                           'preserve_on_delete': False,
                           'vif_name': u'nicdc065497-3c'},
 'versioned_object.name': 'VIFVHostUser',
 'versioned_object.namespace': 'os_vif',
 'versioned_object.version': '1.1'}
actual    = {'versioned_object.data': {'active': False,
                           'address': '22:52:25:62:e2:aa',
                           'has_traffic_filtering': True,
                           'id': 'dc065497-3c8d-4f44-8fb4-e1d33c16a536',
                           'mode': u'client',
                           'network': {'versioned_object.data': {'bridge_interface': None,
                                                                 'id': 'b82c1929-051e-481d-8110-4669916c7915',
                                                                 'label': u'Demo Net',
                                                                 'mtu': None,
                                                                 'multi_host': False,
                                                                 'should_provide_bridge': False,
                                                                 'should_provide_vlan': False,
                                                                 'subnets': {'versioned_object.data': {'objects': []},
                                                                             'versioned_object.name': 'SubnetList',
                                                                             'versioned_object.namespace': 'os_vif',
                                                                             'versioned_object.version': '1.0'}},
                                       'versioned_object.name': 'Network',
                                       'versioned_object.namespace': 'os_vif',
                                       'versioned_object.version': '1.1'},
                           'path': u'/fake/socket',
                           'plugin': u'ovs',
                           'port_profile': {'versioned_object.data': {'interface_id': 'dc065497-3c8d-4f44-8fb4-e1d33c16a536'},
                                            'versioned_object.name': 'VIFPortProfileOpenVSwitch',
                                            'versioned_object.namespace': 'os_vif',
                                            'versioned_object.version': '1.0'},
                           'preserve_on_delete': False},
 'versioned_object.name': 'VIFVHostUser',
 'versioned_object.namespace': 'os_vif',
 'versioned_object.version': '1.1'}

Comment 2 Lee Yarwood 2017-09-27 09:12:56 UTC
*** Bug 1493055 has been marked as a duplicate of this bug. ***

Comment 8 errata-xmlrpc 2017-11-15 13:48:37 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-2017:3229


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