execution:
- distributed:
- ip1
executor: locust
concurrency: 1
ramp-up: 20s
iterations: 10
scenario: loadTest
master: True
slaves: 4
scenarios:
loadTest:
default-address: http://localhost:8080
script: locust_distributed.py
I am getting below error:
Taurus CLI Tool v1.9.5
21:36:36 INFO: Preparing...
21:36:36 ERROR: TypeError: argument of type 'NoneType' is not iterable
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/bzt/cli.py", line 220, in perform
self.engine.prepare()
File "/usr/local/lib/python2.7/site-packages/bzt/engine.py", line 157, in prepare
self.__prepare_provisioning()
File "/usr/local/lib/python2.7/site-packages/bzt/engine.py", line 490, in __prepare_provisioning
self.provisioning.prepare()
File "/usr/local/lib/python2.7/site-packages/bzt/modules/provisioning.py", line 70, in prepare
executor.prepare()
File "/usr/local/lib/python2.7/site-packages/bzt/modules/locustio.py", line 55, in prepare
self.__setup_script()
File "/usr/local/lib/python2.7/site-packages/bzt/modules/locustio.py", line 155, in __setup_script
self.script = self.get_script_path()
File "/usr/local/lib/python2.7/site-packages/bzt/engine.py", line 894, in get_script_path
if Scenario.SCRIPT in scenario and scenario[Scenario.SCRIPT]:
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.py", line 104, in __contains__
return key in self.data
TypeError: argument of type 'NoneType' is not iterable
bzt.log
[2017-09-05 21:36:36,040 INFO Engine] Preparing...
[2017-09-05 21:36:36,041 DEBUG Engine] Module config: consolidator defaultdict(None, {'class': 'bzt.modules.aggregator.ConsolidatingAggregator'})
[2017-09-05 21:36:36,041 DEBUG root] Importing module: bzt.modules.aggregator
[2017-09-05 21:36:36,043 DEBUG root] Loading class: 'ConsolidatingAggregator' from <module 'bzt.modules.aggregator' from '/usr/local/lib/python2.7/site-packages/bzt/modules/aggregator.pyc'>
[2017-09-05 21:36:36,043 DEBUG Engine.consolidator] Exception in dehumanize_time(inf)
[2017-09-05 21:36:36,043 DEBUG Engine.consolidator] Buffer scaling setup: percentile 95.0 from [0.0, 50.0, 90.0, 95.0, 99.0, 99.9, 100.0] selected
[2017-09-05 21:36:36,043 DEBUG Engine] Module config: monitoring defaultdict(None, {'class': 'bzt.modules.monitoring.Monitoring'})
[2017-09-05 21:36:36,043 DEBUG root] Importing module: bzt.modules.monitoring
[2017-09-05 21:36:36,076 DEBUG root] Loading class: 'Monitoring' from <module 'bzt.modules.monitoring' from '/usr/local/lib/python2.7/site-packages/bzt/modules/monitoring.pyc'>
[2017-09-05 21:36:36,076 DEBUG Engine] Module config: local defaultdict(None, {'class': 'bzt.modules.provisioning.Local'})
[2017-09-05 21:36:36,076 DEBUG root] Importing module: bzt.modules.provisioning
[2017-09-05 21:36:36,076 DEBUG root] Loading class: 'Local' from <module 'bzt.modules.provisioning' from '/usr/local/lib/python2.7/site-packages/bzt/modules/provisioning.pyc'>
[2017-09-05 21:36:36,077 DEBUG Engine] Module config: locust defaultdict(None, {'class': 'bzt.modules.locustio.LocustIOExecutor'})
[2017-09-05 21:36:36,077 DEBUG root] Importing module: bzt.modules.locustio
[2017-09-05 21:36:36,086 DEBUG root] Loading class: 'LocustIOExecutor' from <module 'bzt.modules.locustio' from '/usr/local/lib/python2.7/site-packages/bzt/modules/locustio.pyc'>
[2017-09-05 21:36:36,086 DEBUG Engine.local] Preparing executor: locust/4452036688
[2017-09-05 21:36:36,088 ERROR root] TypeError: argument of type 'NoneType' is not iterable
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/bzt/cli.py", line 220, in perform
self.engine.prepare()
File "/usr/local/lib/python2.7/site-packages/bzt/engine.py", line 157, in prepare
self.__prepare_provisioning()
File "/usr/local/lib/python2.7/site-packages/bzt/engine.py", line 490, in __prepare_provisioning
self.provisioning.prepare()
File "/usr/local/lib/python2.7/site-packages/bzt/modules/provisioning.py", line 70, in prepare
executor.prepare()
File "/usr/local/lib/python2.7/site-packages/bzt/modules/locustio.py", line 55, in prepare
self.__setup_script()
File "/usr/local/lib/python2.7/site-packages/bzt/modules/locustio.py", line 155, in __setup_script
self.script = self.get_script_path()
File "/usr/local/lib/python2.7/site-packages/bzt/engine.py", line 894, in get_script_path
if Scenario.SCRIPT in scenario and scenario[Scenario.SCRIPT]:
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.py", line 104, in __contains__
return key in self.data
TypeError: argument of type 'NoneType' is not iterable
[2017-09-05 21:36:36,088 INFO Engine] Post-processing...
[2017-09-05 21:36:36,088 DEBUG Engine.consolidator] Consolidator buffer[0]: []
Hi,
I see that under your scenario name "loadTest" you did not indent default-address and script to form child items. Most likely it's the issue.
Try adding couple of spaces to those lines.
--
Andrey
CAUTION: This email originated from outside of CA. Do not click links or open attachments unless you recognize the sender and know the content is safe.
--
You received this message because you are subscribed to the Google Groups "codename-taurus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codename-taurus/ebe5b737-04c7-4002-9b06-6d7040b53f69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Usage: locust [options] [LocustClass [LocustClass2 ... ]] locustio-taurus-wrapper.py: error: no such option: --expect-slaves
bzt.log
[2017-09-06 12:05:58,626 DEBUG Engine.local] Post-process locust/loadTest [2017-09-06 12:05:58,627 DEBUG Engine.local] Exception in post_process of LocustIOExecutor: Empty results, most likely loadTest (LocustIOExecutor) failed. Actual reason for this can be found in logs under /var/jenkins_home/workspace/Locust_distributed/result Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/bzt/modules/provisioning.py", line 165, in post_process raise ToolError(message, diagnostics) ToolError: Empty results, most likely loadTest (LocustIOExecutor) failed. Actual reason for this can be found in logs under /var/jenkins_home/workspace/Locust_distributed/result [2017-09-06 12:05:58,627 DEBUG Engine] post_process: Empty results, most likely loadTest (LocustIOExecutor) failed. Actual reason for this can be found in logs under /var/jenkins_home/workspace/Locust_distributed/result Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/bzt/engine.py", line 265, in post_process module.post_process() File "/usr/local/lib/python2.7/dist-packages/bzt/modules/provisioning.py", line 172, in post_process reraise(exc_info) File "/usr/local/lib/python2.7/dist-packages/bzt/modules/provisioning.py", line 165, in post_process raise ToolError(message, diagnostics) ToolError: Empty results, most likely loadTest (LocustIOExecutor) failed. Actual reason for this can be found in logs under /var/jenkins_home/workspace/Locust_distributed/result [2017-09-06 12:05:58,627 DEBUG Engine.consolidator] Consolidator buffer[0]: [] [2017-09-06 12:05:58,627 INFO Engine.final-stats] Test duration: 0:00:01 [2017-09-06 12:05:58,627 DEBUG Engine.console] No logger_handler or orig_stream was detected [2017-09-06 12:05:58,629 DEBUG Engine.Configuration] Dumping YAML config into /var/jenkins_home/workspace/Locust_distributed/result/effective.yml [2017-09-06 12:05:58,656 DEBUG Engine.Configuration] Dumping JSON config into /var/jenkins_home/workspace/Locust_distributed/result/effective.json [2017-09-06 12:05:58,657 ERROR root] Child Process Error: Empty results, most likely loadTest (LocustIOExecutor) failed. Actual reason for this can be found in logs under /var/jenkins_home/workspace/Locust_distributed/result [2017-09-06 12:05:58,658 ERROR root] Locust STDOUT: Usage: locust [options] [LocustClass [LocustClass2 ... ]] locustio-taurus-wrapper.py: error: no such option: --expect-slaves [2017-09-06 12:05:58,658 DEBUG root] ToolError: Empty results, most likely loadTest (LocustIOExecutor) failed. Actual reason for this can be found in logs under /var/jenkins_home/workspace/Locust_distributed/result Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/bzt/cli.py", line 228, in perform self.engine.post_process() File "/usr/local/lib/python2.7/dist-packages/bzt/engine.py", line 278, in post_process reraise(exc_info) File "/usr/local/lib/python2.7/dist-packages/bzt/engine.py", line 265, in post_process module.post_process() File "/usr/local/lib/python2.7/dist-packages/bzt/modules/provisioning.py", line 172, in post_process reraise(exc_info) File "/usr/local/lib/python2.7/dist-packages/bzt/modules/provisioning.py", line 165, in post_process raise ToolError(message, diagnostics) ToolError: Empty results, most likely loadTest (LocustIOExecutor) failed. Actual reason for this can be found in logs under /var/jenkins_home/workspace/Locust_distributed/result
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taurus+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codename-taurus/ebe5b737-04c7-4002-9b06-6d7040b53f69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "codename-taurus" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codename-taurus/mZ88jwE7WwQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codename-taurus+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codename-taurus/59dad2bd-3fd5-94e0-8105-8ecd5dc5c642%40contractor.ca.com.
This means you are using older version of Locust, which has no support for that feature. You'd need fresher version.
And btw, I'm not Andy.
--
Andrey