操作环境:
OpenStack Icehouse
在cinder创建volume的时候,提示因为quota限额,无法创建
[root@ceph-osd-1 ~]# cinder create --display-name osd5 150 ERROR: VolumeSizeExceedsAvailableQuota: Requested volume or snapshot exceeds allowed Gigabytes quota. Requested 150G, quota is 1000G and 950G has been consumed. (HTTP 413) (Request-ID: req-68783d25-0f66-4071-8b5e-ac69a3108755)
查看tenant-id
[root@ceph-osd-1 ~]# keystone user-list --tenant-id=admin
+----------------------------------+-------+---------+----------------------+
| id | name | enabled | email |
+----------------------------------+-------+---------+----------------------+
| 5557d650ddec46259a08666edd0cb4d1 | admin | True | bob.peng@hgctech.com |
+----------------------------------+-------+---------+----------------------+
查看对应的quota限制
[root@ceph-osd-1 ~]# cinder quota-show de4cfe75cea3457ba1bc1fa53a00e01b
+-----------+-------+
| Property | Value |
+-----------+-------+
| gigabytes | 1000 |
| snapshots | 10 |
| volumes | 10 |
+-----------+-------+
修改quota限制
[root@ceph-osd-1 ~]# cinder quota-update --gigabytes=100000 --snapshots=100 --volumes=100 de4cfe75cea3457ba1bc1fa53a00e01b
[root@ceph-osd-1 ~]# cinder quota-show de4cfe75cea3457ba1bc1fa53a00e01b
+-----------+--------+
| Property | Value |
+-----------+--------+
| gigabytes | 100000 |
| snapshots | 100 |
| volumes | 100 |
+-----------+--------+
创建volume
[root@ceph-osd-1 ~]# cinder create --display-name osd5 150
+---------------------+--------------------------------------+
| Property | Value |
+---------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| created_at | 2014-10-27T01:59:45.300513 |
| display_description | None |
| display_name | osd5 |
| encrypted | False |
| id | 17791d6a-8ee3-4c8e-b406-2eb0db9c7aeb |
| metadata | {} |
| size | 150 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| volume_type | None |
+---------------------+--------------------------------------+