Cannot turn off quota checking

Bug #1182662 reported by terryg2012
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Critical
Mark McLoughlin

Bug Description

I do not want quota checking for the stress testing that I am performing. I am getting the following errors once the default quota for 50 ports is reached:

2013-05-21 14:38:21.714 ERROR nova.compute.manager [req-e87a44d6-d0fe-4320-aab1-c7396d6bf554 6891ad89906646e4934ae6014eb07521 29ca96af08984e9288ec3f98a743197a] [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] Instance failed network setup
2013-05-21 14:38:21.714 3226 TRACE nova.compute.manager [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] Traceback (most recent call last):
2013-05-21 14:38:21.714 3226 TRACE nova.compute.manager [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1057, in _allocate_network
2013-05-21 14:38:21.714 3226 TRACE nova.compute.manager [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] security_groups=security_groups)
2013-05-21 14:38:21.714 3226 TRACE nova.compute.manager [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] File "/usr/lib/python2.7/dist-packages/nova/network/api.py", line 46, in wrapper
2013-05-21 14:38:21.714 3226 TRACE nova.compute.manager [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] res = f(self, context, *args, **kwargs)
2013-05-21 14:38:21.714 3226 TRACE nova.compute.manager [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] File "/usr/lib/python2.7/dist-packages/nova/network/quantumv2/api.py", line 280, in allocate_for_instance
2013-05-21 14:38:21.714 3226 TRACE nova.compute.manager [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] 'exception': ex})
2013-05-21 14:38:21.714 3226 TRACE nova.compute.manager [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2013-05-21 14:38:21.714 3226 TRACE nova.compute.manager [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] self.gen.next()
2013-05-21 14:38:21.714 3226 TRACE nova.compute.manager [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] File "/usr/lib/python2.7/dist-packages/nova/network/quantumv2/api.py", line 263, in allocate_for_instance
2013-05-21 14:38:21.714 3226 TRACE nova.compute.manager [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] quantum.create_port(port_req_body)['port']['id'])
2013-05-21 14:38:21.714 3226 TRACE nova.compute.manager [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 107, in with_params
2013-05-21 14:38:21.714 3226 TRACE nova.compute.manager [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] ret = self.function(instance, *args, **kwargs)
2013-05-21 14:38:21.714 3226 TRACE nova.compute.manager [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 269, in create_port
2013-05-21 14:38:21.714 3226 TRACE nova.compute.manager [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] return self.post(self.ports_path, body=body)
2013-05-21 14:38:21.714 3226 TRACE nova.compute.manager [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 987, in post
2013-05-21 14:38:21.714 3226 TRACE nova.compute.manager [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] headers=headers, params=params)
2013-05-21 14:38:21.714 3226 TRACE nova.compute.manager [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 912, in do_request
2013-05-21 14:38:21.714 3226 TRACE nova.compute.manager [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] self._handle_fault_response(status_code, replybody)
2013-05-21 14:38:21.714 3226 TRACE nova.compute.manager [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 893, in _handle_fault_response
2013-05-21 14:38:21.714 3226 TRACE nova.compute.manager [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] exception_handler_v20(status_code, des_error_body)
2013-05-21 14:38:21.714 3226 TRACE nova.compute.manager [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 80, in exception_handler_v20
2013-05-21 14:38:21.714 3226 TRACE nova.compute.manager [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] message=error_dict)
2013-05-21 14:38:21.714 3226 TRACE nova.compute.manager [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] QuantumClientException: Quota exceeded for resources: ['port']
2013-05-21 14:38:21.714 3226 TRACE nova.compute.manager [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae]
2013-05-21 14:38:21.810 AUDIT nova.compute.manager [req-e87a44d6-d0fe-4320-aab1-c7396d6bf554 6891ad89906646e4934ae6014eb07521 29ca96af08984e9288ec3f98a743197a] [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] Terminating instance
2013-05-21 14:38:22.444 3226 ERROR nova.virt.libvirt.driver [-] [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] During wait destroy, instance disappeared.
2013-05-21 14:38:22.447 INFO nova.virt.libvirt.driver [req-e87a44d6-d0fe-4320-aab1-c7396d6bf554 6891ad89906646e4934ae6014eb07521 29ca96af08984e9288ec3f98a743197a] [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] Deleting instance files /var/lib/nova/instances/61af1f15-6ca0-4321-99b8-f7c396c581ae
2013-05-21 14:38:22.588 ERROR nova.compute.manager [req-e87a44d6-d0fe-4320-aab1-c7396d6bf554 6891ad89906646e4934ae6014eb07521 29ca96af08984e9288ec3f98a743197a] [instance: 61af1f15-6ca0-4321-99b8-f7c396c581ae] Error: ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 817, in _run_instance\n requested_networks, macs, security_groups)\n', ' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1061, in _allocate_network\n instance=instance)\n', ' File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__\n self.gen.next()\n', ' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1057, in _allocate_network\n security_groups=security_groups)\n', ' File "/usr/lib/python2.7/dist-packages/nova/network/api.py", line 46, in wrapper\n res = f(self, context, *args, **kwargs)\n', ' File "/usr/lib/python2.7/dist-packages/nova/network/quantumv2/api.py", line 280, in allocate_for_instance\n \'exception\': ex})\n', ' File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__\n self.gen.next()\n', ' File "/usr/lib/python2.7/dist-packages/nova/network/quantumv2/api.py", line 263, in allocate_for_instance\n quantum.create_port(port_req_body)[\'port\'][\'id\'])\n', ' File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 107, in with_params\n ret = self.function(instance, *args, **kwargs)\n', ' File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 269, in create_port\n return self.post(self.ports_path, body=body)\n', ' File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 987, in post\n headers=headers, params=params)\n', ' File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 912, in do_request\n self._handle_fault_response(status_code, replybody)\n', ' File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 893, in _handle_fault_response\n exception_handler_v20(status_code, des_error_body)\n', ' File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 80, in exception_handler_v20\n message=error_dict)\n', "QuantumClientException: Quota exceeded for resources: ['port']\n"]

