2017-11-25 12:01:47 |
Andriy Kurilin |
description |
Hi,
I cannot create a trends export when there are failed scenarios in the task.
(installation) root@rally-server:~# rally --version
0.10.1~dev8
(installation) root@rally-server:~# rally --rally-debug task trends --tasks f9a64d6d-6cec-4ce0-9ae4-5f811a6359e6 --out /var/www/html/index.html
2017-11-14 14:03:14.544 4333 RALLYDEBUG rally.api [-] INFO logs from urllib3 and requests module are hide.
2017-11-14 14:03:14.545 4333 RALLYDEBUG rally.api [-] urllib3 insecure warnings are hidden.
2017-11-14 14:03:14.545 4333 RALLYDEBUG rally.api [-] ERROR log from boto module is hide.
2017-11-14 14:03:14.935 4333 ERROR rally.cli.cliutils [-] Unexpected exception in CLI: TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'
2017-11-14 14:03:14.935 4333 ERROR rally.cli.cliutils Traceback (most recent call last):
2017-11-14 14:03:14.935 4333 ERROR rally.cli.cliutils File "/root/rally/installation/local/lib/python2.7/site-packages/rally/cli/cliutils.py", line 676, in run
2017-11-14 14:03:14.935 4333 ERROR rally.cli.cliutils ret = fn(*fn_args, **fn_kwargs)
2017-11-14 14:03:14.935 4333 ERROR rally.cli.cliutils File "/root/rally/installation/local/lib/python2.7/site-packages/rally/cli/commands/task.py", line 814, in trends
2017-11-14 14:03:14.935 4333 ERROR rally.cli.cliutils result = plot.trends(results)
2017-11-14 14:03:14.935 4333 ERROR rally.cli.cliutils File "/root/rally/installation/local/lib/python2.7/site-packages/rally/task/processing/plot.py", line 249, in trends
2017-11-14 14:03:14.935 4333 ERROR rally.cli.cliutils trends.add_result(task["uuid"], workload)
2017-11-14 14:03:14.935 4333 ERROR rally.cli.cliutils File "/root/rally/installation/local/lib/python2.7/site-packages/rally/task/processing/plot.py", line 315, in add_result
2017-11-14 14:03:14.935 4333 ERROR rally.cli.cliutils ts = int(workload["start_time"] * 1000)
2017-11-14 14:03:14.935 4333 ERROR rally.cli.cliutils TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'
2017-11-14 14:03:14.935 4333 ERROR rally.cli.cliutils
When a scenario in a task is failed the workload["start_time"] is None:
added a print in plot.py:
print workload["start_time"]
print workload["name"]
ts = int(workload["start_time"] * 1000)
NovaServerGroups.create_and_list_server_groups
1510662908.38
NovaFlavors.list_flavors
None
NovaServers.list_servers
list_servers is failed and has no start_time set.
For me "Total success rate" in trends is now useless because this is always 100% success.
Regards,
Paul |
Hi,
I cannot create a trends report when there one of workload's contexts is failed.
(installation) root@rally-server:~# rally --version
0.10.1~dev8
(installation) root@rally-server:~# rally --rally-debug task trends --tasks f9a64d6d-6cec-4ce0-9ae4-5f811a6359e6 --out /var/www/html/index.html
2017-11-14 14:03:14.544 4333 RALLYDEBUG rally.api [-] INFO logs from urllib3 and requests module are hide.
2017-11-14 14:03:14.545 4333 RALLYDEBUG rally.api [-] urllib3 insecure warnings are hidden.
2017-11-14 14:03:14.545 4333 RALLYDEBUG rally.api [-] ERROR log from boto module is hide.
2017-11-14 14:03:14.935 4333 ERROR rally.cli.cliutils [-] Unexpected exception in CLI: TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'
2017-11-14 14:03:14.935 4333 ERROR rally.cli.cliutils Traceback (most recent call last):
2017-11-14 14:03:14.935 4333 ERROR rally.cli.cliutils File "/root/rally/installation/local/lib/python2.7/site-packages/rally/cli/cliutils.py", line 676, in run
2017-11-14 14:03:14.935 4333 ERROR rally.cli.cliutils ret = fn(*fn_args, **fn_kwargs)
2017-11-14 14:03:14.935 4333 ERROR rally.cli.cliutils File "/root/rally/installation/local/lib/python2.7/site-packages/rally/cli/commands/task.py", line 814, in trends
2017-11-14 14:03:14.935 4333 ERROR rally.cli.cliutils result = plot.trends(results)
2017-11-14 14:03:14.935 4333 ERROR rally.cli.cliutils File "/root/rally/installation/local/lib/python2.7/site-packages/rally/task/processing/plot.py", line 249, in trends
2017-11-14 14:03:14.935 4333 ERROR rally.cli.cliutils trends.add_result(task["uuid"], workload)
2017-11-14 14:03:14.935 4333 ERROR rally.cli.cliutils File "/root/rally/installation/local/lib/python2.7/site-packages/rally/task/processing/plot.py", line 315, in add_result
2017-11-14 14:03:14.935 4333 ERROR rally.cli.cliutils ts = int(workload["start_time"] * 1000)
2017-11-14 14:03:14.935 4333 ERROR rally.cli.cliutils TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'
2017-11-14 14:03:14.935 4333 ERROR rally.cli.cliutils
When a scenario in a task is failed the workload["start_time"] is None:
added a print in plot.py:
print workload["start_time"]
print workload["name"]
ts = int(workload["start_time"] * 1000)
NovaServerGroups.create_and_list_server_groups
1510662908.38
NovaFlavors.list_flavors
None
NovaServers.list_servers
list_servers is failed and has no start_time set.
For me "Total success rate" in trends is now useless because this is always 100% success.
Regards,
Paul |
|