yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #69899
[Bug 1737781] Re: test_live_migration_actions randomly fails with testtools.matchers._impl.MismatchError: 6 != 4
Reviewed: https://review.openstack.org/527444
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=6efc498979ea6f12d71c4bd82af645f60d94af09
Submitter: Zuul
Branch: master
commit 6efc498979ea6f12d71c4bd82af645f60d94af09
Author: Balazs Gibizer <balazs.gibizer@xxxxxxxxxxxx>
Date: Tue Dec 12 16:56:08 2017 +0100
Wait for live_migration_rollback.end notification
The test_live_migration_abort step of the test_migration_actions
notification sample test could randomly fail on the number of
notification received. This happens becuase the test only waits for
the live_migration_abort notification but then expect that also
the live_migration_rollback notification is received. However the
rollback notification is emited after the abort which sometimes
makes the test fast enough to miss that.
The patch adds an explicit wait for the rollback notification to
stabilize the test
Change-Id: I70d8f661fa75e7688e7e3cd527c9d1ee7415c50b
Closes-Bug: #1737781
** Changed in: nova
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1737781
Title:
test_live_migration_actions randomly fails with
testtools.matchers._impl.MismatchError: 6 != 4
Status in OpenStack Compute (nova):
Fix Released
Bug description:
2017-12-07 12:58:50.750966 | ubuntu-xenial |
2017-12-07 12:58:50.751001 | ubuntu-xenial | Captured traceback:
2017-12-07 12:58:50.751036 | ubuntu-xenial | ~~~~~~~~~~~~~~~~~~~
2017-12-07 12:58:50.751078 | ubuntu-xenial | Traceback (most recent call last):
2017-12-07 12:58:50.751150 | ubuntu-xenial | File "nova/tests/functional/notification_sample_tests/test_instance.py", line 59, in test_live_migration_actions
2017-12-07 12:58:50.751189 | ubuntu-xenial | action(server)
2017-12-07 12:58:50.751275 | ubuntu-xenial | File "nova/tests/functional/notification_sample_tests/test_instance.py", line 141, in _test_live_migration_abort
2017-12-07 12:58:50.751343 | ubuntu-xenial | self.assertEqual(6, len(fake_notifier.VERSIONED_NOTIFICATIONS))
2017-12-07 12:58:50.751441 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/nova/.tox/functional/local/lib/python2.7/site-packages/testtools/testcase.py", line 411, in assertEqual
2017-12-07 12:58:50.751496 | ubuntu-xenial | self.assertThat(observed, matcher, message)
2017-12-07 12:58:50.751583 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/nova/.tox/functional/local/lib/python2.7/site-packages/testtools/testcase.py", line 498, in assertThat
2017-12-07 12:58:50.751624 | ubuntu-xenial | raise mismatch_error
2017-12-07 12:58:50.751673 | ubuntu-xenial | testtools.matchers._impl.MismatchError: 6 != 4
Full log:
http://logs.openstack.org/07/384807/88/gate/openstack-tox-functional/8e6efc1/job-output.txt#_2017-12-07_12_58_50_751673
Logstash signature:
http://logstash.openstack.org/#dashboard/file/logstash.json?query=message%3A%5C%22testtools.matchers._impl.MismatchError%3A%206%20!%3D%204%5C%22%20AND%20project%3A%5C%22openstack%2Fnova%5C%22
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1737781/+subscriptions
References