AttributeError on update() while starting svc-monitor

Bug #1549113 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.1
Fix Committed
Medium
Rudra Rugge
Trunk
Fix Committed
Medium
Rudra Rugge

Bug Description

R3.0 2715 Ubuntu 14.04 Kilo

Observed this on supervisor-config restart

02/24/2016 10:40:52 AM [contrail-svc-monitor]: __default__ [SYS_ERR]: SvcMonitorLog: <type 'exceptions.AttributeError'>
Python 2.7.6: /usr/bin/python
Wed Feb 24 10:40:52 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/svc_monitor/rabbit.py in _vnc_subscribe_callback(self=<svc_monitor.rabbit.RabbitConnection object>, oper_info={u'oper': u'UPDATE', u'type': u'instance-ip', u'uuid': u'5c8cf42b-3575-4403-a045-1bbb18ea3597'})
   37 self._db_resync_done.wait()
   38 try:
   39 self._vnc_subscribe_actions(oper_info)
   40 except Exception:
   41 svc_monitor.cgitb_error_log(self)
self = <svc_monitor.rabbit.RabbitConnection object>
self._vnc_subscribe_actions = <bound method RabbitConnection._vnc_subscribe_ac... of <svc_monitor.rabbit.RabbitConnection object>>
oper_info = {u'oper': u'UPDATE', u'type': u'instance-ip', u'uuid': u'5c8cf42b-3575-4403-a045-1bbb18ea3597'}

 /usr/lib/python2.7/dist-packages/svc_monitor/rabbit.py in _vnc_subscribe_actions(self=<svc_monitor.rabbit.RabbitConnection object>, oper_info={u'oper': u'UPDATE', u'type': u'instance-ip', u'uuid': u'5c8cf42b-3575-4403-a045-1bbb18ea3597'})
   66 else:
   67 obj = obj_class.locate(obj_id)
   68 obj.update()
   69 dependency_tracker = DependencyTracker(
   70 DBBaseSM.get_obj_type_map(), self._REACTION_MAP)
obj = None
obj.update undefined
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'update'
    __class__ = <type 'exceptions.AttributeError'>
    __delattr__ = <method-wrapper '__delattr__' of exceptions.AttributeError object>
    __dict__ = {}
    __doc__ = 'Attribute not found.'
    __format__ = <built-in method __format__ of exceptions.AttributeError object>
    __getattribute__ = <method-wrapper '__getattribute__' of exceptions.AttributeError object>
    __getitem__ = <method-wrapper '__getitem__' of exceptions.AttributeError object>
    __getslice__ = <method-wrapper '__getslice__' of exceptions.AttributeError object>
    __hash__ = <method-wrapper '__hash__' of exceptions.AttributeError object>
    __init__ = <method-wrapper '__init__' of exceptions.AttributeError object>
    __new__ = <built-in method __new__ of type object>
    __reduce__ = <built-in method __reduce__ of exceptions.AttributeError object>
    __reduce_ex__ = <built-in method __reduce_ex__ of exceptions.AttributeError object>
    __repr__ = <method-wrapper '__repr__' of exceptions.AttributeError object>
    __setattr__ = <method-wrapper '__setattr__' of exceptions.AttributeError object>
    __setstate__ = <built-in method __setstate__ of exceptions.AttributeError object>
    __sizeof__ = <built-in method __sizeof__ of exceptions.AttributeError object>
    __str__ = <method-wrapper '__str__' of exceptions.AttributeError object>
    __subclasshook__ = <built-in method __subclasshook__ of type object>
    __unicode__ = <built-in method __unicode__ of exceptions.AttributeError object>
    args = ("'NoneType' object has no attribute 'update'",)
    message = "'NoneType' object has no attribute 'update'"

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/svc_monitor/rabbit.py", line 39, in _vnc_subscribe_callback
    self._vnc_subscribe_actions(oper_info)
  File "/usr/lib/python2.7/dist-packages/svc_monitor/rabbit.py", line 68, in _vnc_subscribe_actions
    obj.update()
AttributeError: 'NoneType' object has no attribute 'update'

Tags: config
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.