Tox Occasional test_one_network_label_exact Failure

Bug #1272806 reported by Auston McReynolds
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Undecided
Auston McReynolds

Bug Description

The occasional tox run unearths a failure in test_one_network_label_exact:

out: Ran 309 tests in 44.038s
out:
out: OK (SKIP=17)
out: py27 runtests: commands[2] | python setup.py testr --slowest
out: running testr
out: running=${PYTHON:-python} -m subunit.run discover ./trove/tests/unittests --list
out: running=${PYTHON:-python} -m subunit.run discover ./trove/tests/unittests --load-list /tmp/tmpZPdKr0
out: running=${PYTHON:-python} -m subunit.run discover ./trove/tests/unittests --load-list /tmp/tmpCRMjj8
out: No handlers could be found for logger "trove.guestagent.strategies.storage.swift"
out: No handlers could be found for logger "trove.guestagent.backup.backupagent"
out: ======================================================================
out: FAIL: instance.test_instance_views.InstanceViewsTest.test_one_network_label_exact
out: tags: worker-1
out: ----------------------------------------------------------------------
out: Traceback (most recent call last):
out: File "/opt/stack/trove/trove/tests/unittests/instance/test_instance_views.py", line 44, in test_one_network_label_exact
out: self.assertEqual(['10.123.123.123'], ip)
out: File "/opt/stack/trove/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 324, in assertEqual
out: self.assertThat(observed, matcher, message)
out: File "/opt/stack/trove/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 414, in assertThat
out: raise MismatchError(matchee, matcher, mismatch, verbose)
out: MismatchError: ['10.123.123.123'] != []
out: ======================================================================
out: FAIL: process-returncode
out: tags: worker-1
out: ----------------------------------------------------------------------
out: Binary content:
out: traceback (test/plain; charset="utf8")
out: Ran 554 (+1) tests in 26.503s (-1.023s)
out: FAILED (id=1, failures=2 (+2), skips=2)
out: error: testr failed (1)

this happens every so often, but is not consistently reproducible.

summary: - tox occasional test_one_network_label_exact failure
+ Tox Occasional test_one_network_label_exact Failure
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/69153

Changed in trove:
assignee: nobody → Auston McReynolds (amcrn)
status: New → In Progress
Revision history for this message
Sushil Kumar (sushil-kumar2) wrote :

I too have got this error message sometimes while runing the tox yesterday, but cannot understand the underlying problem.

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

Reviewed: https://review.openstack.org/69153
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=2f6e8a246c0c1ebf4162b37e360877475fa63126
Submitter: Jenkins
Branch: master

commit 2f6e8a246c0c1ebf4162b37e360877475fa63126
Author: amcrn <email address hidden>
Date: Sat Jan 25 17:56:12 2014 -0800

    Fix Occasional test_one_network_label_exact Fail

    fixes the occasional tox failure for test_one_network_label_exact by
    saving and restoring the original conf values before every test.

    see bug details for more information.

    Closes-Bug: #1272806

    Change-Id: Ib051b5325c0914f2ab3bc293b0052abe8257996d

Changed in trove:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in trove:
milestone: none → icehouse-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in trove:
milestone: icehouse-3 → 2014.1
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.