summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorAndy Smith <code@term.ie>2011-01-15 02:25:00 +0000
committerTarmac <>2011-01-15 02:25:00 +0000
commit825652456ac826a2108956ba8a9cbdc8221520dc (patch)
tree9b47def598777854627be4ffa3124049b46ca08f /nova/exception.py
parent34ceed1ce114ab01eca06eced00a204ae71dc3db (diff)
parent69c11c27c20c74aced491ecfe78a80872ad6232a (diff)
downloadnova-825652456ac826a2108956ba8a9cbdc8221520dc.tar.gz
nova-825652456ac826a2108956ba8a9cbdc8221520dc.tar.xz
nova-825652456ac826a2108956ba8a9cbdc8221520dc.zip
Adds a developer interface with direct access to the internal inter-service APIs and a command-line tool based on reflection to interact with them.
Example output from command-line tool: (.nova-venv)termie@preciousroy:p/nova/easy_api % ./bin/stack usage: stack [options] <controller> <method> [arg1=value arg2=value]   `stack help` should output the list of available controllers   `stack <controller>` should output the available methods for that controller   `stack help <controller>` should do the same   `stack help <controller> <method>` should output info for a method ./bin/stack:   -?,--[no]help: show this help   --[no]helpshort: show usage only for this module   --[no]helpxml: like --help, but generates XML output   --host: Direct API host     (default: '127.0.0.1')   --port: Direct API host     (default: '8001')     (an integer)   --project: Direct API project     (default: 'proj1')   --user: Direct API username     (default: 'user1') Available controllers:    reflect Reflection methods to list available methods.    compute API for interacting with the compute manager. (.nova-venv)termie@preciousroy:p/nova/easy_api % ./bin/stack help reflect Available methods for reflect:    get_controllers List available controllers.    get_methods List available methods.    get_method_info Get detailed information about a method. (.nova-venv)termie@preciousroy:p/nova/easy_api % ./bin/stack help reflect get_method_info get_method_info(method): Get detailed information about a method. (.nova-venv)termie@preciousroy:p/nova/easy_api % ./bin/stack reflect get_method_info method=/reflect/get_method_info {u'args': [[u'method']],  u'doc': u'Get detailed information about a method.',  u'name': u'get_method_info',  u'short_doc': u'Get detailed information about a method.'}
Diffstat (limited to 'nova/exception.py')
0 files changed, 0 insertions, 0 deletions