Exceptions: __init__() takes at least 4 arguments (6 given)

Bug #1361142 reported by Timur Nurlygayanov
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Rally
Fix Released
High
Unassigned

Bug Description

Steps To Reproduce:
1. Install Rally from the master branch on Ubuntu 12.04
2. Configure deployment of existing cloud: rally deployment create --filename=doc/samples/deployments/existing.json --name=existing
3. Check the list of images and verify that this works correctly (execute 'rally show images').
4. Execute 'rally show flavors'

Observed Result:
Traceback in the console:

root@node-21:~/rally# rally show flavors
Command failed, please check log for more info
2014-08-25 09:56:55.723 23849 CRITICAL rally [-] TypeError: __init__() takes at least 4 arguments (6 given)
2014-08-25 09:56:55.723 23849 TRACE rally Traceback (most recent call last):
2014-08-25 09:56:55.723 23849 TRACE rally File "/usr/local/bin/rally", line 10, in <module>
2014-08-25 09:56:55.723 23849 TRACE rally sys.exit(main())
2014-08-25 09:56:55.723 23849 TRACE rally File "/usr/local/lib/python2.7/dist-packages/rally/cmd/main.py", line 40, in main
2014-08-25 09:56:55.723 23849 TRACE rally return cliutils.run(sys.argv, categories)
2014-08-25 09:56:55.723 23849 TRACE rally File "/usr/local/lib/python2.7/dist-packages/rally/cmd/cliutils.py", line 184, in run
2014-08-25 09:56:55.723 23849 TRACE rally ret = fn(*fn_args, **fn_kwargs)
2014-08-25 09:56:55.723 23849 TRACE rally File "<string>", line 2, in flavors
2014-08-25 09:56:55.723 23849 TRACE rally File "/usr/local/lib/python2.7/dist-packages/rally/cmd/envutils.py", line 64, in default_from_global
2014-08-25 09:56:55.723 23849 TRACE rally return f(*args, **kwargs)
2014-08-25 09:56:55.723 23849 TRACE rally File "/usr/local/lib/python2.7/dist-packages/rally/cmd/commands/show.py", line 85, in flavors
2014-08-25 09:56:55.723 23849 TRACE rally nova_client = clients.nova()
2014-08-25 09:56:55.723 23849 TRACE rally File "/usr/local/lib/python2.7/dist-packages/rally/osclients.py", line 61, in wrapper
2014-08-25 09:56:55.723 23849 TRACE rally self.cache[key] = func(self, *args, **kwargs)
2014-08-25 09:56:55.723 23849 TRACE rally File "/usr/local/lib/python2.7/dist-packages/rally/osclients.py", line 143, in nova
2014-08-25 09:56:55.723 23849 TRACE rally cacert=CONF.https_cacert)
2014-08-25 09:56:55.723 23849 TRACE rally File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 506, in Client
2014-08-25 09:56:55.723 23849 TRACE rally return client_class(*args, **kwargs)
2014-08-25 09:56:55.723 23849 TRACE rally TypeError: __init__() takes at least 4 arguments (6 given)
2014-08-25 09:56:55.723 23849 TRACE rally

Tags: cli
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

This issue also reproduced for 'rally show keypairs', 'rally show secgroups' and 'rally show networks' commands.

Changed in rally:
status: New → Confirmed
summary: - CLI command 'rally show flavor' doesn't work
+ Exceptions: __init__() takes at least 4 arguments (6 given)
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

This issue also reproduced when we executes benchmarks:

root@node-21:~/rally# rally -v task start doc/samples/tasks/scenarios/nova/boot-and-delete.json
================================================================================
Task 31799427-2403-49c0-bb22-674ab82839f1 is started
--------------------------------------------------------------------------------
2014-08-25 10:03:15.964 25309 INFO rally.orchestrator.api [-] Benchmark Task 31799427-2403-49c0-bb22-674ab82839f1 on Deployment 35a01ff4-e439-47b7-a165-d10c4c089725
2014-08-25 10:03:15.964 25309 INFO rally.benchmark.engine [-] Task 31799427-2403-49c0-bb22-674ab82839f1 | Starting: Check cloud.
2014-08-25 10:03:16.059 25309 INFO rally.benchmark.engine [-] Task 31799427-2403-49c0-bb22-674ab82839f1 | Completed: Check cloud.
2014-08-25 10:03:16.059 25309 INFO rally.benchmark.engine [-] Task 31799427-2403-49c0-bb22-674ab82839f1 | Starting: Task validation.
2014-08-25 10:03:16.155 25309 INFO rally.benchmark.engine [-] Task 31799427-2403-49c0-bb22-674ab82839f1 | Starting: Task validation of scenarios names.
2014-08-25 10:03:16.158 25309 INFO rally.benchmark.engine [-] Task 31799427-2403-49c0-bb22-674ab82839f1 | Completed: Task validation of scenarios names.
2014-08-25 10:03:16.158 25309 INFO rally.benchmark.engine [-] Task 31799427-2403-49c0-bb22-674ab82839f1 | Starting: Task validation of syntax.
2014-08-25 10:03:16.162 25309 INFO rally.benchmark.engine [-] Task 31799427-2403-49c0-bb22-674ab82839f1 | Completed: Task validation of syntax.
2014-08-25 10:03:16.162 25309 INFO rally.benchmark.engine [-] Task 31799427-2403-49c0-bb22-674ab82839f1 | Starting: Task validation of semantic.
2014-08-25 10:03:16.162 25309 INFO rally.benchmark.context.users [-] Task 31799427-2403-49c0-bb22-674ab82839f1 | Starting: Enter context: `users`
2014-08-25 10:03:16.399 25309 INFO rally.benchmark.context.users [-] Task 31799427-2403-49c0-bb22-674ab82839f1 | Completed: Enter context: `users`
2014-08-25 10:03:16.474 25309 INFO rally.benchmark.context.users [-] Task 31799427-2403-49c0-bb22-674ab82839f1 | Starting: Exit context: `users`
2014-08-25 10:03:16.943 25309 INFO rally.benchmark.context.users [-] Task 31799427-2403-49c0-bb22-674ab82839f1 | Completed: Exit context: `users`

================================================================================
Task 31799427-2403-49c0-bb22-674ab82839f1 is failed.
--------------------------------------------------------------------------------
<type 'exceptions.TypeError'>
__init__() takes at least 4 arguments (6 given)

For more details run:
rally -vd task detailed 31799427-2403-49c0-bb22-674ab82839f1
Using task: 31799427-2403-49c0-bb22-674ab82839f1

Revision history for this message
Boris Pavlovic (boris-42) wrote :

I really don't know how can this occur..

We are testing this in gates... (and in gates we have ubuntu) ..

Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

this issue reproduced on 3 different environments (on Ubuntu 13.10 too).
Looks like the errors after some re-factoring or, probably, with requirements.

Revision history for this message
Boris Pavlovic (boris-42) wrote :

Timur, the short answer is to use fresh nova python client:

https://review.openstack.org/#/c/119776/

Changed in rally:
importance: Undecided → High
Revision history for this message
Boris Pavlovic (boris-42) wrote :
Changed in rally:
status: Confirmed → Fix Released
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.