router gateway clear doesnt delete the dynamically created left network

Bug #1563689 reported by Senthilnathan Murugappan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Fix Committed
High
Rudra Rugge
R3.1
Fix Committed
High
Rudra Rugge
Trunk
Fix Committed
High
Rudra Rugge

Bug Description

Build: 3.0GA Kilo

root@a2s42:~/contrail-test# neutron router-gateway-set test-router gw-vn
Set gateway for router test-router
root@a2s42:~/contrail-test# 03/29/2016 11:50:50 PM [contrail-svc-monitor]: __default__ [SYS_NOTICE]: SvcMonitorLog: vrouter default-global-system-config:a2s36 updated with vm default-domain__admin__snat_8daf6f7a-3536-4bb4-b439-a332f6015d2c_2cda53e5-ddc8-4d0d-8ef1-1d5748058a57__1
03/29/2016 11:50:50 PM [contrail-svc-monitor]: __default__ [SYS_ERR]: SvcMonitorLog: No vrouter available for VM default-domain__admin__snat_8daf6f7a-3536-4bb4-b439-a332f6015d2c_2cda53e5-ddc8-4d0d-8ef1-1d5748058a57__2

root@a2s42:~/contrail-test# neutron router-gateway-clear test-router gw-vn
Removed gateway from router test-router
root@a2s42:~/contrail-test# 03/29/2016 11:51:04 PM [contrail-svc-monitor]: Duplicate uve delete <default-domain:admin:snat_8daf6f7a-3536-4bb4-b439-a332f6015d2c_2cda53e5-ddc8-4d0d-8ef1-1d5748058a57>
03/29/2016 11:51:04 PM [contrail-svc-monitor]: __default__ [SYS_ERR]: SvcMonitorLog: <type 'exceptions.AttributeError'>
Python 2.7.6: /usr/bin/python
Tue Mar 29 23:51:04 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'70a93d65-58c2-4ba4-aab3-6e70db9b3af5'})
   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'70a93d65-58c2-4ba4-aab3-6e70db9b3af5'}

 /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'70a93d65-58c2-4ba4-aab3-6e70db9b3af5'})
   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'

root@a2s42:~/contrail-test# neutron net-list | grep 2cda53e5-ddc8-4d0d-8ef1-1d5748058a57
| e40455c1-a7ad-459f-8bfb-e2c51ab26616 | snat-si-left_snat_8daf6f7a-3536-4bb4-b439-a332f6015d2c_2cda53e5-ddc8-4d0d-8ef1-1d5748058a57 | b08c873a-da35-4876-b4c5-4c6591a0f452 100.64.0.0/29 |

Tags: snat
Revision history for this message
Rudra Rugge (rrugge) wrote :

This has been fixed in the latest builds on all branches as part of rabbit handling.

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.