Testcase 'test_create_subnet_with_two_host_routes' failed

Bug #1179348 reported by Alex Xu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Alex Xu
Grizzly
Fix Released
Medium
Christopher Thiel

Bug Description

Traceback (most recent call last):
  File "/home/soulxu/work-code/openstack/quantum/quantum/tests/unit/test_db_plugin.py", line 3286, in test_create_subnet_with_two_host_routes
    host_routes=host_routes)
  File "/home/soulxu/work-code/openstack/quantum/quantum/tests/unit/test_db_plugin.py", line 2301, in _test_create_subnet
    self.assertEqual(subnet['subnet'][k], keys[k])
MismatchError: !=:
reference = [{'destination': '12.0.0.0/8', 'nexthop': '4.3.2.1'},
 {'destination': '135.207.0.0/16', 'nexthop': '1.2.3.4'}]
actual = [{'destination': '135.207.0.0/16', 'nexthop': '1.2.3.4'},
 {'destination': '12.0.0.0/8', 'nexthop': '4.3.2.1'}]

Alex Xu (xuhj)
Changed in quantum:
assignee: nobody → Alex Xu (xuhj)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (master)

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

Changed in quantum:
status: New → In Progress
Revision history for this message
Eugene Nikanorov (enikanorov) wrote :

how did you get this test failure? seems to work for me on master

Revision history for this message
Alex Xu (xuhj) wrote :

Just run the test(tox -e py27), then failed on my machine. I think it is random. Because the assertion depend on the list order.

Revision history for this message
yong sheng gong (gongysh) wrote :

it makes sense to do assertion after we sort the lists.

Changed in quantum:
importance: Undecided → Medium
milestone: none → havana-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to quantum (master)

Reviewed: https://review.openstack.org/28919
Committed: http://github.com/openstack/quantum/commit/8aaf0bd736839a1c562d60a0a1fdd825e6c553b0
Submitter: Jenkins
Branch: master

commit 8aaf0bd736839a1c562d60a0a1fdd825e6c553b0
Author: He Jie Xu <email address hidden>
Date: Mon May 13 10:43:38 2013 +0800

    Fix testcase 'test_create_subnet_with_two_host_routes' failed

    Fix bug 1179348

    Change-Id: I0cd5d303da0f394cec173aeee52efcd337282c94

Changed in quantum:
status: In Progress → Fix Committed
tags: added: l3-ipam-dhcp unittest
Thierry Carrez (ttx)
Changed in quantum:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: havana-1 → 2013.2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/grizzly)

Fix proposed to branch: stable/grizzly
Review: https://review.openstack.org/73047

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/grizzly)

Reviewed: https://review.openstack.org/73047
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=127a1ccb60a51fc6ac4a0f9ef776c5d8372f534e
Submitter: Jenkins
Branch: stable/grizzly

commit 127a1ccb60a51fc6ac4a0f9ef776c5d8372f534e
Author: He Jie Xu <email address hidden>
Date: Mon May 13 10:43:38 2013 +0800

    Fix testcase 'test_create_subnet_with_two_host_routes' failed

    Fix bug 1179348

    Change-Id: I0cd5d303da0f394cec173aeee52efcd337282c94
    Signed-off-by: Christoph Thiel <email address hidden>

tags: added: in-stable-grizzly
Alan Pevec (apevec)
tags: removed: in-stable-grizzly
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.