分享

修改Cinder的Volume配额

arsenduan 发表于 2015-1-22 17:49:18 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 1 19891

为满足实验室教学需求,要在一个Project里创建30+的Volume。通过Horizon修改对应的Project的Quota后,在创建Volume的时候报 "Caught error: Maximum number of volumes allowed (10) exceeded"。



已有(1)人评论

跳转到指定楼层
arsenduan 发表于 2015-1-22 17:51:57
原因

通过Horizon修改Project的Quota只是调用了nova-client的quota-update,因此修改的只是nova的Quota,而现在Cinder已经是一个单独的项目, 并有自己独立的api服务——cinder-api,因此修改nova的Quota时,其中与Volume相关的参数Volumes及Gigabytes已经没有了意义,因此当创建的Volume 超过了Cinder的默认Quota就会报以上的错误而不管你在Horizon中如果修改Project的Quota值。

解决方法

通过cinder-client的命令行工具设置Project中与Volume相关的Quota,命令如下所示:


  1. [root@stackcc ~]# cinder help quota-update
  2. usage: cinder quota-update [--volumes <volumes>] [--gigabytes <gigabytes>]
  3.                            <tenant_id>
  4. Update the quotas for a tenant.
  5. Positional arguments:
  6.   <tenant_id>           UUID of tenant to set the quotas for.
  7. Optional arguments:
  8.   --volumes <volumes>   New value for the "volumes" quota.
  9.   --gigabytes <gigabytes>
  10.                         New value for the "gigabytes" quota.
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条