首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >openstack渣渣VolumeSizeExceedsAvailableQuota tips错配体积类型

openstack渣渣VolumeSizeExceedsAvailableQuota tips错配体积类型
EN

Stack Overflow用户
提问于 2022-04-13 04:16:30
回答 1查看 236关注 0票数 0

创建卷将显示相同的错误提示,无论使用什么--type选项。

代码语言:javascript
复制
# 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配额超过了。如下所示:

代码语言:javascript
复制
# openstack volume create --size 500 --type ceph_ssd test_vol_ssd
VolumeSizeExceedsAvailableQuota: Requested volume or snapshot exceeds allowed gigabytes_ceph_ssd quota.

这有什么问题吗?我怎样才能解决这个问题?有什么是我误解的吗?

EN

回答 1

Stack Overflow用户

发布于 2022-04-13 10:15:49

为我的无知感到羞耻。

千兆字节的意思是Volume gigabytes allowed for each project

它将检查exception.OverQuota以前是否用于创建新卷。首先将检查所有卷容量的gigabytes_specify_volume_type G字节,然后检查 with create with --type选项。

在开发环境中验证:

代码语言:javascript
复制
$ 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__                          |
+--------------------------------+--------------------------------------+
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71851811

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档