contrail-device-manager crashing repeatedly in uve_send() in db.py
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R2.20 |
Fix Committed
|
High
|
Suresh Balineni | |||
Trunk |
Fix Committed
|
High
|
Suresh Balineni |
Bug Description
R2.20 Build 53 Ubuntu 14.04 Multi-node setup
It is seen that contrail-
This box was upgraded from an earlier 2.20 build to 2.20 Build53
Logs on this node will be uploaded to http://
root@nodec1:
3512 <<<<<<<
root@nodec1:
<type 'exceptions.
Python 2.7.6: /usr/bin/python
Wed Jun 17 14:18:25 2015
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/
534 def server_main():
535 cgitb.enable(
536 main()
537 # end server_main
538
global main = <function main>
/usr/lib/
523 _zookeeper_
524 os.getpid(), run_device_manager,
525 args)
526 # end main
527
args = Namespace(
/usr/lib/
289 while True:
290 self._election = self._zk_
291 self._election.
292 # end master_election
293
self = <cfgm_common.
self._election = <kazoo.
self._election.run = <bound method Election.run of <kazoo.
self._zk_
func = <function run_device_manager>
args = (Namespace(
kwargs = {}
/usr/lib/
46 try:
47 with self.lock:
48 func(*args, **kwargs)
49
50 except CancelledError:
func = <bound method ZookeeperClient
args = (<function run_device_
kwargs = {}
/usr/lib/
/usr/lib/
46 try:
47 with self.lock:
48 func(*args, **kwargs)
49
50 except CancelledError:
func = <bound method ZookeeperClient
args = (<function run_device_
kwargs = {}
/usr/lib/
281
282 def _zk_election_
283 func(*args, **kwargs)
284 # Exit if running master encounters error or exception
285 exit(1)
func = <function run_device_manager>
args = (Namespace(
kwargs = {}
/usr/lib/
528
529 def run_device_
530 device_manager = DeviceManager(args)
531 # end run_device_manager
532
device_manager undefined
global DeviceManager = <class 'device_
args = Namespace(
/usr/lib/
223 else:
224 for fq_name, uuid in pr_list:
225 pr = PhysicalRouterD
226 if pr.bgp_router:
227 BgpRouterDM.
pr undefined
global PhysicalRouterDM = <class 'device_
PhysicalRouterD
uuid = u'07689690-
/usr/lib/
53 if key not in cls._dict:
54 try:
55 cls._dict[key] = cls(key, *args)
56 except NoIdError as e:
57 cls._logger.debug(
cls = <class 'device_
cls._dict = {}
key = u'07689690-
args = ()
/usr/lib/
102 self.management_ip, self.user_
103 self.product, self.vnc_managed, self._logger)
104 self.uve_send()
105 # end __init__
106
self = <device_
self.uve_send = <bound method PhysicalRouterD
/usr/lib/
290 connected_
291 auto_conf_
292 product_
293 if deleted:
294 pr_trace.deleted = True
product_info undefined
self = <device_
self.vendor = u'Juniper'
self.product = None
<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 = ('coercing to Unicode: need string or buffer, NoneType found',)
message = 'coercing to Unicode: need string or buffer, NoneType found'
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/
func(*args, **kwargs)
File "/usr/lib/
device_manager = DeviceManager(args)
File "/usr/lib/
pr = PhysicalRouterD
File "/usr/lib/
cls._dict[key] = cls(key, *args)
File "/usr/lib/
self.uve_send()
File "/usr/lib/
product_
TypeError: coercing to Unicode: need string or buffer, NoneType found
env.roledefs = {
'all': [host1, host2, host3, host4, host5, host6, host7],
'cfgm': [host1,
'openstack': [host1,
'control': [host1,
'compute': [host4,host5, host6, host7],
'collector': [host1,
'webui': [host1],
'database': [host1,
'toragent': [host6, host7],
'tsn': [host6, host7],
'build': [host_build],
}
env.hostnames = {
'all': ['nodec1', 'nodec2', 'nodec3', 'nodek1', 'nodek2', 'nodek3', 'nodeg11']
}
Changed in juniperopenstack: | |
milestone: | none → r2.30-fcs |
Review in progress for https:/ /review. opencontrail. org/11751
Submitter: Suresh Balineni (<email address hidden>)