nova 服务的功能和特点:
实例生命周期的管理
管理计算资源
网络和认证管理
REST 风格的 API
异步的一致性通信
Hypervisor 透明:支持 Xen,XenServer/XCP,KVM,UML,VMware vSphere and Hyper-V
[root@controller ~]# openstack project list
+----------------------------------+---------+
| ID | Name |
+----------------------------------+---------+
| 4454e6deae3640b190d5ad2c3571e90d | service |
| f1942a0395ee4f91a9c6fcc4bd348cab | admin |
+----------------------------------+---------+
默认配额
[root@controller ~]# nova quota-defaults
+----------------------+-------+
| Quota | Limit |
+----------------------+-------+
| instances | 10 |
| cores | 20 |
| ram | 51200 |
| metadata_items | 128 |
| key_pairs | 100 |
| server_groups | 10 |
| server_group_members | 10 |
+----------------------+-------+
修改默认配额:例如
nova quota-class-update default --instances 15
例如:
[root@controller ~]# openstack project show -f value -c id service
4454e6deae3640b190d5ad2c3571e90d
或者
[root@controller ~]# openstack project list | awk '/service/ {print $2}'
4454e6deae3640b190d5ad2c3571e90d
[root@controller ~]# tenant=$(openstack project list | awk '/service/ {print $2}')
[root@controller ~]# nova quota-show --tenant $tenant
+----------------------+-------+
| Quota | Limit |
+----------------------+-------+
| instances | 10 |
| cores | 20 |
| ram | 51200 |
| metadata_items | 128 |
| key_pairs | 100 |
| server_groups | 10 |
| server_group_members | 10 |
+----------------------+-------+
nova quota-update --user $projectUser --floating-ips 12 $project
[root@controller ~]# nova limits --tenant $tenant
+------+-----+-------+--------+------+----------------+
| Verb | URI | Value | Remain | Unit | Next_Available |
+------+-----+-------+--------+------+----------------+
+------+-----+-------+--------+------+----------------+
+--------------------+------+-------+
| Name | Used | Max |
+--------------------+------+-------+
| Cores | 0 | 20 |
| Instances | 0 | 10 |
| Keypairs | - | 100 |
| RAM | 0 | 51200 |
| Server Meta | - | 128 |
| ServerGroupMembers | - | 10 |
| ServerGroups | 0 | 10 |
+--------------------+------+-------+
查看:
nova help quota-update
[root@controller ~]# cinder quota-defaults 4454e6deae3640b190d5ad2c3571e90d
+----------------------+-------+
| Property | Value |
+----------------------+-------+
| backup_gigabytes | 1000 |
| backups | 10 |
| gigabytes | 1000 |
| groups | 10 |
| per_volume_gigabytes | -1 |
| snapshots | 10 |
| volumes | 10 |
+----------------------+-------+
修改之后:
[root@controller ~]# cinder quota-update --volumes 15 4454e6deae3640b190d5ad2c3571e90d
+----------------------+-------+
| Property | Value |
+----------------------+-------+
| backup_gigabytes | 1000 |
| backups | 10 |
| gigabytes | 1000 |
| groups | 10 |
| per_volume_gigabytes | -1 |
| snapshots | 10 |
| volumes | 15 |
+----------------------+-------+
[root@controller ~]# cinder quota-show $tenant
+----------------------+-------+
| Property | Value |
+----------------------+-------+
| backup_gigabytes | 1000 |
| backups | 10 |
| gigabytes | 1000 |
| groups | 10 |
| per_volume_gigabytes | -1 |
| snapshots | 10 |
| volumes | 15 |
+----------------------+-------+