** Changed in: quantum
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to quantum.
https://bugs.launchpad.net/bugs/1182662

Title:
  Cannot turn off quota checking

Status in OpenStack Quantum (virtual network service):
  Fix Released

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/quantum/+bug/1182662/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to