[ocata-5.0-72]DM: AttributeError: 'PhysicalRouterDM' object has no attribute 'nc_handler_gl'

Bug #1774594 reported by Ganesha HV on 2018-06-01
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R5.0
Fix Released
High
Ganesha HV
Trunk
Fix Released
High
Ganesha HV

Bug Description

Setup
====
nodei30 & nodek10: cfgm/webui
10.204.217.235: openstack UI
nodek8 & nodek9: vrouter

Steps
=====
Added qfx as a Device Manager and the following error is seen in the device manager:

06/01/2018 12:51:07 PM [contrail-device-manager]: <type 'exceptions.AttributeError'>
Python 2.7.5: /usr/bin/python
Fri Jun 1 12:51:07 2018

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/site-packages/cfgm_common/vnc_amqp.py in _vnc_subscribe_callback(self=<device_manager.dm_amqp.DMAmqpHandle object>, oper_info={u'fq_name': [u'default-global-system-config', u'qfx2'], u'obj_dict': {u'bgp_router_refs': [{u'attr': None, u'to': [u'default-domain', u'default-project', u'ip-fabric', u'__default__', u'qfx2'], u'uuid': u'ac17f6d3-6b21-40ab-8736-f740a2ffb2ae'}], u'display_name': u'qfx2', u'fq_name': [u'default-global-system-config', u'qfx2'], u'id_perms': {u'created': u'2018-06-01T06:58:21.681773', u'creator': None, u'description': None, u'enable': True, u'last_modified': u'2018-06-01T07:17:36.780424', u'permissions': {u'group': u'cloud-admin-group', u'group_access': 7, u'other_access': 7, u'owner': u'cloud-admin', u'owner_access': 7}, u'user_visible': True, u'uuid': {u'uuid_lslong': 11462285243427873665L, u'uuid_mslong': 7972252307705840002}}, u'parent_type': u'global-system-config', u'parent_uuid': u'37d702cc-70ce-4ec2-b725-262dbd21acb6', u'perms2': {u'global_access': 0, u'owner': u'cloud-admin', u'owner_access': 7, u'share': []}, u'physical_router_dataplane_ip': u'192.168.200.202', u'physical_router_junos_service_ports': {u'service_port': [u'ge-0/0/35']}, u'physical_router_loopback_ip': u'1.255.255.2', ...}, u'oper': u'DELETE', u'request-id': u'req-d7b98313-e25f-48af-91c5-500e489503aa', u'type': u'physical_router', u'uuid': u'6ea3213c-2c98-4182-9f12-37b2f8b86381'})
   63 try:
   64 self.oper_info = oper_info
   65 self.vnc_subscribe_actions()
   66
   67 except ConnectionError:
self = <device_manager.dm_amqp.DMAmqpHandle object>
self.vnc_subscribe_actions = <bound method DMAmqpHandle.vnc_subscribe_actions of <device_manager.dm_amqp.DMAmqpHandle object>>

 /usr/lib/python2.7/site-packages/cfgm_common/vnc_amqp.py in vnc_subscribe_actions(self=<device_manager.dm_amqp.DMAmqpHandle object>)
  115 self.handle_update()
  116 elif oper == 'DELETE':
  117 self.handle_delete()
  118 elif oper == 'UPDATE-IMPLICIT':
  119 # Ignore this operation
self = <device_manager.dm_amqp.DMAmqpHandle object>
self.handle_delete = <bound method DMAmqpHandle.handle_delete of <device_manager.dm_amqp.DMAmqpHandle object>>

 /usr/lib/python2.7/site-packages/cfgm_common/vnc_amqp.py in handle_delete(self=<device_manager.dm_amqp.DMAmqpHandle object>)

self.obj_class = <class 'device_manager.db.PhysicalRouterDM'>
self.obj_class.delete = <bound method __metaclass__.delete of <class 'device_manager.db.PhysicalRouterDM'>>
obj_key = u'6ea3213c-2c98-4182-9f12-37b2f8b86381'

 /usr/lib/python2.7/site-packages/device_manager/db.py in delete(cls=<class 'device_manager.db.PhysicalRouterDM'>, uuid=u'6ea3213c-2c98-4182-9f12-37b2f8b86381')
  170 return
  171 obj = cls._dict[uuid]
  172 if obj.nc_handler_gl:
  173 gevent.kill(obj.nc_handler_gl)
  174 if obj.is_vnc_managed() and obj.is_conf_sent():
obj = <device_manager.db.PhysicalRouterDM object>
obj.nc_handler_gl undefined
<type 'exceptions.AttributeError'>: 'PhysicalRouterDM' object has no attribute 'nc_handler_gl'
    __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 = ("'PhysicalRouterDM' object has no attribute 'nc_handler_gl'",)
    message = "'PhysicalRouterDM' object has no attribute 'nc_handler_gl'"

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/site-packages/cfgm_common/vnc_amqp.py", line 65, in _vnc_subscribe_callback
    self.vnc_subscribe_actions()
  File "/usr/lib/python2.7/site-packages/cfgm_common/vnc_amqp.py", line 117, in vnc_subscribe_actions
    self.handle_delete()
  File "/usr/lib/python2.7/site-packages/cfgm_common/vnc_amqp.py", line 201, in handle_delete
    self.obj_class.delete(obj_key)
  File "/usr/lib/python2.7/site-packages/device_manager/db.py", line 172, in delete
    if obj.nc_handler_gl:
AttributeError: 'PhysicalRouterDM' object has no attribute 'nc_handler_gl'

Ganesha HV (ganeshahv) on 2018-06-01
information type: Proprietary → Public
Atul Moghe (moghea) wrote :

can you try with latest build.

Ganesha HV (ganeshahv) wrote :

Not seen in latest build.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers