创建卷将显示相同的错误提示,无论使用什么--type选项。
# openstack volume create --size 500 test_vol
VolumeSizeExceedsAvailableQuota: Requested volume or snapshot exceeds allowed gigabytes quota.
Requested 500G, quota is 965362G and 965362G has been consumed.
# openstack volume create --size 500 --type ceph_ssd test_vol_ssd
VolumeSizeExceedsAvailableQuota: Requested volume or snapshot exceeds allowed gigabytes quota.
Requested 500G, quota is 965362G and 965362G has been consumed.
# openstack quota show
| Field | Value |
| gigabytes | 965362 |
| gigabytes___DEFAULT__ | -1 |
| gigabytes_ceph_ssd | 9965362 |有时,当创建一个gigabytes_ceph_ssd卷类型时,它会提示ceph_ssd配额超过了。如下所示:
# openstack volume create --size 500 --type ceph_ssd test_vol_ssd
VolumeSizeExceedsAvailableQuota: Requested volume or snapshot exceeds allowed gigabytes_ceph_ssd quota.这有什么问题吗?我怎样才能解决这个问题?有什么是我误解的吗?
发布于 2022-04-13 10:15:49
为我的无知感到羞耻。
千兆字节的意思是Volume gigabytes allowed for each project。
它将检查exception.OverQuota以前是否用于创建新卷。首先将检查所有卷容量的gigabytes_specify_volume_type G字节,然后检查 with create with --type选项。
在开发环境中验证:
$ openstack volume create --size 10 --type ceph_ssd test_vol4
VolumeSizeExceedsAvailableQuota: ... gigabytes_ceph_ssd quota. Requested 10G, quota is 16753G and 16745G has been consumed.
$ openstack volume create --size 100 test_vol4
VolumeSizeExceedsAvailableQuota: ... gigabytes quota. Requested 100G, quota is 1280970G and 1280951G has been consumed.
### created success, consumed will add +8G in gigabytes
$ openstack volume create --size 8 --type ceph_ssd test_vol4
$ openstack volume create --size 100 test_vol4
VolumeSizeExceedsAvailableQuota: ... gigabytes quota. Requested 100G, quota is 1280970G and 1280959G has been consumed.
### check quota pass by gigabytes default by not gigabytes_ceph_ssd
$ openstack volume create --size 11 --type ceph_ssd test_vol4
VolumeSizeExceedsAvailableQuota: ... gigabytes_ceph_ssd quota. Requested 11G, quota is 16753G and 16753G has been consumed.
### check quota not pass by gigabytes default
$ openstack volume create --size 12 --type ceph_ssd test_vol4
VolumeSizeExceedsAvailableQuota: ... gigabytes quota. Requested 12G, quota is 1280970G and 1280959G has been consumed.
### without limit by gigabytes default quota
$ openstack quota set --gigabytes -1 proj_name
$ openstack volume create --size 12 --type ceph_ssd test_vol4
VolumeSizeExceedsAvailableQuota: ... gigabytes_ceph_ssd quota. Requested 12G, quota is 16753G and 16753G has been consumed.
### according to the CapacityWeigher, it will distribute the volume to ceph_ssd backend without specify volume type
### we have two backend ceph pool: ceph_hdd(capacity smaller than the other), ceph_ssd
### it will no check the quota of gigabytes_ceph_ssd, bcz create without --type option
$ openstack volume create --size 100 test_vol5
$ openstack volume show test_vol5
+--------------------------------+--------------------------------------+
| Field | Value |
+--------------------------------+--------------------------------------+
| name | test_vol5 |
| os-vol-host-attr:host | node-2@ceph_ssd#ceph_ssd |
| size | 100 |
| status | available |
| type | __DEFAULT__ |
+--------------------------------+--------------------------------------+https://stackoverflow.com/questions/71851811
复制相似问题