Home > openstack > python NovaClient & ‘nova’ command

python NovaClient & ‘nova’ command

According to [1] NovaClient  is a client for the OpenStack Nova API. There’s a Python API (the novaclient module), and a command-line script (nova command) for communicating with Nova API running on the server side ( informally saying).

Informally speaking ‘nova’ command exposes many functionalities of the openstack cloud to the users. For example ‘nova list’ shows a list of VM running in the openstack cloud. Again, ‘nova show <ID>’ show details of a Virtual machine.

It is worth to mention that, novaclient (‘nova’ command) only calls the appropriate function in  openstack compute service in the server side.

One very interesting option (useful for debugging and development) with with ‘nova’ command is ‘–debug‘. If you can ‘nova –debug list’ it  will show the list of REST Api calls (http request & Responses) that have been made to the Nova API ( at the server side, informally speaking).

Some other options associated with ‘nova’ command are –os-username, --os-password and --os-tenant-name. We may not have to explicitly use these options with nova command because these options with default values are set and sent automatically.

if we want to see the actual script that is being executed with ‘nova’ command, we may issue the command

‘which nova’ which in my case shows /usr/local/bin/nova

Hopefully , at some other post I would  go through the directory structure  and code flow of openstack python novaclient .


1. https://github.com/openstack/python-novaclient

Categories: openstack
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: