2
Copyright 2010-2011 United States Government as represented by the
3
Administrator of the National Aeronautics and Space Administration.
6
Licensed under the Apache License, Version 2.0 (the "License"); you may
7
not use this file except in compliance with the License. You may obtain
8
a copy of the License at
10
http://www.apache.org/licenses/LICENSE-2.0
12
Unless required by applicable law or agreed to in writing, software
13
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15
License for the specific language governing permissions and limitations
19
The nova-manage command
20
=======================
25
The nova-manage command is used to perform many essential functions for
26
administration and ongoing maintenance of nova, such as user creation,
27
vpn management, and much more.
29
The standard pattern for executing a nova-manage command is:
30
``nova-manage <category> <command> [<args>]``
32
For example, to obtain a list of all projects:
33
``nova-manage project list``
35
Run without arguments to see a list of available command categories:
38
Categories are user, project, role, shell, vpn, and floating. Detailed descriptions are below.
40
You can also run with a category argument such as user to see a list of all commands in that category:
43
These sections describe the available categories and arguments for nova-manage.
48
``nova-manage db version``
50
Print the current database version.
52
``nova-manage db sync``
54
Sync the database up to the most recent version. This is the standard way to create the db as well.
59
``nova-manage user admin <username>``
61
Create an admin user with the name <username>.
63
``nova-manage user create <username>``
65
Create a normal user with the name <username>.
67
``nova-manage user delete <username>``
69
Delete the user with the name <username>.
71
``nova-manage user exports <username>``
73
Outputs a list of access key and secret keys for user to the screen
75
``nova-manage user list``
77
Outputs a list of all the user names to the screen.
79
``nova-manage user modify <accesskey> <secretkey> <admin?T/F>``
81
Updates the indicated user keys, indicating with T or F if the user is an admin user. Leave any argument blank if you do not want to update it.
86
``nova-manage project add <projectname> <username>``
88
Add a nova project with the name <projectname> to the database that will be administered by the named user.
90
``nova-manage project create <projectname> <projectmanager>``
92
Create a new nova project with the name <projectname> (you still need to do nova-manage project add <projectname> to add it to the database). The <projectmanager> username is the administrator of the project.
94
``nova-manage project delete <projectname>``
96
Delete a nova project with the name <projectname>.
98
``nova-manage project environment <projectname> <username>``
100
Exports environment variables for the named project to a file named novarc.
102
``nova-manage project list``
104
Outputs a list of all the projects to the screen.
106
``nova-manage project quota <projectname>``
108
Outputs the size and specs of the project's instances including gigabytes, instances, floating IPs, volumes, and cores.
110
``nova-manage project remove <projectname>``
112
Deletes the project with the name <projectname>.
114
``nova-manage project zipfile <projectname> <username> <directory for credentials>``
116
Compresses all related files for a created project into a named zip file such as nova.zip.
121
nova-manage role <action> [<argument>]
122
``nova-manage role add <username> <rolename> <(optional) projectname>``
124
Add a user to either a global or project-based role with the indicated <rolename> assigned to the named user. Role names can be one of the following five roles: admin, itsec, projectmanager, netadmin, developer. If you add the project name as the last argument then the role is assigned just for that project, otherwise the user is assigned the named role for all projects.
126
``nova-manage role has <username> <projectname>``
127
Checks the user or project and responds with True if the user has a global role with a particular project.
129
``nova-manage role remove <username> <rolename>``
130
Remove the indicated role from the user.
135
``nova-manage shell bpython``
137
Starts a new bpython shell.
139
``nova-manage shell ipython``
141
Starts a new ipython shell.
143
``nova-manage shell python``
145
Starts a new python shell.
147
``nova-manage shell run``
149
Starts a new shell using python.
151
``nova-manage shell script <path/scriptname>``
153
Runs the named script from the specified path with flags set.
158
``nova-manage vpn list``
160
Displays a list of projects, their IP prot numbers, and what state they're in.
162
``nova-manage vpn run <projectname>``
164
Starts the VPN for the named project.
166
``nova-manage vpn spawn``
173
``nova-manage floating create <ip_range> [--pool <pool>] [--interface <interface>]``
175
Creates floating IP addresses for the given range, optionally specifying
176
a floating pool and a network interface.
178
``nova-manage floating delete <ip_range>``
180
Deletes floating IP addresses in the range given.
182
``nova-manage floating list``
184
Displays a list of all floating IP addresses.
189
``nova-manage image image_register <path> <owner>``
191
Registers an image with the image service.
193
``nova-manage image kernel_register <path> <owner>``
195
Registers a kernel with the image service.
197
``nova-manage image ramdisk_register <path> <owner>``
199
Registers a ramdisk with the image service.
201
``nova-manage image all_register <image_path> <kernel_path> <ramdisk_path> <owner>``
203
Registers an image kernel and ramdisk with the image service.
205
``nova-manage image convert <directory>``
207
Converts all images in directory from the old (Bexar) format to the new format.
218
* Managers/Drivers: utils.import_object from string flag
219
* virt/connections: conditional loading from string flag
220
* db: LazyPluggable via string flag
221
* auth_manager: utils.import_class based on string flag
222
* Volumes: moving to pluggable driver instead of manager
223
* Network: pluggable managers
224
* Compute: same driver used, but pluggable at connection
230
Rabbit is the main messaging queue, used for all communication between Nova components and it also does the remote procedure calls and inter-process communication.
247
Concept: Security Groups
248
------------------------
253
Concept: Certificate Authority
254
------------------------------
256
Nova does a small amount of certificate management. These certificates are used for :ref:`project vpns <cloudpipe>` and decrypting bundled images.