Unit tests are failing for network-odl

Bug #1411780 reported by Kyle Mestery
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
networking-odl
Fix Released
Critical
Kyle Mestery

Bug Description

This started happening on 1-15-2015, looks like a change in neutron or some dependency is triggering this. An example of the failure is shown below:

[kmestery@fedora-mac networking-odl]$ tox -v -epy27 networking_odl.tests.unit.ml2.test_mechanism_odl.OpenDaylightMechanismDriverTestCase.test_create_network_postcommit
using tox.ini: /opt/stack/networking-odl/tox.ini
using tox-1.8.1 from /usr/lib/python2.7/site-packages/tox/__init__.pyc
py27 reusing: /opt/stack/networking-odl/.tox/py27
  /opt/stack/networking-odl$ /opt/stack/networking-odl/.tox/py27/bin/python /opt/stack/networking-odl/setup.py --name
py27 develop-inst-nodeps: /opt/stack/networking-odl
  /opt/stack/networking-odl$ /opt/stack/networking-odl/.tox/py27/bin/pip install -r requirements.txt -U --no-deps -e /opt/stack/networking-odl >/opt/stack/networking-odl/.tox/py27/log/py27-5.log
py27 runtests: PYTHONHASHSEED='3842601030'
py27 runtests: commands[0] | bash tools/pretty_tox.sh networking_odl.tests.unit.ml2.test_mechanism_odl.OpenDaylightMechanismDriverTestCase.test_create_network_postcommit
WARNING:test command found but not installed in testenv
  cmd: /usr/bin/bash
  env: /opt/stack/networking-odl/.tox/py27
Maybe forgot to specify a dependency?
  /opt/stack/networking-odl$ /usr/bin/bash tools/pretty_tox.sh networking_odl.tests.unit.ml2.test_mechanism_odl.OpenDaylightMechanismDriverTestCase.test_create_network_postcommit
running testr
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
OS_LOG_CAPTURE=1 \
${PYTHON:-python} -m subunit.run discover -t ./ . --list
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
OS_LOG_CAPTURE=1 \
${PYTHON:-python} -m subunit.run discover -t ./ . --load-list /tmp/tmpJqeC65

{0} networking_odl.tests.unit.ml2.test_mechanism_odl.OpenDaylightMechanismDriverTestCase.test_create_network_postcommit [0.036809s] ... FAILED

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
    _StringException: Empty attachments:
      pythonlogging:''
      pythonlogging:'neutron.api.extensions'
      stderr
      stdout

    Traceback (most recent call last):
      File "networking_odl/tests/unit/ml2/test_mechanism_odl.py", line 268, in test_create_network_postcommit
        requests.codes.created)
      File "networking_odl/tests/unit/ml2/test_mechanism_odl.py", line 241, in _test_create_resource_postcommit
        'data': DataMatcher('create', object_type, context)}
      File "networking_odl/tests/unit/ml2/test_mechanism_odl.py", line 115, in __init__
        '%s_object_map' % operation)
    AttributeError: type object 'OpenDaylightMechanismDriver' has no attribute 'create_object_map'

    Traceback (most recent call last):
    _StringException: Empty attachments:
      pythonlogging:''
      pythonlogging:'neutron.api.extensions'
      stderr
      stdout

    Traceback (most recent call last):
      File "networking_odl/tests/unit/ml2/test_mechanism_odl.py", line 268, in test_create_network_postcommit
        requests.codes.created)
      File "networking_odl/tests/unit/ml2/test_mechanism_odl.py", line 241, in _test_create_resource_postcommit
        'data': DataMatcher('create', object_type, context)}
      File "networking_odl/tests/unit/ml2/test_mechanism_odl.py", line 115, in __init__
        '%s_object_map' % operation)
    AttributeError: type object 'OpenDaylightMechanismDriver' has no attribute 'create_object_map'

