Bug 1473794

Summary: The unit tests 'neutron.tests.unit.agent.l3.test_agent.TestBasicRouterOperations' fail
Product: Red Hat OpenStack Reporter: Arie Bregman <abregman>
Component: openstack-neutronAssignee: anil venkata <vkommadi>
Status: CLOSED ERRATA QA Contact: Arie Bregman <abregman>
Severity: high Docs Contact:
Priority: high    
Version: 8.0 (Liberty)CC: amuller, ccollett, chrisw, nyechiel, srevivo, vkommadi
Target Milestone: zstreamKeywords: AutomationBlocker, Triaged, ZStream
Target Release: 8.0 (Liberty)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-neutron-7.2.0-30.el7ost Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of:
: 1473804 (view as bug list) Environment:
Last Closed: 2018-03-15 12:38:27 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: 1473804    

Description Arie Bregman 2017-07-21 16:59:17 UTC
Description of problem:

The following unit tests are failing:

neutron.tests.unit.agent.l3.test_agent.TestBasicRouterOperations.test_initialize_fail_retrigger_initialize
neutron.tests.unit.agent.l3.test_agent.TestBasicRouterOperations.test_initialize_and_delete_fail_retrigger_initialize


Version-Release number of selected component (if applicable): latest neutron OSP 8 (from source)


How reproducible: 100%


Steps to Reproduce:
1. Clone neutron from codeng
2. Run unit tests (tox -e py27)
3.

Actual results:

Fail with the following traceback

Traceback (most recent call last):
  File "neutron/tests/unit/agent/l3/test_agent.py", line 1631, in test_initialize_fail_retrigger_initialize
    self._retrigger_initialize()
  File "/usr/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "neutron/tests/unit/agent/l3/test_agent.py", line 1620, in _retrigger_initialize
    log_exception.assert_has_calls(calls)
  File "/usr/lib/python2.7/site-packages/mock/mock.py", line 969, in assert_has_calls
    ), cause)
  File "/usr/lib/python2.7/site-packages/six.py", line 692, in raise_from
    raise value
AssertionError: Calls not found.
Expected: [call('Error while initializing router %s', '8d9bd8e4-ac2d-4da6-99a6-810045a8bd07'), call("Failed to process compatible router '8d9bd8e4-ac2d-4da6-99a6-810045a8bd07'")]
Actual: [call(u'Error while initializing router %s', '8d9bd8e4-ac2d-4da6-99a6-810045a8bd07'),
 call(u"Failed to process compatible router '%s'", '8d9bd8e4-ac2d-4da6-99a6-810045a8bd07')]

Expected results:


Additional info:

Comment 8 errata-xmlrpc 2018-03-15 12:38:27 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:0534