Comment 11 for bug 1605528

Revision history for this message
Siva Bavanasi (kbsiva) wrote : Re: [UI] Qos configuration page throws Internal server error

Python 2.7.6: /usr/bin/python
Wed Nov 30 15:30:49 2016

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/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py in handler_trap_exception(*args=(), **kwargs={})
 1670 (code, err_msg) = status
 1671 raise cfgm_common.exceptions.HttpError(code, err_msg)
 1672 response = handler(*args, **kwargs)
 1673 self._generate_rest_api_response_trace(trace, response)
 1674
response undefined
handler = <functools.partial object>
args = ()
kwargs = {}

 /usr/lib/python2.7/dist-packages/cfgm_common/vnc_api_stats.py in wrapper(api_server_obj=<vnc_cfg_api_server.vnc_cfg_api_server.VncApiServer object>, resource_type='qos_config', *args=(), **kwargs={})
   15 statistics = VncApiStatistics(
   16 obj_type=resource_type.replace('-', '_'))
   17 response = func(api_server_obj, resource_type, *args, **kwargs)
   18 statistics.response_size = len(str(response))
   19 statistics.response_code = bottle.response.status_code
response undefined
func = <function http_resource_list>
api_server_obj = <vnc_cfg_api_server.vnc_cfg_api_server.VncApiServer object>
resource_type = 'qos_config'
args = ()
kwargs = {}

 /usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py in http_resource_list(self=<vnc_cfg_api_server.vnc_cfg_api_server.VncApiServer object>, obj_type='qos_config')
 1051 parent_res_type)
 1052 parent_uuids = [self._db_conn.fq_name_to_uuid(parent_type,
 1053 parent_fq_name)]
 1054 elif 'parent_id' in get_request().query:
 1055 parent_uuids = get_request().query.parent_id.split(',')
parent_fq_name = [u'default-global-system-config', u'default-global-qos-config']

 /usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_ifmap.py in fq_name_to_uuid(self=<vnc_cfg_api_server.vnc_cfg_ifmap.VncDbClient object>, obj_type='global-qos-config', fq_name=[u'default-global-system-config', u'default-global-qos-config'])
 2094
 2095 def fq_name_to_uuid(self, obj_type, fq_name):
 2096 obj_uuid = self._cassandra_db.fq_name_to_uuid(obj_type, fq_name)
 2097 return obj_uuid
 2098 # end fq_name_to_uuid
obj_uuid undefined
self = <vnc_cfg_api_server.vnc_cfg_ifmap.VncDbClient object>
self._cassandra_db = <vnc_cfg_api_server.vnc_cfg_ifmap.VncServerCassandraClient object>
self._cassandra_db.fq_name_to_uuid = <bound method VncServerCassandraClient.fq_name_t...r.vnc_cfg_ifmap.VncServerCassandraClient object>>
obj_type = 'global-qos-config'
fq_name = [u'default-global-system-config', u'default-global-qos-config']

 /usr/lib/python2.7/dist-packages/cfgm_common/vnc_cassandra.py in fq_name_to_uuid(self=<vnc_cfg_api_server.vnc_cfg_ifmap.VncServerCassandraClient object>, obj_type='global-qos-config', fq_name=[u'default-global-system-config', u'default-global-qos-config'])
 1244 finish=fq_name_str + ';')
 1245 if not col_infos:
 1246 raise NoIdError('%s %s' % (obj_type, fq_name_str))
 1247 if len(col_infos) > 1:
 1248 raise VncError('Multi match %s for %s' % (fq_name_str, obj_type))
global NoIdError = <class 'cfgm_common.exceptions.NoIdError'>
obj_type = 'global-qos-config'
fq_name_str = u'default-global-system-config:default-global-qos-config'
<class 'cfgm_common.exceptions.NoIdError'>: Unknown id: global-qos-config default-global-system-config:default-global-qos-config
    __class__ = <class 'cfgm_common.exceptions.NoIdError'>
    __delattr__ = <method-wrapper '__delattr__' of NoIdError object>
    __dict__ = {'_unknown_id': u'global-qos-config default-global-system-config:default-global-qos-config'}
    __doc__ = None
    __format__ = <built-in method __format__ of NoIdError object>
    __getattribute__ = <method-wrapper '__getattribute__' of NoIdError object>
    __getitem__ = <method-wrapper '__getitem__' of NoIdError object>
    __getslice__ = <method-wrapper '__getslice__' of NoIdError object>
    __hash__ = <method-wrapper '__hash__' of NoIdError object>
    __init__ = <bound method NoIdError.__init__ of NoIdError()>
    __module__ = 'cfgm_common.exceptions'
    __new__ = <built-in method __new__ of type object>
    __reduce__ = <built-in method __reduce__ of NoIdError object>
    __reduce_ex__ = <built-in method __reduce_ex__ of NoIdError object>
    __repr__ = <method-wrapper '__repr__' of NoIdError object>
    __setattr__ = <method-wrapper '__setattr__' of NoIdError object>
    __setstate__ = <built-in method __setstate__ of NoIdError object>
    __sizeof__ = <built-in method __sizeof__ of NoIdError object>
    __str__ = <bound method NoIdError.__str__ of NoIdError()>
    __subclasshook__ = <built-in method __subclasshook__ of type object>
    __unicode__ = <built-in method __unicode__ of NoIdError object>
    __weakref__ = None
    _unknown_id = u'global-qos-config default-global-system-config:default-global-qos-config'
    args = ()
    message = ''

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/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 1672, in handler_trap_exception
    response = handler(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/cfgm_common/vnc_api_stats.py", line 17, in wrapper
    response = func(api_server_obj, resource_type, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 1053, in http_resource_list
    parent_fq_name)]
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_ifmap.py", line 2096, in fq_name_to_uuid
    obj_uuid = self._cassandra_db.fq_name_to_uuid(obj_type, fq_name)
  File "/usr/lib/python2.7/dist-packages/cfgm_common/vnc_cassandra.py", line 1246, in fq_name_to_uuid
    raise NoIdError('%s %s' % (obj_type, fq_name_str))
NoIdError: Unknown id: global-qos-config default-global-system-config:default-global-qos-config