← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1563883] Re: test_net_ip_availability_after_subnet_and_ports failed in _assert_total_and_used_ips

 

Reviewed:  https://review.openstack.org/299647
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=27634bb2ba2637d694c7d0aa5758173d12ef579a
Submitter: Jenkins
Branch:    master

commit 27634bb2ba2637d694c7d0aa5758173d12ef579a
Author: Armando Migliaccio <armamig@xxxxxxxxx>
Date:   Wed Mar 30 14:24:58 2016 -0700

    Fix race conditions in IP availability API tests
    
    DHCP port creation is asynchronous with subnet creation.
    Therefore there is a time window where, depending on how fast
    the DHCP agent honors the request, the DHCP port IP allocation
    may or may not be accounted for in the total number of used IP
    for the network. To kill the race, do not run dhcp on the
    created subnets at all.
    
    Closes-bug: 1563883
    
    Change-Id: Idda25e65d04852d68a3c160cc9deefdb4ee82dcd


** Changed in: neutron
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1563883

Title:
  test_net_ip_availability_after_subnet_and_ports failed in
  _assert_total_and_used_ips

Status in neutron:
  Fix Released

Bug description:
  http://logs.openstack.org/43/299243/3/check/gate-neutron-dsvm-
  api/ab12586/testr_results.html.gz

  Traceback (most recent call last):
    File "neutron/tests/api/test_network_ip_availability.py", line 138, in test_net_ip_availability_after_subnet_and_ports
      network, net_availability)
    File "neutron/tests/api/test_network_ip_availability.py", line 79, in _assert_total_and_used_ips
      self.assertEqual(expected_used, availability['used_ips'])
    File "/opt/stack/new/neutron/.tox/api/local/lib/python2.7/site-packages/testtools/testcase.py", line 362, in assertEqual
      self.assertThat(observed, matcher, message)
    File "/opt/stack/new/neutron/.tox/api/local/lib/python2.7/site-packages/testtools/testcase.py", line 447, in assertThat
      raise mismatch_error
  testtools.matchers._impl.MismatchError: 2 != 3

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1563883/+subscriptions


References