Configuration Tools

Nova administration is accomplished through a tool called nova-manage. Most commands take the form nova-manage command subcommand and any necessary arguments. At any time, you can see help for nova-manage by leaving off any arguments, subcommands, or commands. Here is an example of finding help for creating a new user:

$ nova-manage
nova-manage category action [<args>]
Available categories:
    user
    account
    project
    role
    shell
    vpn
    fixed
    floating
    network
    vm
    service
    db
    volume
    instance_type
    image
    flavor
$ nova-manage user
nova-manage category action [<args>]
Available actions for user category:
    admin
    create
    delete
    exports
    list
    modify
    revoke
$ nova-manage user create
Possible wrong number of arguments supplied
user create: creates a new user and prints exports
        arguments: name [access] [secret]
2011-07-15 18:55:13,520 CRITICAL nova [-] create() takes at least 2 arguments (1 given)

Do not worry about the error after the nova-manage user create—it is simply telling you that you haven’t supplied the necessary arguments.

Service

Services can be monitored through the nova-manage command on a service or host basis. With the service, you can either view or actively manage services. For example, you can query a host for the services that it currently offers, or simply list all the services that are available. This is an essential command for testing or troubleshooting your deployment. Below is an example that walks through the full array of of service subcommands: listing services, ...

Get Deploying OpenStack now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.