Tox failing for trove

Bug #1248896 reported by Shalini khandelwal
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Critical
Illia Khudoshyn

Bug Description

Tox unit tests are failing for trove in openstack while running the command "tox".
Following are the errors :

======================================================================
FAIL: guestagent.test_api.ApiTest.test_get_hwinfo
tags: worker-0
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/trove2/trove/trove/tests/unittests/guestagent/test_api.py", line 196, in test_get_hwinfo
    exp_msg = RpcMsgMatcher('get_hwinfo')
  File "/tmp/trove2/trove/trove/tests/unittests/guestagent/test_api.py", line 344, in __init__
    self.args_dict = KeysEqual(*args_dict)
  File "/tmp/trove2/trove/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_dict.py", line 244, in __init__
    self.expected = expected[0].keys()
IndexError: tuple index out of range
======================================================================
FAIL: guestagent.test_api.ApiTest.test_restart
tags: worker-2
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/trove2/trove/trove/tests/unittests/guestagent/test_api.py", line 208, in test_restart
    exp_msg = RpcMsgMatcher('restart')
  File "/tmp/trove2/trove/trove/tests/unittests/guestagent/test_api.py", line 344, in __init__
    self.args_dict = KeysEqual(*args_dict)
  File "/tmp/trove2/trove/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_dict.py", line 244, in __init__
    self.expected = expected[0].keys()
IndexError: tuple index out of range
No handlers could be found for logger "trove.guestagent.backup.backupagent"
No handlers could be found for logger "trove.guestagent.api"
No handlers could be found for logger "trove.guestagent.strategies.storage.swift"
======================================================================
FAIL: guestagent.test_api.ApiTest.test_disable_root
tags: worker-7
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/trove2/trove/trove/tests/unittests/guestagent/test_api.py", line 184, in test_disable_root
    exp_msg = RpcMsgMatcher('disable_root')
  File "/tmp/trove2/trove/trove/tests/unittests/guestagent/test_api.py", line 344, in __init__
    self.args_dict = KeysEqual(*args_dict)
  File "/tmp/trove2/trove/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_dict.py", line 244, in __init__
    self.expected = expected[0].keys()
IndexError: tuple index out of range
======================================================================
FAIL: guestagent.test_api.ApiTest.test_update_guest
tags: worker-3
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/trove2/trove/trove/tests/unittests/guestagent/test_api.py", line 234, in test_update_guest
    exp_msg = RpcMsgMatcher('update_guest')
  File "/tmp/trove2/trove/trove/tests/unittests/guestagent/test_api.py", line 344, in __init__
    self.args_dict = KeysEqual(*args_dict)
  File "/tmp/trove2/trove/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_dict.py", line 244, in __init__
    self.expected = expected[0].keys()
IndexError: tuple index out of range
======================================================================
FAIL: guestagent.test_api.ApiTest.test_enable_root
tags: worker-7
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/trove2/trove/trove/tests/unittests/guestagent/test_api.py", line 178, in test_enable_root
    exp_msg = RpcMsgMatcher('enable_root')
  File "/tmp/trove2/trove/trove/tests/unittests/guestagent/test_api.py", line 344, in __init__
    self.args_dict = KeysEqual(*args_dict)
  File "/tmp/trove2/trove/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_dict.py", line 244, in __init__
    self.expected = expected[0].keys()
IndexError: tuple index out of range
No handlers could be found for logger "trove.guestagent.datastore.mysql.service"
======================================================================
FAIL: guestagent.test_api.ApiTest.test_get_diagnostics
tags: worker-1
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/trove2/trove/trove/tests/unittests/guestagent/test_api.py", line 202, in test_get_diagnostics
    exp_msg = RpcMsgMatcher('get_diagnostics')
  File "/tmp/trove2/trove/trove/tests/unittests/guestagent/test_api.py", line 344, in __init__
    self.args_dict = KeysEqual(*args_dict)
  File "/tmp/trove2/trove/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_dict.py", line 244, in __init__
    self.expected = expected[0].keys()
IndexError: tuple index out of range
======================================================================
FAIL: guestagent.test_api.ApiTest.test_is_root_enabled
tags: worker-1
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/trove2/trove/trove/tests/unittests/guestagent/test_api.py", line 190, in test_is_root_enabled
    exp_msg = RpcMsgMatcher('is_root_enabled')
  File "/tmp/trove2/trove/trove/tests/unittests/guestagent/test_api.py", line 344, in __init__
    self.args_dict = KeysEqual(*args_dict)
  File "/tmp/trove2/trove/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_dict.py", line 244, in __init__
    self.expected = expected[0].keys()
IndexError: tuple index out of range
No handlers could be found for logger "trove.extensions.security_group.models"
======================================================================
FAIL: process-returncode
tags: worker-1
----------------------------------------------------------------------
Binary content:
  traceback (test/plain; charset="utf8")
======================================================================
FAIL: process-returncode
tags: worker-7
----------------------------------------------------------------------
Binary content:
  traceback (test/plain; charset="utf8")
======================================================================
FAIL: process-returncode
tags: worker-2
----------------------------------------------------------------------
Binary content:
  traceback (test/plain; charset="utf8")
No handlers could be found for logger "trove.guestagent.backup.backupagent"
======================================================================
FAIL: process-returncode
tags: worker-0
----------------------------------------------------------------------
Binary content:
  traceback (test/plain; charset="utf8")
======================================================================
FAIL: process-returncode
tags: worker-3
----------------------------------------------------------------------
Binary content:
  traceback (test/plain; charset="utf8")
======================================================================
FAIL: process-returncode
tags: worker-7
----------------------------------------------------------------------
Binary content:
  traceback (test/plain; charset="utf8")
Ran 475 tests in 1.715s
FAILED (id=0, failures=14, skips=2)
error: testr failed (1)
ERROR: InvocationError: '/tmp/trove2/trove/.tox/py27/bin/python setup.py testr --slowest'
pep8 create: /tmp/trove2/trove/.tox/pep8
pep8 installdeps: -r/tmp/trove2/trove/requirements.txt, -r/tmp/trove2/trove/test-requirements.txt, setuptools_git>=0.4
pep8 inst: /tmp/trove2/trove/.tox/dist/trove-2014.1.dev118.g0b6136c.zip
pep8 runtests: commands[0] | flake8
___________________________________ summary ____________________________________
ERROR: py26: InterpreterNotFound: python2.6
ERROR: py27: commands failed
  pep8: commands succeeded

Testtools has been updated recently. It changes some of its interfaces.

Revision history for this message
Dan Nguyen (daniel-a-nguyen) wrote :

I noticed this too. It looks like it it's something to do with the testtools tests.

I removed them from the tox.ini

line 11 below.

...

commands = {envpython} run_tests.py
 10 {envpython} run_tests.py --test-config=etc/tests/xml.localhost.test.conf
 11 python setup.py testr --slowest

...

Revision history for this message
Sushil Kumar (sushil-kumar2) wrote :

There is a change on testr visible at https://pypi.python.org/pypi/testrepository
It needs to be accommodated in trove tests, I suppose

description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

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

Changed in trove:
assignee: nobody → Illia Khudoshyn (ikhudoshyn)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

description: updated
Changed in trove:
importance: Undecided → Critical
milestone: none → icehouse-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/56212
Committed: http://github.com/openstack/trove/commit/1e3f3acf829e1b87f20db561f3fe657ebb9395d4
Submitter: Jenkins
Branch: master

commit 1e3f3acf829e1b87f20db561f3fe657ebb9395d4
Author: Illia Khudoshyn <email address hidden>
Date: Wed Nov 13 15:53:58 2013 +0200

    Update tests to work with the latest testtools

    Testtools has been updated recently. Unit tests updated
    to work with the latest version.

    Fixes bug: 1248896

    Change-Id: If4d71a394b2f9b7f5f1b612ae19273de7bec54ce

Changed in trove:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in trove:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (stable/havana)

Fix proposed to branch: stable/havana
Review: https://review.openstack.org/75109

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: stable/havana
Review: https://review.openstack.org/75386

Thierry Carrez (ttx)
Changed in trove:
milestone: icehouse-1 → 2014.1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on trove (stable/havana)

Change abandoned by Ihar Hrachyshka (<email address hidden>) on branch: stable/havana
Review: https://review.openstack.org/75386
Reason: Havana is for security fixes only now, so abandoning the patch.

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.