neutron.tests.unit.common.test_utils.TestThrottler test_throttler is failing

Bug #1916572 reported by LIU Yulong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Critical
LIU Yulong

Bug Description

Example:
ft1.2: neutron.tests.unit.common.test_utils.TestThrottler.test_throttlertesttools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/base.py", line 182, in func
    return f(self, *args, **kwargs)
  File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/unit/common/test_utils.py", line 433, in test_throttler
    throttled_func()
  File "/home/zuul/src/opendev.org/openstack/neutron/neutron/common/utils.py", line 107, in wrapper
    eventlet.sleep(time_to_wait)
  File "/usr/lib/python3.6/unittest/mock.py", line 939, in __call__
    return _mock_self._mock_call(*args, **kwargs)
  File "/usr/lib/python3.6/unittest/mock.py", line 1005, in _mock_call
    result = effect(*args, **kwargs)
  File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/unit/common/test_utils.py", line 429, in sleep_mock
    self.assertGreater(threshold, amount_to_sleep)
  File "/home/zuul/src/opendev.org/openstack/neutron/.tox/py36/lib/python3.6/site-packages/unittest2/case.py", line 1233, in assertGreater
    self.fail(self._formatMessage(msg, standardMsg))
  File "/home/zuul/src/opendev.org/openstack/neutron/.tox/py36/lib/python3.6/site-packages/unittest2/case.py", line 690, in fail
    raise self.failureException(msg)
AssertionError: 1 not greater than 1

https://3f074c0cfbd488dcf6af-941e362261845d27ff2c0dd3e3a521f3.ssl.cf1.rackcdn.com/773283/6/check/openstack-tox-py36/4e6fea3/testr_results.html

Log search:
http://logstash.openstack.org/#dashboard/file/logstash.json?query=message%3A%5C%22AssertionError%3A%201%20not%20greater%20than%201%5C%22

LIU Yulong (dragon889)
Changed in neutron:
assignee: nobody → LIU Yulong (dragon889)
description: updated
Revision history for this message
LIU Yulong (dragon889) wrote :
Changed in neutron:
status: New → Fix Released
tags: added: gate-failure unittest
Changed in neutron:
importance: Undecided → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 18.0.0.0rc1

This issue was fixed in the openstack/neutron 18.0.0.0rc1 release candidate.

tags: added: neutron-proactive-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/victoria)

Fix proposed to branch: stable/victoria
Review: https://review.opendev.org/c/openstack/neutron/+/808157

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

Fix proposed to branch: stable/ussuri
Review: https://review.opendev.org/c/openstack/neutron/+/808158

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

Fix proposed to branch: stable/train
Review: https://review.opendev.org/c/openstack/neutron/+/808159

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/808157
Committed: https://opendev.org/openstack/neutron/commit/94a702791c802861c28b8fbc9fb794bf0d97d170
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit 94a702791c802861c28b8fbc9fb794bf0d97d170
Author: LIU Yulong <email address hidden>
Date: Tue Feb 23 17:19:39 2021 +0800

    Make test_throttler happy

    neutron.tests.unit.common.test_utils.TestThrottler.test_throttler
    is failing with "AssertionError: 1 not greater than 1", change the
    assert to assertGreaterEqual.

    Change-Id: Iba29ab0b1141e731cc811e8bee076dd5726248b5
    Closes-Bug: #1916572
    (cherry picked from commit b168232e03825ae1d85ce57b870ae5897a1eb9cb)

tags: added: in-stable-victoria
tags: added: in-stable-ussuri
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/ussuri)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/808158
Committed: https://opendev.org/openstack/neutron/commit/cb28ea06d1da02a20fd7d595fbbf755f49f992f4
Submitter: "Zuul (22348)"
Branch: stable/ussuri

commit cb28ea06d1da02a20fd7d595fbbf755f49f992f4
Author: LIU Yulong <email address hidden>
Date: Tue Feb 23 17:19:39 2021 +0800

    Make test_throttler happy

    neutron.tests.unit.common.test_utils.TestThrottler.test_throttler
    is failing with "AssertionError: 1 not greater than 1", change the
    assert to assertGreaterEqual.

    Change-Id: Iba29ab0b1141e731cc811e8bee076dd5726248b5
    Closes-Bug: #1916572
    (cherry picked from commit b168232e03825ae1d85ce57b870ae5897a1eb9cb)

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/808159
Committed: https://opendev.org/openstack/neutron/commit/e80e6b3f17f4cdb96aee52af2fcfb8d7e33aa359
Submitter: "Zuul (22348)"
Branch: stable/train

commit e80e6b3f17f4cdb96aee52af2fcfb8d7e33aa359
Author: LIU Yulong <email address hidden>
Date: Tue Feb 23 17:19:39 2021 +0800

    Make test_throttler happy

    neutron.tests.unit.common.test_utils.TestThrottler.test_throttler
    is failing with "AssertionError: 1 not greater than 1", change the
    assert to assertGreaterEqual.

    Change-Id: Iba29ab0b1141e731cc811e8bee076dd5726248b5
    Closes-Bug: #1916572
    (cherry picked from commit b168232e03825ae1d85ce57b870ae5897a1eb9cb)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 16.4.2

This issue was fixed in the openstack/neutron 16.4.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 17.3.0

This issue was fixed in the openstack/neutron 17.3.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers