← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1614380] Re: test_get_interface_bridged_time fails at self.assertGreater(t2, t1)

 

Reviewed:  https://review.openstack.org/357279
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=51ea9b10c73a5990e8e28b78e192e71d46142c71
Submitter: Jenkins
Branch:    master

commit 51ea9b10c73a5990e8e28b78e192e71d46142c71
Author: Brian Haley <brian.haley@xxxxxxx>
Date:   Thu Aug 18 11:08:14 2016 -0400

    Fix bridge assertion error when times are equal
    
    Sysfs mtime has only a 4ms granularity, so sometimes t2 will
    be equal to t1.  Change to use assertGreaterEqual() instead.
    
    Change-Id: Id9a97dc3d5facbf66cd5c774a52f6a1b83712f33
    Closes-bug: #1614380


** 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/1614380

Title:
  test_get_interface_bridged_time fails at self.assertGreater(t2, t1)

Status in neutron:
  Fix Released

Bug description:
  Traceback (most recent call last):
    File "neutron/tests/functional/agent/linux/test_bridge_lib.py", line 53, in test_get_interface_bridged_time
      self.assertGreater(t2, t1)
    File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/unittest2/case.py", line 1233, in assertGreater
      self.fail(self._formatMessage(msg, standardMsg))
    File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/unittest2/case.py", line 690, in fail
      raise self.failureException(msg)
  AssertionError: 1471426063.9028516 not greater than 1471426063.9028516

  http://logstash.openstack.org/#dashboard/file/logstash.json?query=build_name%3A%5C
  %22gate-neutron-dsvm-
  functional%5C%22%20AND%20build_status%3A%5C%22FAILURE%5C%22%20AND%20message%3A%5C%22assertGreater%5C%22

  It seems sysfs mtime has only 4ms granularity. (Use attached shell
  script to confirm.)

  sleep(.1) between get_interface_bridged_time would band-aid this bug.

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


References