Type validation failed when parsing tempest scenario task result
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rally |
Fix Released
|
Undecided
|
Yanyan Hu |
Bug Description
When I tried to run the following sample tempest test, a type validation error happened:
Looks like the 'time' filed of task result for tempest test is string rather than floating and thus failed the type validation.
Part of the output:
======
Totals
======
Ran: 1 tests in 27.0000 sec.
- Passed: 1
- Skipped: 0
- Expected Fail: 0
- Unexpected Success: 0
- Failed: 0
Sum of execute time for each test: 0.0913 sec.
==============
Worker Balance
==============
- Worker 0 (1 tests) => 0:00:00.091320
2016-04-06 04:01:12.274 26534 INFO rally.task.runner [-] Task 5907bddb-
(1L, <class 'rally.
2016-04-06 04:01:12.279 26534 INFO rally.task.runner [-] Task 5907bddb-
2016-04-06 04:01:12.280 26534 INFO rally.verificat
2016-04-06 04:01:12.290 26293 INFO rally.plugins.
2016-04-06 04:01:12.291 26293 INFO rally.plugins.
2016-04-06 04:01:12.291 26293 INFO rally.plugins.
2016-04-06 04:01:12.291 26293 INFO rally.plugins.
2016-04-06 04:01:15.230 26293 INFO rally.plugins.
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine [-] '12.942' is not of type 'number', 'null'
Failed validating 'type' in schema[
{'type': ['number', 'null']}
On instance[
'12.942'
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine Traceback (most recent call last):
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine File "/home/
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine workload.args)
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine File "/home/
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine self._run_
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine File "/home/
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine self._join_
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine File "/home/
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine self._send_
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine File "/home/
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine r = ScenarioRunnerR
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine File "/home/
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine jsonschema.
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine File "/home/
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine cls(schema, *args, **kwargs)
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine File "/home/
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine raise error
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine ValidationError: '12.942' is not of type 'number', 'null'
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine Failed validating 'type' in schema[
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine {'type': ['number', 'null']}
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine On instance[
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine '12.942'
2016-04-06 04:01:16.368 26293 ERROR rally.task.engine
2016-04-06 04:01:16.627 26293 INFO rally.task.engine [-] Task 5907bddb-
Changed in rally: | |
assignee: | nobody → Yanyan Hu (yanyanhu) |
description: | updated |
Fix proposed to branch: master /review. openstack. org/302098
Review: https:/