You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org
Portal:Cloud VPS/Admin/Nova-manage
< Portal:Cloud VPS | Admin
Jump to navigation
Jump to search
Revision as of 21:28, 31 October 2017 by imported>BryanDavis (intro text)
The nova cli command can be used to examine and alter many settings related to a particular Cloud VPS project or the entire OpenStack cluster. These commands are typically run on the labcontrol* hosts (e.g. labcontrol1001.wikimedia.org).
Credentials
- administrative:
source /root/novaenv.sh
- novaobserver:
/usr/local/bin/observerenv.sh
List all nova-manage subcommands
$ nova help
... lots and lots of stuff ...
List floating IPs
$ nova --os-project-id project-proxy floating-ip-list
+----+----------------+--------------------------------------+-------------+------+
| Id | IP | Server Id | Fixed IP | Pool |
+----+----------------+--------------------------------------+-------------+------+
| 28 | 208.80.155.156 | 6e83879e-336a-4b01-98f8-5084b41e54b7 | 10.68.21.68 | nova |
+----+----------------+--------------------------------------+-------------+------+
Add an IP to the pool
$ nova ???
Manage project quotas
nova help quota-show nova help quota-update
List current quotas for a project
$ nova --os-project-id iiab quota-show
+-----------------------------+-------+
| Quota | Limit |
+-----------------------------+-------+
| instances | 8 |
| cores | 8 |
| ram | 16384 |
| floating_ips | 0 |
| fixed_ips | 200 |
| metadata_items | 128 |
| injected_files | 5 |
| injected_file_content_bytes | 10240 |
| injected_file_path_bytes | 255 |
| key_pairs | 100 |
| security_groups | 10 |
| security_group_rules | 20 |
| server_groups | 10 |
| server_group_members | 10 |
+-----------------------------+-------+
Change a quota (floating_ips) for a project
$ nova quota-update --floating_ips 1 iiab