Update on a port with fixed_ips attribute (subnet_id, ip_address) failed with internal server error
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R1.1 |
Fix Committed
|
Medium
|
Sachin Bansal | |||
Trunk |
Fix Committed
|
Medium
|
Sachin Bansal |
Bug Description
Build 1.10 16
Port Update request {'port': {'fixed_ips': [{'subnet_id': u'ce670450-
contrail-api.log :
<type 'exceptions.
Python 2.7.3: /usr/bin/python
Sun Aug 17 21:47:47 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/
387 cfgdb = self._get_
388 net_info = cfgdb.port_
389 port['resource'])
390 return net_info
391 except Exception as e:
port = {u'fields': None, u'filters': None, u'id': u'19e9b6fb-
/usr/lib/
3449 req_ip_subnets = []
3450 port_q['id'] = port_id
3451 port_obj = self._port_
3452 net_id = port_obj.
3453 net_obj = self._network_
port_obj undefined
self = <vnc_openstack.
self._port_
port_q = {u'fixed_ips': [{u'ip_address': u'7.25.179.160', u'subnet_id': u'ce670450-
builtinNone = None
global UPDATE = 3
/usr/lib/
2067
2068 if 'fixed_ips' in port_q:
2069 net_id = port_q[
2070 for fixed_ip in port_q.
2071 if 'ip_address' in fixed_ip:
net_id undefined
port_q = {u'fixed_ips': [{u'ip_address': u'7.25.179.160', u'subnet_id': u'ce670450-
<type 'exceptions.
__class__ = <type 'exceptions.
__delattr__ = <method-wrapper '__delattr__' of exceptions.KeyError object>
__dict__ = {}
__doc__ = 'Mapping key not found.'
__format__ = <built-in method __format__ of exceptions.KeyError object>
__getattrib
__getitem__ = <method-wrapper '__getitem__' of exceptions.KeyError object>
__getslice__ = <method-wrapper '__getslice__' of exceptions.KeyError object>
__hash__ = <method-wrapper '__hash__' of exceptions.KeyError object>
__init__ = <method-wrapper '__init__' of exceptions.KeyError object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of exceptions.KeyError object>
__reduce_ex__ = <built-in method __reduce_ex__ of exceptions.KeyError object>
__repr__ = <method-wrapper '__repr__' of exceptions.KeyError object>
__setattr__ = <method-wrapper '__setattr__' of exceptions.KeyError object>
__setstate__ = <built-in method __setstate__ of exceptions.KeyError object>
__sizeof__ = <built-in method __sizeof__ of exceptions.KeyError object>
__str__ = <method-wrapper '__str__' of exceptions.KeyError object>
__subclassh
__unicode__ = <built-in method __unicode__ of exceptions.KeyError object>
args = ('network_id',)
message = 'network_id'
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/
port[
File "/usr/lib/
port_obj = self._port_
File "/usr/lib/
net_id = port_q[
KeyError: 'network_id'
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
KeyError: 'network_id'
10.204.217.7 - - [2014-08-17 21:47:47] "POST /neutron/port HTTP/1.1" 500 156 0.011835
Changed in juniperopenstack: | |
status: | New → In Progress |
https:/ /github. com/Juniper/ contrail- controller/ commit/ 3b193eb4fbdd630 05a209ae3690292 ddecd94bff