-
Notifications
You must be signed in to change notification settings - Fork 3
How to replicate nova list and euca describe instances?
In futuregrid/flask_cm/, we would like to provide real-time metrics using nova client python tools. What we planned to do is as follows:
- install python-novaclient
- get functions and figure out how to use it for getting
- display current running instances in a user and administrator views
nova has its own api which is python-novaclient. euca-describe-instances comes with boto and is compatible with nova.
- node.js
There is a lack of documentation. I am currently looking into the source code to use the API. Update I've got a question about that if the documentation is missing, how does people develop OpenStack software with the API? In my guessing, it doesn't need a documentation if you are familiar with OpenStack Structure. nova client keeps fundamental structures of main WSGI services. For example, servers returns a class instance for virtual machine instances. In other words, if you can understand json typed response messages from WSGI, you can simply guess how to use python-novaclient in some sense. The following documentation is a basic guide for python developers of openstack: http://docs.openstack.org/api/openstack-compute/programmer/content/getting-detailed-server-information-using-python.html
shell.py ->OpenStackComputeShell.main() extensions()
- discover_extensions
- run_extenstions
nova --debug list