yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #65905
[Bug 1704392] Re: TestInstanceNotificationSample.test_volume_swap_server fails with "testtools.matchers._impl.MismatchError: 7 != 6"
Reviewed: https://review.openstack.org/484288
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=cf7f61c180c294f533e228697885a0ffb7e429bc
Submitter: Jenkins
Branch: master
commit cf7f61c180c294f533e228697885a0ffb7e429bc
Author: Balazs Gibizer <balazs.gibizer@xxxxxxxxxxxx>
Date: Mon Jul 17 10:32:00 2017 +0200
fix test_volume_swap_server instability
The test_volume_swap_server notification sample test was unstable
becase sometimes volume_swap.end notification was missing. The test was
waiting for the new volume id to appear on the REST API before
asserting the received notifications but the compute manager updates
the BDM earlier and then emits the volume_swap.end.
This patch modifies the test to explicitly wait for the
volume_swap.end notification. This expected to remove the test
instability.
Change-Id: Id6eefa7c85c4f63562344b552f027f1d513a90e1
Closes-Bug: #1704392
** 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/1704392
Title:
TestInstanceNotificationSample.test_volume_swap_server fails with
"testtools.matchers._impl.MismatchError: 7 != 6"
Status in OpenStack Compute (nova):
Fix Released
Bug description:
http://logs.openstack.org/17/483917/1/check/gate-nova-tox-functional-
ubuntu-xenial/f92a89d/console.html#_2017-07-14_13_14_22_687228
2017-07-14 13:14:22.687228 | nova.tests.functional.notification_sample_tests.test_instance.TestInstanceNotificationSample.test_volume_swap_server
2017-07-14 13:14:22.687273 | --------------------------------------------------------------------------------------------------------------------
2017-07-14 13:14:22.687286 |
2017-07-14 13:14:22.687304 | Captured traceback:
2017-07-14 13:14:22.687322 | ~~~~~~~~~~~~~~~~~~~
2017-07-14 13:14:22.687345 | Traceback (most recent call last):
2017-07-14 13:14:22.687388 | File "nova/tests/functional/notification_sample_tests/test_instance.py", line 837, in test_volume_swap_server
2017-07-14 13:14:22.687419 | self.assertEqual(7, len(fake_notifier.VERSIONED_NOTIFICATIONS))
2017-07-14 13:14:22.687479 | File "/home/jenkins/workspace/gate-nova-tox-functional-ubuntu-xenial/.tox/functional/local/lib/python2.7/site-packages/testtools/testcase.py", line 411, in assertEqual
2017-07-14 13:14:22.687507 | self.assertThat(observed, matcher, message)
2017-07-14 13:14:22.687565 | File "/home/jenkins/workspace/gate-nova-tox-functional-ubuntu-xenial/.tox/functional/local/lib/python2.7/site-packages/testtools/testcase.py", line 498, in assertThat
2017-07-14 13:14:22.687586 | raise mismatch_error
2017-07-14 13:14:22.687611 | testtools.matchers._impl.MismatchError: 7 != 6
This could be due to the recent change in the CinderFixture here:
https://review.openstack.org/#/c/448779/
We need the dump the notifications in the error message to get context
when this fails to debug it.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1704392/+subscriptions
References