I have set the quantum.conf file for unlimited quota as shown below:

[QUOTAS]
# resource name(s) that are supported in quota features
quota_items = network,subnet,port

# default number of resource allowed per tenant, minus for unlimited
default_quota = -1

# number of networks allowed per tenant, and minus means unlimited
# quota_network = 10
quota_network = -1

# number of subnets allowed per tenant, and minus means unlimited
# quota_subnet = 10
quota_subnet = -1

# number of ports allowed per tenant, and minus means unlimited
# quota_port = 50
quota_port = -1

# default driver to use for quota checks
quota_driver = quantum.quota.ConfDriver

Tags: quantum-core
tags: added: quantum-core
Revision history for this message
yong sheng gong (gongysh) wrote :

please use lower case [quotas], I think oslo.config will change into back compatible soon.

Changed in quantum:
assignee: nobody → yong sheng gong (gongysh)
Revision history for this message
yong sheng gong (gongysh) wrote :

I will contact zongyue luo to make sure it happens.

Revision history for this message
Mark McLoughlin (markmc) wrote :

We just need a release of oslo.config - I'll do that very soon

Revision history for this message
Akihiro Motoki (amotoki) wrote :

We need to update pip-requires in quantum side after new oslo.config is released.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/30094

Changed in quantum:
assignee: yong sheng gong (gongysh) → Mark McLoughlin (markmc)
status: New → In Progress
Mark McLoughlin (markmc)
Changed in quantum:
importance: Undecided → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to quantum (master)

Reviewed: https://review.openstack.org/30094
Committed: http://github.com/openstack/quantum/commit/8da2fb7c562323e16a574b09a0a3a77ea8a94fa3
Submitter: Jenkins
Branch: master

commit 8da2fb7c562323e16a574b09a0a3a77ea8a94fa3
Author: Mark McLoughlin <email address hidden>
Date: Wed May 22 12:35:57 2013 +0100

    Require oslo.config 1.2.0a2

    Fixes bug #1182662

    Commit 362bd7f switched us from using 'QUOTA' as a config file section
    name to using 'quota'.

    This broke backwards compatibility support for 'QUOTA' because the
    version of oslo.config that has that compat support had not yet been
    released. The gory details are summarized here:

      http://lists.openstack.org/pipermail/openstack-dev/2013-May/009448.html

    Change-Id: I7826087147e0713edaaea85a72283998295e2281

Changed in quantum:
status: In Progress → Fix Committed
Changed in quantum:
milestone: none → havana-1
Thierry Carrez (ttx)
Changed in quantum:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: havana-1 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.