While adding router interface, if subnet-id value is an empty dict, neutron throws internal server error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juniper Openstack |
Fix Committed
|
Low
|
Sachin Bansal |
Bug Description
Build 1.10 2271
root@nodec22:~# curl -i http://
HTTP/1.1 500 Internal Server Error
Content-Type: application/json; charset=UTF-8
Content-Length: 88
Date: Fri, 25 Jul 2014 09:05:53 GMT
{"NeutronError": "Request Failed: internal server error while processing your request.
This is seen on openvswitch setup as well
--------
<type 'exceptions.
Python 2.7.3: /usr/bin/python
Fri Jul 25 02:07:29 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/
811 subnet_id = interface_
812 return cfgdb.add_
813 subnet_
814 except Exception as e:
815 cgitb.Hook(
subnet_id = {}
/usr/lib/
3045 port_id = port['id']
3046
3047 self._set_
3048 vmi_obj = self._vnc_
3049 router_
self = <vnc_openstack.
self._set_
router_obj = <vnc_api.
subnet undefined
<type 'exceptions.
__class__ = <type 'exceptions.
__delattr__ = <method-wrapper '__delattr__' of exceptions.
__dict__ = {}
__doc__ = 'Local name referenced but not bound to a value.'
__format__ = <built-in method __format__ of exceptions.
__getattrib
__getitem__ = <method-wrapper '__getitem__' of exceptions.
__getslice__ = <method-wrapper '__getslice__' of exceptions.
__hash__ = <method-wrapper '__hash__' of exceptions.
__init__ = <method-wrapper '__init__' of exceptions.
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of exceptions.
__reduce_ex__ = <built-in method __reduce_ex__ of exceptions.
__repr__ = <method-wrapper '__repr__' of exceptions.
__setattr__ = <method-wrapper '__setattr__' of exceptions.
__setstate__ = <built-in method __setstate__ of exceptions.
__sizeof__ = <built-in method __sizeof__ of exceptions.
__str__ = <method-wrapper '__str__' of exceptions.
__subclassh
__unicode__ = <built-in method __unicode__ of exceptions.
args = ("local variable 'subnet' referenced before assignment",)
message = "local variable 'subnet' referenced before assignment"
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/
subnet_
File "/usr/lib/
self.
UnboundLocalError: local variable 'subnet' referenced before assignment
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
UnboundLocalError: local variable 'subnet' referenced before assignment
10.204.217.109 - - [2014-07-25 02:07:29] "POST /neutron/router HTTP/1.1" 500 156 0.019274
Changed in juniperopenstack: | |
status: | New → In Progress |
https:/ /github. com/Juniper/ contrail- controller/ commit/ dacf521eb097738 948afd29f3000d6 a276cc3685