yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #70357
[Bug 1742935] Re: TestServiceUpdateNotificationSample fails intermittently: u'host2' != u'host1': path: root.payload.nova_object.data.host
Reviewed: https://review.openstack.org/533190
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=3881f9e1efe9183232c6273732a344ff2f9e2021
Submitter: Zuul
Branch: master
commit 3881f9e1efe9183232c6273732a344ff2f9e2021
Author: Balazs Gibizer <balazs.gibizer@xxxxxxxxxxxx>
Date: Fri Jan 12 15:11:35 2018 +0100
Revert "Deduplicate service status notification samples"
This reverts commit 39f9ef719eacb2fbcf0c37680b845152fcff01cc.
The reverted change made the service.update notification sample tests
failing consistently on master. The CI did not catch this problem as
the functional test does not run for changes that only touches
nova/docs. This is a quick fix to unblock the gate and fix the
functional job defintion in a separate patch.
Change-Id: Idabbf70ae46f36be8343c0a00d812cbebf7f7670
Closes-Bug: #1742935
** 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/1742935
Title:
TestServiceUpdateNotificationSample fails intermittently: u'host2' !=
u'host1': path: root.payload.nova_object.data.host
Status in OpenStack Compute (nova):
Fix Released
Bug description:
Tests in both
nova.tests.functional.notification_sample_tests.test_service.TestServiceUpdateNotificationSampleLatest
and
nova.tests.functional.notification_sample_tests.test_service.TestServiceUpdateNotificationSamplev2_52
fails with a similar error:
Traceback (most recent call last):
File "/home/zuul/src/git.openstack.org/openstack/nova/nova/tests/functional/notification_sample_tests/test_service.py", line 121, in test_service_disabled
'uuid': self.service_uuid})
File "/home/zuul/src/git.openstack.org/openstack/nova/nova/tests/functional/notification_sample_tests/test_service.py", line 37, in _verify_notification
base._verify_notification(sample_file_name, replacements, actual)
File "/home/zuul/src/git.openstack.org/openstack/nova/nova/tests/functional/notification_sample_tests/notification_sample_base.py", line 150, in _verify_notification
self.assertJsonEqual(sample_obj, notification)
File "/home/zuul/src/git.openstack.org/openstack/nova/nova/test.py", line 533, in assertJsonEqual
raise error
AssertionError:
expected:
{'event_type': 'service.update',
'payload': {'nova_object.data': {'availability_zone': None,
'binary': 'nova-compute',
'disabled': True,
'disabled_reason': None,
'forced_down': False,
'host': 'host2',
'last_seen_up': '2012-10-29T13:42:05Z',
'report_count': 1,
'topic': 'compute',
'uuid': 'e81d66a4-ddd3-4aba-8a84-171d1cb4d339',
'version': 26},
'nova_object.name': 'ServiceStatusPayload',
'nova_object.namespace': 'nova',
'nova_object.version': '1.1'},
'priority': 'INFO',
'publisher_id': 'nova-compute:host1'}
actual:
{'event_type': 'service.update',
'payload': {'nova_object.data': {'availability_zone': None,
'binary': 'nova-compute',
'disabled': True,
'disabled_reason': None,
'forced_down': False,
'host': 'host1',
'last_seen_up': '2012-10-29T13:42:05Z',
'report_count': 1,
'topic': 'compute',
'uuid': 'e81d66a4-ddd3-4aba-8a84-171d1cb4d339',
'version': 26},
'nova_object.name': 'ServiceStatusPayload',
'nova_object.namespace': 'nova',
'nova_object.version': '1.1'},
'priority': 'INFO',
'publisher_id': 'nova-compute:host1'}
difference:
'host2' != 'host1': path: root.payload.nova_object.data.host
It happens quite frequently on the gate, 64 occurrences in half a day:
http://logstash.openstack.org/#dashboard/file/logstash.json?query=message%3A%5C%22u'host2'%20!%3D%20u'host1'%3A%20path%3A%20root.payload.nova_object.data.host%5C%22
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1742935/+subscriptions
References