OpenStack Folsom创建实例失败之Quota

OpenStack Folsom中有一个BUG,那就是Fixed_Ips的配额问题

查阅官方文档得出,OpenStack的的默认quota配额如下:

Table 3.1. Description of nova.conf file configuration options for quotas Configuration option=Default value(Type) Description

quota_cores=20

 

(IntOpt) number of instance cores allowed per project (tenant)

 

quota_floating_ips=10

 

(IntOpt) number of floating ips allowed per project (tenant)

 

quota_gigabytes=1000

 

(IntOpt) number of volume gigabytes allowed per project (tenant)

 

quota_injected_file_content_bytes=10240

 

(IntOpt) number of bytes allowed per injected file

 

quota_injected_file_path_bytes=255

 

(IntOpt) number of bytes allowed per injected file path

 

quota_injected_files=5

 

(IntOpt) number of injected files allowed

 

quota_instances=10

 

(IntOpt) number of instances allowed per project (tenant)

 

quota_key_pairs=100

 

(IntOpt) number of key pairs allowed per user

 

quota_metadata_items=128

 

(IntOpt) number of metadata items allowed per instance

 

quota_ram=51200

 

(IntOpt) megabytes of instance ram allowed per project (tenant)

 

quota_security_group_rules=20

 

(IntOpt) number of security rules per security group

 

quota_security_groups=10

 

(IntOpt) number of security groups per project (tenant)

 

quota_volumes=10

 

(IntOpt) number of volumes allowed per project (tenant)

 

其中并没有指出Fixed_Ips的参数和配置,而使用管理员在Dashboard控制台中查看默认默认Quota的时候,显示如下图:

OpenStack Folsom创建实例失败之Quota

在控制台的Project中可Modify Quotas的功能中,也没有发现可修改的Fix_Ips项,如下图:

OpenStack Folsom创建实例失败之Quota

再查阅官方Nova配置文档,表明Quotas默认值可以通过修改nova配置文件/etc/nova/nova.conf进行配置,官方文档地址:,其中关于quotas的配置参数说明如下:

Table 5.8. Description of nova.conf file configuration options for quotas

Configuration option=Default value

 

(Type) Description

 

max_age=0

 

(IntOpt) number of seconds between subsequent usage refreshes

 

quota_cores=20

 

(IntOpt) number of instance cores allowed per project (tenant)

 

quota_driver=nova.quota.DbQuotaDriver

 

(StrOpt) Default driver to use for quota checks

 

quota_floating_ips=10

 

(IntOpt) number of floating ips allowed per project (tenant)

 

quota_gigabytes=1000

 

(IntOpt) number of volume gigabytes allowed per project (tenant)

 

quota_injected_file_content_bytes=10240

 

(IntOpt) number of bytes allowed per injected file

 

quota_injected_file_path_bytes=255

 

(IntOpt) number of bytes allowed per injected file path

 

quota_injected_files=5

 

(IntOpt) number of injected files allowed

 

quota_instances=10

 

(IntOpt) number of instances allowed per project (tenant)

 

quota_key_pairs=100

 

(IntOpt) number of key pairs allowed per user

 

quota_metadata_items=128

 

(IntOpt) number of metadata items allowed per instance

 

quota_ram=51200

 

(IntOpt) megabytes of instance ram allowed per project (tenant)

 

quota_security_group_rules=20

 

(IntOpt) number of security rules per security group

 

quota_security_groups=10

 

(IntOpt) number of security groups per project (tenant)

 

quota_volumes=10

 

(IntOpt) number of volumes allowed per project (tenant)

 

reservation_expire=86400

 

(IntOpt) number of seconds until a reservation expires

 

until_refresh=0

 

(IntOpt) count of reservations until usage is refreshed

 

仔细查找,其中并无关于Fixed_Ips的配置,比较疑惑,但是问题的确存在,在Project中创建超过10个实例时发生错误,日志显示错误内容如下:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/8d4a0091573ce1a613b5f7bb122196c3.html