Created
May 28, 2014 20:40
-
-
Save marcoemorais/a9acf929a4b8ff1da8a2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(Pdb) bt | |
/home/mmorais/rallyve/bin/rally(10)<module>() | |
-> sys.exit(main()) | |
/home/mmorais/rallyve/lib/python2.7/site-packages/rally/cmd/main.py(44)main() | |
-> return cliutils.run(sys.argv, categories) | |
/home/mmorais/rallyve/lib/python2.7/site-packages/rally/cmd/cliutils.py(193)run() | |
-> ret = fn(*fn_args, **fn_kwargs) | |
<string>(2)start() | |
/home/mmorais/rallyve/lib/python2.7/site-packages/rally/cmd/envutils.py(63)default_from_global() | |
-> return f(*args, **kwargs) | |
/home/mmorais/rallyve/lib/python2.7/site-packages/rally/cmd/commands/task.py(67)start() | |
-> api.start_task(deploy_id, config_dict, task=task) | |
/home/mmorais/rallyve/lib/python2.7/site-packages/rally/orchestrator/api.py(103)start_task() | |
-> benchmark_engine.validate() | |
/home/mmorais/rallyve/lib/python2.7/site-packages/rally/utils.py(162)wrapper() | |
-> result = f(self, *args, **kwargs) | |
/home/mmorais/rallyve/lib/python2.7/site-packages/rally/benchmark/engine.py(154)validate() | |
-> self._validate_config_semantic(self.config) | |
/home/mmorais/rallyve/lib/python2.7/site-packages/rally/utils.py(162)wrapper() | |
-> result = f(self, *args, **kwargs) | |
/home/mmorais/rallyve/lib/python2.7/site-packages/rally/benchmark/engine.py(136)_validate_config_semantic() | |
-> ctx.setup() | |
/home/mmorais/rallyve/lib/python2.7/site-packages/rally/utils.py(162)wrapper() | |
-> result = f(self, *args, **kwargs) | |
> /home/mmorais/rallyve/lib/python2.7/site-packages/rally/benchmark/context/users.py(174)setup() | |
-> LOG.debug("") | |
(Pdb) l 150,170 | |
150 "Exception: %(ex)s" % | |
151 {"user_id": user["id"], "ex": ex}) | |
152 | |
153 @rutils.log_task_wrapper(LOG.info, _("Enter context: `users`")) | |
154 def setup(self): | |
155 """Create tenants and users, using pool of threads.""" | |
156 | |
157 users_num = self.config["users_per_tenant"] | |
158 | |
159 args = [(self.endpoint, users_num, self.task["uuid"], i) | |
160 for i in range(self.config["tenants"])] | |
161 | |
162 LOG.debug("Creating %d users using %s threads" % ( | |
163 users_num * self.config["tenants"], self.config["concurrent"])) | |
164 | |
165 for tenant, users in utils.run_concurrent( | |
166 self.config["concurrent"], | |
167 UserGenerator, | |
168 "_create_tenant_users", | |
169 args): | |
170 self.context["tenants"].append(tenant) | |
(Pdb) p self.context | |
{'admin': {'endpoint': <rally.objects.endpoint.Endpoint object at 0x3b2bd10>}, 'task': <rally.objects.task.Task object at 0x2742dd0>, 'tenants': [{'id': u'88ab427f06794ae081111b677430020c', 'name': u'ctx_rally_2a0e9ea7-726d-49f4-a7aa-1475c4bb29f9_tenant_0'}], 'users': [{'tenant_id': u'88ab427f06794ae081111b677430020c', 'endpoint': <rally.objects.endpoint.Endpoint object at 0x3f6e590>, 'id': u'fc4f22c90a644f4f9ac724835475f181'}]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment