When quota-limit is reached for subnets/vn, internal server error is seen
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juniper Openstack |
Incomplete
|
High
|
Vedamurthy Joshi | ||
R1.1 |
Incomplete
|
High
|
Vedamurthy Joshi |
Bug Description
R1.10 28
When in a custom project, I edit contrail-api.conf with below and restarted contrail-api:
[QUOTA]
subnet=2
virtual-network=2
root@nodea9:~# neutron quota-show
+------
| Field | Value |
+------
| floatingip | -1 |
| nat_instance | -1 |
| network | 2 |
| port | -1 |
| route_table | -1 |
| router | -1 |
| security_group | -1 |
| security_group_rule | -1 |
| subnet | 2 |
+------
root@nodea9:~#
Then, i tried to create 3 networks (net1,net2,net3)... on creating net3, we get internal server error.
Same error when subnet limits are reached
<class 'cfgm_common.
Python 2.7.3: /usr/bin/python
Mon Sep 1 00:55:04 2014
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/usr/lib/
134 try:
135 cfgdb = self._get_
136 net_info = cfgdb.network_
137 return net_info
138 except Exception as e:
net_info undefined
cfgdb = <vnc_openstack.
cfgdb.network_
network = {u'fields': None, u'filters': None, u'resource': {u'admin_state_up': True, u'contrail:
/usr/lib/
2262 net_obj = self._network_
2263 try:
2264 net_uuid = self._resource_
2265 except RefsExistError:
2266 self._raise_
net_uuid undefined
self = <vnc_openstack.
self._resource_
net_obj = <vnc_api.
/usr/lib/
562 def _resource_
563 try:
564 obj_uuid = getattr(
565 except RefsExistError:
566 obj.uuid = str(uuid.uuid4())
obj_uuid undefined
builtingetattr = <built-in function getattr>
self = <vnc_openstack.
self._vnc_lib = <vnc_api.
resource_type = 'virtual_network'
obj = <vnc_api.
/usr/lib/
4790 content = self._request_
4791 vnc_api.
4792 data = json_body)
4793
4794 virtual_
data undefined
json_body = '{"virtual-
/usr/lib/
365 continue
366 else: # Unknown Error
367 raise HttpError(status, content)
368 # end while True
369
global HttpError = <class 'cfgm_common.
status = 500
content = u'Internal Server Error'
<class 'cfgm_common.
__class__ = <class 'cfgm_common.
__delattr__ = <method-wrapper '__delattr__' of HttpError object>
__dict__ = {'content': u'Internal Server Error', 'status_code': 500}
__doc__ = None
__format__ = <built-in method __format__ of HttpError object>
__getattrib
__getitem__ = <method-wrapper '__getitem__' of HttpError object>
__getslice__ = <method-wrapper '__getslice__' of HttpError object>
__hash__ = <method-wrapper '__hash__' of HttpError object>
__init__ = <bound method HttpError.__init__ of HttpError()>
__module__ = 'cfgm_common.
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of HttpError object>
__reduce_ex__ = <built-in method __reduce_ex__ of HttpError object>
__repr__ = <method-wrapper '__repr__' of HttpError object>
__str__ = <bound method HttpError.__str__ of HttpError()>
__subclassh
__unicode__ = <built-in method __unicode__ of HttpError object>
__weakref__ = None
args = ()
content = u'Internal Server Error'
message = ''
status_code = 500
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "/usr/lib/
net_info = cfgdb.network_
File "/usr/lib/
net_uuid = self._resource_
File "/usr/lib/
obj_uuid = getattr(
File "/usr/lib/
data = json_body)
File "/usr/lib/
raise HttpError(status, content)
HttpError: HTTP Status: 500 Content: Internal Server Error
Traceback (most recent call last):
File "/usr/lib/
return route.call(**args)
File "/usr/lib/
rv = callback(*a, **ka)
File "/usr/lib/
return self.plugin_
File "/usr/lib/
raise e
HttpError: HTTP Status: 500 Content: Internal Server Error
10.204.216.47 - - [2014-09-01 00:55:04] "POST /neutron/network HTTP/1.1" 500 156 0.028547
Changed in juniperopenstack: | |
status: | New → Incomplete |
Changed in juniperopenstack: | |
assignee: | Sachin Bansal (sbansal) → Vedamurthy Joshi (vedujoshi) |
tags: | removed: blocker |
I tried on build 31 and it is working correctly for me:
root@a6s21:~# neutron net-create n3 NeutronError' : {u'message': u"[u'default- domain' , u'admin', u'n3'] : quota limit (2) exceeded for resource virtual-network", u'type': u'ContrailBadRe questError' , u'detail': u''}}
400-{u'
Please provide contrail-api-0.log if you are still seeing internal server error.