nova-manage with param "user a" results in traceback

Bug #712945 reported by Andre Naehring
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

Calling nova-manage like: "nova-manage user a" displays the following

----8<----

Possible wrong number of arguments supplied
user admin: creates a new admin and prints exports
        arguments: name [access] [secret]
2011-02-04 09:41:49,070 CRITICAL nova.root [-] admin() takes at least 2 arguments (1 given)
(nova.root): TRACE: Traceback (most recent call last):
(nova.root): TRACE: File "/usr/bin/nova-manage", line 694, in <module>
(nova.root): TRACE: main()
(nova.root): TRACE: File "/usr/bin/nova-manage", line 686, in main
(nova.root): TRACE: fn(*argv)
(nova.root): TRACE: TypeError: admin() takes at least 2 arguments (1 given)
(nova.root): TRACE:

---->8----

maybe only cosmetic, the "a" is interpreted as "admin".

Revision history for this message
Ken Pepple (ken-pepple) wrote :

this is operating correctly, nova-manage does a lazy-match on the first & second argument (as it must be a category and action) ... if we don't like the stack-trace, we can comment nova-manage:691 (the raise call).

Revision history for this message
Christian Berendt (berendt) wrote :

I think the stack trace should only be displayed while running in the debug mode.

Revision history for this message
Ken Pepple (ken-pepple) wrote :

i think this assumes that we have a debug mode :)

Revision history for this message
Thierry Carrez (ttx) wrote :

Closing as expected behavior. nova-manage is a bit raw :)

Changed in nova:
status: New → Invalid
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.