修改 openstack 中 nova boot 创建实例只能在10个以内的限制

感谢朋友支持本博客,欢迎共同探讨交流,由于能力和时间有限,错误之处在所难免,欢迎指正!
如果转载,请保留作者信息。
博客地址:http://blog.csdn.net/qq_21398167

原博文地址:http://blog.csdn.net/qq_21398167/article/details/46682885

查阅官方Nova配置文档,表明Quotas默认值可以通过修改nova配置文件/etc/nova/nova.conf进行配置,官方文档地址:http://docs.openstack.org/folsom/openstack-compute/admin/content/list-of-compute-config-options.html,其中关于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

可以看到有一个关于实例的参数   quota_instances=10   就是在这里限制了只能在10个实例之内


这样我就能在配置文件中修改这个参数了

# vi /etc/nova/nova.conf

搜索到这个参数  把值改为20(根据自己的需求修改)   重启nova 服务

 再次创建实例  发现问题解决了

扩展:

    我们可以看到上面表格中海油很多其它参数   例如:quota_floating_ips=10   这里表明一个实例最多只能有10个浮动IP,同理可以修改这里显示的所有限制配置

你可能感兴趣的:(实例,nova,10个的限制)