schema and svc-mon failed with unbound method get_process_state_cb() error

Bug #1381182 reported by Yatin Kumbhare
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenContrail
New
Undecided
Megh Bhatt

Bug Description

For Ubuntu 12.04.5 LTS
With latest contrail-installer, contrail screen for "schema" and "svc-mon" throw following error.
Juniper UI show all nodes down.

python /usr/lib/python2.7/dist-packages/schema_transformer/to_bgp.py --reset_config --conf_file /etc/contrail/contrail-schema.conf & echo $! >/home/ubuntu/contrail-installer/status/contrail/schema.pid; fg || echo "schema failed to start" | tee "/home/ubuntu/contrail-installer/status/contrail/schema.failure"
[1] 8833
python /usr/lib/python2.7/dist-packages/schema_transformer/to_bgp.py --reset_config --conf_file /etc/contrail/contrail-schema.conf
10/14/2014 06:33:21 PM [yk-contrail-vm1:Schema:Config:0]: SANDESH: Logging: LEVEL: [SYS_INFO] -> [SYS_DEBUG]
10/14/2014 06:33:21 PM [yk-contrail-vm1:Schema:Config:0]: SANDESH: Logging: FILE: [<stdout>] -> [/var/log/contrail/schema.log]
Bottle v0.12.7 server starting up (using GeventServer())...
Listening on http://0.0.0.0:8087/
Hit Ctrl-C to quit.

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run
    result = self._run(*self.args, **self.kwargs)
  File "/usr/lib/python2.7/dist-packages/pysandesh/connection_info.py", line 33, in _conn_info_timer_expiry_handler
    ConnectionState._status_cb(conn_infos)
TypeError: unbound method get_process_state_cb() must be called with ConnectionState instance as first argument (got list instance instead)
<Greenlet at 0x2df8730: _conn_info_timer_expiry_handler> failed with TypeError

-----------
Output of ConnectionState.__dict__
dict_proxy({'_CONN_INFO_INTVL': 60, '__module__': 'pysandesh.connection_info', 'update': <staticmethod object at 0x3e081a0>, '_conn_info_timer_expiry_handler': <staticmethod object at 0x3defd00>, '__dict__': <attribute '__dict__' of 'ConnectionState' objects>, '_conn_info_timer': <Greenlet at 0x41ae730: _conn_info_timer_expiry_handler>, '_sandesh': <pysandesh.sandesh_base.Sandesh object at 0x3f52a90>, '__weakref__': <attribute '__weakref__' of 'ConnectionState' objects>, '_uve_type_cls': <class 'cfgm_common.uve.cfgm_cpuinfo.ttypes.NodeStatusUVE'>, '_instance_id': '0', '_module_id': 'Schema', 'init': <staticmethod object at 0x3e08168>, '_connection_map': {(3, 'Database'): ConnectionInfo(server_addrs=['127.0.0.1:9160'], status='Up', type='Database', name='Database', description=''), (2, ''): ConnectionInfo(server_addrs=['127.0.0.1:8086'], status='Up', type='Collector', name='', description='ClientInit to Established on EvSandeshCtrlMessageRecv'), (7, 'ApiServer'): ConnectionInfo(server_addrs=['127.0.0.1:8082 '], status='Up', type='ApiServer', name='ApiServer', description=''), (6, 'Collector'): ConnectionInfo(server_addrs=['127.0.0.1:5998'], status='Up', type='Discovery', name='Collector', description='Subscribe Response'), (5, 'Zookeeper'): ConnectionInfo(server_addrs=['127.0.0.1'], status='Up', type='Zookeeper', name='Zookeeper', description='')}, '_hostname': 'yk-contrail-vm1', 'get_process_state_cb': <staticmethod object at 0x3e08130>, '_status_cb': <function get_process_state_cb at 0x3e0a9b0>, '_uve_data_type_cls': <class 'cfgm_common.uve.cfgm_cpuinfo.ttypes.NodeStatus'>, '__doc__': None, 'delete': <staticmethod object at 0x3e081d8>})

Tags: analytics
Sachin Bansal (sbansal)
Changed in opencontrail:
assignee: nobody → Megh Bhatt (meghb)
tags: added: analytics
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.