Slowest Tests
Test id Runtime (s)
------------------------------------------------------------------------------------------------------------------- -----------
networking_odl.tests.unit.ml2.test_mechanism_odl.OpenDaylightMechanismDriverTestCase.test_create_network_postcommit 0.037

==============================
Failed 1 tests - output below:
==============================

networking_odl.tests.unit.ml2.test_mechanism_odl.OpenDaylightMechanismDriverTestCase.test_create_network_postcommit
-------------------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
    _StringException: Empty attachments:
      pythonlogging:''
      pythonlogging:'neutron.api.extensions'
      stderr
      stdout

    Traceback (most recent call last):
      File "networking_odl/tests/unit/ml2/test_mechanism_odl.py", line 268, in test_create_network_postcommit
        requests.codes.created)
      File "networking_odl/tests/unit/ml2/test_mechanism_odl.py", line 241, in _test_create_resource_postcommit
        'data': DataMatcher('create', object_type, context)}
      File "networking_odl/tests/unit/ml2/test_mechanism_odl.py", line 115, in __init__
        '%s_object_map' % operation)
    AttributeError: type object 'OpenDaylightMechanismDriver' has no attribute 'create_object_map'

    Traceback (most recent call last):
    _StringException: Empty attachments:
      pythonlogging:''
      pythonlogging:'neutron.api.extensions'
      stderr
      stdout

    Traceback (most recent call last):
      File "networking_odl/tests/unit/ml2/test_mechanism_odl.py", line 268, in test_create_network_postcommit
        requests.codes.created)
      File "networking_odl/tests/unit/ml2/test_mechanism_odl.py", line 241, in _test_create_resource_postcommit
        'data': DataMatcher('create', object_type, context)}
      File "networking_odl/tests/unit/ml2/test_mechanism_odl.py", line 115, in __init__
        '%s_object_map' % operation)
    AttributeError: type object 'OpenDaylightMechanismDriver' has no attribute 'create_object_map'

======
Totals
======
Run: 1 in 0.036809 sec.
 - Passed: 0
 - Skipped: 0
 - Failed: 1

==============
Worker Balance
==============
 - Worker 0 (1 tests) => 0:00:00.036809s
ERROR: InvocationError: '/usr/bin/bash tools/pretty_tox.sh networking_odl.tests.unit.ml2.test_mechanism_odl.OpenDaylightMechanismDriverTestCase.test_create_network_postcommit'
_____________________________________________________________________ summary _____________________________________________________________________
ERROR: py27: commands failed
[kmestery@fedora-mac networking-odl]$

Kyle Mestery (mestery)
Changed in networking-odl:
importance: Undecided → Critical
milestone: none → 0.1.1
Revision history for this message
Patrick Laurin (plaurin) wrote :

networking-odl is a dependency.

pip install networking-odl fails

Should this be in the pypi repository??

Kyle Mestery (mestery)
Changed in networking-odl:
assignee: nobody → Kyle Mestery (mestery)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-odl (master)

Fix proposed to branch: master
Review: https://review.openstack.org/149445

Changed in networking-odl:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-odl (master)

Reviewed: https://review.openstack.org/149445
Committed: https://git.openstack.org/cgit/stackforge/networking-odl/commit/?id=c6a0e4394eca1f57069830f9f1e73b4a08a4570a
Submitter: Jenkins
Branch: master

commit c6a0e4394eca1f57069830f9f1e73b4a08a4570a
Author: Kyle Mestery <email address hidden>
Date: Fri Jan 23 00:36:53 2015 +0000

    Fix unit tests for networking-odl

    This commits fixes problems with the unit tests not running correctly
    as a result of some changes to neutron using new oslo libraries, as well
    as some fundamental problems post refactoring of the neutron ODL parts.

    Change-Id: I926b278b6ae25e6d10a58df4bfb69315da168265
    Closes-Bug: #1411780

Changed in networking-odl:
status: In Progress → Fix Committed
Kyle Mestery (mestery)
Changed in networking-odl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.