router-list and show operations fail on icehouse
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R1.1 |
Fix Committed
|
High
|
Atul Moghe | |||
Trunk |
Fix Committed
|
High
|
Atul Moghe |
Bug Description
R1.10 34
On icehouse, router-list and show operations fail
contrail-api-0.log:
================
127.0.0.1 - - [2014-09-09 16:03:22] "GET /logical-
ERROR:vnc_
<type 'exceptions.
Python 2.7.3: /usr/bin/python
Tue Sep 9 16:03:22 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/
450 trace = self._generate_
451 try:
452 response = handler(*args, **kwargs)
453 self._generate_
454 return response
response undefined
handler = <bound method VncApiServer.
args = ()
kwargs = {'id': 'b16e13d3-
/usr/lib/
18277 abort(404, 'No logical-router object found for id %s' %(id))
18278 # common handling for all resource get
18279 (ok, result) = self._get_
18280 if not ok:
18281 (code, msg) = result
ok undefined
result undefined
self = <vnc_cfg_
self._get_common = <bound method VncApiServer.
global request = <LocalRequest: GET http://
id = 'b16e13d3-
/usr/lib/
1158 return ok, result
1159 else:
1160 return self._permissio
1161
1162 return (True, '')
self = <vnc_cfg_
self._permissions = <vnc_cfg_
self._permissio
request = <LocalRequest: GET http://
uuid = 'b16e13d3-
/usr/lib/
103 return (True, '')
104
105 return self.validate_
106 # end check_perms_read
107
self = <vnc_cfg_
self.validate_perms = <bound method VncPermissions.
request = <LocalRequest: GET http://
id = 'b16e13d3-
global PERMS_R = 4
/usr/lib/
34 is_admin = 'admin' in [x.lower() for x in roles]
35
36 owner = id_perms[
37 group = id_perms[
38 perms = id_perms[
owner undefined
id_perms = {u'created': None, u'description': None, u'enable': False, u'last_modified': u'2014-
<type 'exceptions.
__class__ = <type 'exceptions.
__delattr__ = <method-wrapper '__delattr__' of exceptions.
__dict__ = {}
__doc__ = 'Inappropriate argument type.'
__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 = ("'NoneType' object has no attribute '__getitem__'",)
Traceback (most recent call last):
File "/usr/lib/
return route.call(**args)
File "/usr/lib/
rv = callback(*a, **ka)
File "/usr/lib/
rv = callback(*a, **ka)
File "/usr/lib/
response = handler(*args, **kwargs)
File "/usr/lib/
(ok, result) = self._get_
File "/usr/lib/
return self._permissio
File "/usr/lib/
return self.validate_
File "/usr/lib/
owner = id_perms[
TypeError: 'NoneType' object has no attribute '__getitem__'
127.0.0.1 - - [2014-09-09 16:03:22] "GET /logical-
-------
For router-list :
Python 2.7.3: /usr/bin/python
Tue Sep 9 16:03:22 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 try:
812 cfgdb = self._get_
813 routers_info = cfgdb.router_
814 return json.dumps(
815 except Exception as e:
routers_info undefined
cfgdb = <vnc_openstack.
cfgdb.router_list = <bound method DBInterface.
context = {u'is_admin': True, u'operation': u'READALL', u'roles': [u'KeystoneServ
filters = {}
/usr/lib/
3383 continue
3384 try:
3385 rtr_obj = self._logical_
3386 if not self._filters_
3387 filters, 'name',
rtr_obj undefined
self = <vnc_openstack.
self._logical_
proj_rtr = {u'fq_name': [u'default-domain', u'FloatingIPTes
/usr/lib/
932 raise KeyError
933 except KeyError:
934 rtr_obj = self._vnc_
935 fq_name_str = json.dumps(
936 self._db_
rtr_obj undefined
self = <vnc_openstack.
self._vnc_lib = <vnc_api.
self._vnc_
builtinid = <built-in function id>
rtr_id = u'b16e13d3-
/usr/lib/
5640 query_params = {'exclude_
5641 'exclude_
5642 content = self._request_
5643
5644 obj_dict = json.loads(
content undefined
self = <vnc_api.
self._request_
global rest = <module 'cfgm_common.rest' from '/usr/lib/
rest.OP_GET = 2
uri = u'/logical-
query_params = {'exclude_
/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>
__setattr__ = <method-wrapper '__setattr__' of HttpError object>
__setstate__ = <built-in method __setstate__ of HttpError object>
__sizeof__ = <built-in method __sizeof__ 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/
routers_info = cfgdb.router_
File "/usr/lib/
rtr_obj = self._logical_
File "/usr/lib/
rtr_obj = self._vnc_
File "/usr/lib/
content = self._request_
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/
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.30 - - [2014-09-09 16:03:22] "POST /neutron/router HTTP/1.1" 500 156 0.024969