本文介绍了Openstack修改所有项目配额的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要修改所有租户的配额".在此地址中,更改默认项目的最简单方法配额是在您的云控制器上编辑nova.conf文件.".但是在我的nova/nova.conf中,配额没有任何关系.这是我的nova/nova.conf.
I want to modify all tenants "Quotas". In this address says "The simplest way to change the default project quotas is to edit the nova.conf file on your cloud controller.". But In my nova/nova.conf ,there is nothing about quotas. This is my nova/nova.conf.
[DEFAULT]
logdir = /var/log/nova
state_path = /var/lib/nova
lock_path = /var/lib/nova/tmp
volumes_dir = /etc/nova/volumes
dhcpbridge = /usr/bin/nova-dhcpbridge
dhcpbridge_flagfile = /etc/nova/nova.conf
force_dhcp_release = False
injected_network_template = /usr/share/nova/interfaces.template
libvirt_nonblocking = True
libvirt_inject_partition = -1
network_manager = nova.network.manager.FlatDHCPManager
iscsi_helper = tgtadm
sql_connection = mysql://nova:[email protected]/nova
compute_driver = libvirt.LibvirtDriver
firewall_driver = nova.virt.libvirt.firewall.IptablesFirewallDriver
rpc_backend = nova.openstack.common.rpc.impl_qpid
rootwrap_config = /etc/nova/rootwrap.conf
qpid_reconnect_interval_min=0
image_service=nova.image.glance.GlanceImageService
qpid_hostname=10.0.3.238
qpid_tcp_nodelay=True
qpid_port=5672
qpid_protocol=tcp
glance_api_servers=10.0.3.238:9292
qpid_username=guest
qpid_reconnect_interval=0
metadata_host=10.0.3.238
api_paste_config=/etc/nova/api-paste.ini
volume_api_class=nova.volume.cinder.API
debug=False
ec2_listen=0.0.0.0
service_quantum_metadata_proxy=False
osapi_compute_workers=2
qpid_reconnect_timeout=0
enabled_apis=ec2,osapi_compute,metadata
qpid_reconnect=True
auth_strategy=keystone
service_down_time=60
verbose=True
floating_range=10.3.4.0/22
auto_assign_floating_ip=False
flat_interface=lo
public_interface=eth0
default_floating_pool=nova
scheduler_default_filters=RetryFilter,AvailabilityZoneFilter,RamFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,CoreFilter
flat_network_bridge=br100
connection_type=libvirt
cpu_allocation_ratio=16.0
libvirt_cpu_mode=none
fixed_range=192.168.32.0/22
dhcp_domain=novalocal
libvirt_type=qemu
novncproxy_port=6080
vncserver_proxyclient_address=10.0.3.238
flat_injected=False
novncproxy_host=0.0.0.0
libvirt_use_virtio_for_bridges = False
use_ipv6 = True
[keystone_authtoken]
admin_tenant_name = %SERVICE_TENANT_NAME%
admin_user = %SERVICE_USER%
admin_password = %SERVICE_PASSWORD%
auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http
signing_dir = /tmp/keystone-signing-nova
Could someone help me ?
推荐答案
只需添加这些行
quota_instances=10 # Number of instances allowed per project
quota_cores=20 # Number of cores allowed per project
quota_ram=51200 # Amount of memory in MB allowed per project
quota_gigabytes=1000 # Amount of storage in GB allowed per project
在nova.conf文件中设置默认值.
to set default values in your nova.conf file.
这篇关于Openstack修改所有项目配额的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!