Bug 1487687

Summary: Nova Unit test fails due to python-os-vif backport
Product: Red Hat OpenStack Reporter: Michal Pryc <mpryc>
Component: openstack-novaAssignee: Michal Pryc <mpryc>
Status: CLOSED ERRATA QA Contact: Joe H. Rahme <jhakimra>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 10.0 (Newton)CC: berrange, dasmith, dcadzow, eglynn, kchamart, lruzicka, mbooth, mpryc, sbauza, sferdjao, sgordon, srevivo, vromanso
Target Milestone: z6Keywords: FeatureBackport, Triaged, ZStream
Target Release: 10.0 (Newton)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-nova-14.0.8-3.el7ost Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of:
: 1487699 1488500 (view as bug list) Environment:
Last Closed: 2017-11-15 13:48:37 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: 1487699, 1488500, 1493052, 1493054, 1493055    

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