[mainline 2709] contrail-schema traceback with route-aggregate config
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
Trunk |
Fix Committed
|
Critical
|
Sachin Bansal |
Bug Description
<type 'exceptions.
Python 2.7.6: /usr/bin/python
Wed Feb 3 11:46:45 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/bin/
6
7 if __name__ == '__main__':
8 sys.exit(
9 load_entry_
10 )
load_entry_point = <function load_entry_point>
/usr/lib/
828 def server_main():
829 cgitb.enable(
830 main()
831 # end server_main
832
global main = <function main>
/usr/lib/
822 _zookeeper_
823 os.getpid(), run_schema_
824 args)
825 # end main
826
args = Namespace(
/usr/lib/
334 def master_
335 self._election = self._zk_
336 self._election.
337 # end master_election
338
self = <cfgm_common.
self._election = <kazoo.
self._election.run = <bound method Election.run of <kazoo.
func = <function run_schema_
args = (Namespace(
kwargs = {}
/usr/lib/
46 try:
47 with self.lock:
48 func(*args, **kwargs)
49
50 except CancelledError:
func = <function run_schema_
args = (Namespace(
kwargs = {}
/usr/lib/
803
804 global transformer
805 transformer = SchemaTransform
806 gevent.
807 # end run_schema_
global transformer = None
global SchemaTransformer = <class 'schema_
args = Namespace(
/usr/lib/
214 DBBaseST._vnc_lib = _vnc_lib
215 ServiceChain.init()
216 self.reinit()
217 # create cpu_info object to send periodic updates
218 sysinfo_req = False
self = <schema_
self.reinit = <bound method SchemaTransform
/usr/lib/
445 gevent.sleep(0.001)
446 for si in ServiceInstance
447 si_st = ServiceInstance
448 if si_st is None:
449 continue
si_st undefined
global ServiceInstanceST = <class 'schema_
ServiceInstance
si = <vnc_api.
si.get_fq_name_str = <bound method ServiceInstance
/usr/lib/
95 @classmethod
96 def locate(cls, key, *args):
97 obj = super(DBBaseST, cls).locate(key, *args)
98 if obj.obj.uuid not in cls._uuid_
99 cls._uuid_
obj undefined
builtinsuper = <type 'super'>
global DBBaseST = <class 'schema_
cls = <class 'schema_
).locate = <bound method __metaclass_
key = u'default-
args = (<vnc_api.
/usr/lib/
62 if key not in cls._dict:
63 try:
64 obj = cls(key, *args)
65 cls._dict[key] = obj
66 return obj
obj undefined
cls = <class 'schema_
key = u'default-
args = (<vnc_api.
/usr/lib/
3478 self.routing_
3479 for ref in self.obj.
3480 self.route_
3481 self.set_
3482 # end __init__
self = <schema_
self.route_
ref = {'attr': {u'interface_type': u'right'}, 'href': '', 'to': [u'default-domain', u'default-project', u'left-to-right'], 'uuid': '63f9888b-
].interface_type undefined
<type 'exceptions.
__class__ = <type 'exceptions.
__delattr__ = <method-wrapper '__delattr__' of exceptions.
__dict__ = {}
__doc__ = 'Attribute not found.'
__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 = ("'dict' object has no attribute 'interface_type'",)
message = "'dict' object has no attribute 'interface_type'"
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
main()
File "/usr/lib/
args)
File "/usr/lib/
self.
File "/usr/lib/
func(*args, **kwargs)
File "/usr/lib/
transformer = SchemaTransform
File "/usr/lib/
self.reinit()
File "/usr/lib/
si_st = ServiceInstance
File "/usr/lib/
obj = super(DBBaseST, cls).locate(key, *args)
File "/usr/lib/
obj = cls(key, *args)
File "/usr/lib/
self.
AttributeError: 'dict' object has no attribute 'interface_type'
information type: | Proprietary → Public |
Review in progress for https:/ /review. opencontrail. org/16847
Submitter: Sachin Bansal (<email address hidden>)