Timing issue in SimpleTenantUsageSample(Json|XML)Test
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Roman Podoliaka |
Bug Description
Being an integrated test SimpleTenantUsa
Test setUp() is defined as:
def setUp(self):
"""setUp method for simple tenant usage."""
self.query = {
'end': str(timeutils.
}
The problem is, that if for some reason (e. g. high LA value) self._post_server() takes more than 1 second, the test will fail, because the instance uptime value will not be equal to one defined in API call sample (3600):
Traceback (most recent call last):
File "/home/
response, 200)
File "/home/
response_data, "Response")
File "/home/
result_str)
File "/home/
raise NoMatch(
NoMatch: Extra list items in template:
{ ... {'__tag__': 'uptime', '__content__': '3600'}]}]}
Extra list items in Response:
{ ... {'__tag__': 'uptime', '__content__': '3601'}]}]}
The error is rare, nevertheless it happens time to time when Jenkins runs gate jobs.
Changed in nova: | |
assignee: | nobody → Roman Podolyaka (rpodolyaka) |
tags: | added: tests |
Changed in nova: | |
milestone: | none → havana-3 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | havana-3 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/39299
Review: https:/