Openstack: openstack 配额管理
openstack 配额管理
·
openstack 配额管理
查看项目配额
root@controller120:~/liaozhengjie# openstack quota show admin
+-----------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| backup-gigabytes | 1000 |
| backups | 10 |
| cores | 20 |
| fixed-ips | -1 |
| floating-ips | 50 |
| gigabytes | 1000 |
| gigabytes___DEFAULT__ | -1 |
| groups | 10 |
| health_monitors | None |
| injected-file-size | 10240 |
| injected-files | 5 |
| injected-path-size | 255 |
| instances | 10 |
| key-pairs | 100 |
| l7_policies | None |
| listeners | None |
| load_balancers | None |
| location | Munch({'cloud': '', 'region_name': '', 'zone': None, 'project': Munch({'id': '298308f54e424ac29f65f35576e71392', 'name': 'admin', 'domain_id': None, 'domain_name': 'Default'})}) |
| name | None |
| networks | 100 |
| per-volume-gigabytes | -1 |
| pools | None |
| ports | 500 |
| project | 298308f54e424ac29f65f35576e71392 |
| project_name | admin |
| properties | 128 |
| ram | 51200 |
| rbac_policies | 10 |
| routers | 10 |
| secgroup-rules | 100 |
| secgroups | 10 |
| server-group-members | 10 |
| server-groups | 10 |
| snapshots | 10 |
| snapshots___DEFAULT__ | -1 |
| subnet_pools | -1 |
| subnets | 100 |
| volumes | 10 |
| volumes___DEFAULT__ | -1 |
+-----------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
修改项目相关的配额
openstack quota set --core 40 --ram 102400 --instances 20 admin
查看资源有可能被虚拟的节点
root@controller120:~/liaozhengjie# nova hypervisor-list
+--------------------------------------+---------------------+-------+---------+
| ID | Hypervisor hostname | State | Status |
+--------------------------------------+---------------------+-------+---------+
| 1c89c07e-05d5-41f5-9c99-1d2f469342cd | compute121 | up | enabled |
| 6b570256-8e90-490a-8d0b-20b667da4ae1 | controller120 | up | enabled |
| 19543fe4-4619-46ea-8ad5-6de49034d7f9 | compute123 | up | enabled |
+--------------------------------------+---------------------+-------+---------+
查看默认配额
root@controller120:~/liaozhengjie# nova quota-defaults
+----------------------+-------+
| Quota | Limit |
+----------------------+-------+
| instances | 10 |
| cores | 20 |
| ram | 51200 |
| metadata_items | 128 |
| key_pairs | 100 |
| server_groups | 10 |
| server_group_members | 10 |
+----------------------+-------+
查看项目存储默认配额
root@block129:~# cinder quota-defaults admin
+-----------------------+-------+
| Property | Value |
+-----------------------+-------+
| backup_gigabytes | 1000 |
| backups | 10 |
| gigabytes | 1000 |
| gigabytes___DEFAULT__ | -1 |
| groups | 10 |
| per_volume_gigabytes | -1 |
| snapshots | 10 |
| snapshots___DEFAULT__ | -1 |
| volumes | 10 |
| volumes___DEFAULT__ | -1 |
+-----------------------+-------+
查看项目存储实际配额
root@block129:~# cinder quota-show admin
+-----------------------+-------+
| Property | Value |
+-----------------------+-------+
| backup_gigabytes | 1000 |
| backups | 10 |
| gigabytes | 1000 |
| gigabytes___DEFAULT__ | -1 |
| groups | 10 |
| per_volume_gigabytes | -1 |
| snapshots | 10 |
| snapshots___DEFAULT__ | -1 |
| volumes | 10 |
| volumes___DEFAULT__ | -1 |
+-----------------------+-------+
修改项目配额
root@block129:~# cinder quota-update --gigabytes 10000 admin ## 这个修改好像要用openstack命令修改才能生效
+-----------------------+-------+
| Property | Value |
+-----------------------+-------+
| backup_gigabytes | 1000 |
| backups | 10 |
| gigabytes | 10000 |
| gigabytes___DEFAULT__ | -1 |
| groups | 10 |
| per_volume_gigabytes | -1 |
| snapshots | 10 |
| snapshots___DEFAULT__ | -1 |
| volumes | 10 |
| volumes___DEFAULT__ | -1 |
+-----------------------+-------+
更多推荐
已为社区贡献1条内容
所有评论(0)