Execution of users context is failing with conflict error only on Fedora

Bug #1367677 reported by Neependra Khare
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rally
Invalid
Undecided
Unassigned

Bug Description

I have deployed openstack using Devstack and configured Rally on Fedora 20.
While running sample benchmark for keystone "doc/samples/tasks/scenarios/keystone/create-user.json" I am getting following error:-

$ rally -v task start --task doc/samples/tasks/scenarios/keystone/create-user.json
Command failed, please check log for more info
2014-09-10 05:56:38.003 7567 CRITICAL rally [-] Conflict: Conflict occurred attempting to store project. (IntegrityError) (1062, "Duplicate entry 'default-ctx_rally_e7c9f6c7-192f-491a-9565-54fc640d19b9_tenant_0' for key 'domain_id'") 'INSERT INTO project (id, name, domain_id, description, enabled, extra) VALUES (%s, %s, %s, %s, %s, %s)' ('e8b2750aa67d4ba99e4a5997087f3155', 'ctx_rally_e7c9f6c7-192f-491a-9565-54fc640d19b9_tenant_0', 'default', None, 1, '{}') (HTTP 409) (HTTP 409)
2014-09-10 05:56:38.003 7567 TRACE rally Traceback (most recent call last):
2014-09-10 05:56:38.003 7567 TRACE rally File "/usr/bin/rally", line 10, in <module>
2014-09-10 05:56:38.003 7567 TRACE rally sys.exit(main())
2014-09-10 05:56:38.003 7567 TRACE rally File "/usr/lib/python2.7/site-packages/rally/cmd/main.py", line 40, in main
2014-09-10 05:56:38.003 7567 TRACE rally return cliutils.run(sys.argv, categories)
2014-09-10 05:56:38.003 7567 TRACE rally File "/usr/lib/python2.7/site-packages/rally/cmd/cliutils.py", line 184, in run
2014-09-10 05:56:38.003 7567 TRACE rally ret = fn(*fn_args, **fn_kwargs)
2014-09-10 05:56:38.003 7567 TRACE rally File "<string>", line 2, in start
2014-09-10 05:56:38.003 7567 TRACE rally File "/usr/lib/python2.7/site-packages/rally/cmd/envutils.py", line 64, in default_from_global
2014-09-10 05:56:38.003 7567 TRACE rally return f(*args, **kwargs)
2014-09-10 05:56:38.003 7567 TRACE rally File "/usr/lib/python2.7/site-packages/rally/cmd/commands/task.py", line 67, in start
2014-09-10 05:56:38.003 7567 TRACE rally api.start_task(deploy_id, config_dict, task=task)
2014-09-10 05:56:38.003 7567 TRACE rally File "/usr/lib/python2.7/site-packages/rally/orchestrator/api.py", line 107, in start_task
2014-09-10 05:56:38.003 7567 TRACE rally benchmark_engine.run()
2014-09-10 05:56:38.003 7567 TRACE rally File "/usr/lib/python2.7/site-packages/rally/utils.py", line 165, in wrapper
2014-09-10 05:56:38.003 7567 TRACE rally result = f(self, *args, **kwargs)
2014-09-10 05:56:38.003 7567 TRACE rally File "/usr/lib/python2.7/site-packages/rally/benchmark/engine.py", line 203, in run
2014-09-10 05:56:38.003 7567 TRACE rally name, kw.get("context", {}), kw.get("args", {}))
2014-09-10 05:56:38.003 7567 TRACE rally File "/usr/lib/python2.7/site-packages/rally/benchmark/runners/base.py", line 232, in run
2014-09-10 05:56:38.003 7567 TRACE rally with base_ctx.ContextManager(context_obj):
2014-09-10 05:56:38.003 7567 TRACE rally File "/usr/lib/python2.7/site-packages/rally/benchmark/context/base.py", line 148, in __enter__
2014-09-10 05:56:38.003 7567 TRACE rally self.setup()
2014-09-10 05:56:38.003 7567 TRACE rally File "/usr/lib/python2.7/site-packages/rally/benchmark/context/base.py", line 131, in setup
2014-09-10 05:56:38.003 7567 TRACE rally ctx.setup()
2014-09-10 05:56:38.003 7567 TRACE rally File "/usr/lib/python2.7/site-packages/rally/utils.py", line 165, in wrapper
2014-09-10 05:56:38.003 7567 TRACE rally result = f(self, *args, **kwargs)
2014-09-10 05:56:38.003 7567 TRACE rally File "/usr/lib/python2.7/site-packages/rally/benchmark/context/users.py", line 206, in setup
2014-09-10 05:56:38.003 7567 TRACE rally args):
2014-09-10 05:56:38.003 7567 TRACE rally File "/usr/lib64/python2.7/multiprocessing/pool.py", line 655, in next
2014-09-10 05:56:38.003 7567 TRACE rally raise value
2014-09-10 05:56:38.003 7567 TRACE rally Conflict: Conflict occurred attempting to store project. (IntegrityError) (1062, "Duplicate entry 'default-ctx_rally_e7c9f6c7-192f-491a-9565-54fc640d19b9_tenant_0' for key 'domain_id'") 'INSERT INTO project (id, name, domain_id, description, enabled, extra) VALUES (%s, %s, %s, %s, %s, %s)' ('e8b2750aa67d4ba99e4a5997087f3155', 'ctx_rally_e7c9f6c7-192f-491a-9565-54fc640d19b9_tenant_0', 'default', None, 1, '{}') (HTTP 409) (HTTP 409)

The benchmark runs fine if I run it from Ubuntu.

Revision history for this message
Boris Pavlovic (boris-42) wrote :
Changed in rally:
status: New → Invalid
Revision history for this message
Neependra Khare (nkhare) wrote :

Upgrading to latest novaclient solved the problem. Thanks to Boris for suggesting it over IRC.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.