[VNC svc-monitor] rabbit.py does not handle NoIdError when it reads/updates an object

Bug #1593143 reported by Édouard Thuleau
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Undecided
Unassigned
OpenContrail
New
Undecided
Unassigned

Bug Description

svc-monitor.rabbit does not handle NoIdError when it reads/updates an object:

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 70, in _vnc_subscribe_actions
    obj.update()
  File "/usr/lib/python2.7/dist-packages/svc_monitor/config_db.py", line 1154, in update
    obj = self.read_obj(self.uuid)
  File "/usr/lib/python2.7/dist-packages/cfgm_common/vnc_db.py", line 267, in read_obj
    ok, objs = cls._cassandra.object_read(obj_type or cls.obj_type, [uuid])
  File "/usr/lib/python2.7/dist-packages/cfgm_common/vnc_cassandra.py", line 631, in object_read
    raise NoIdError(obj_uuids[0])
NoIdError: Unknown id: ec321c50-2668-4bc1-a91e-7a2375bfa89b

Tags: config common
summary: - [VNC API cfgm_common] vnc_db.DBBase does not handle NoIdError when it
- reads an object
+ [VNC svc-monitor] config_db does not handle NoIdError when it reads an
+ object
description: updated
summary: - [VNC svc-monitor] config_db does not handle NoIdError when it reads an
- object
+ [VNC svc-monitor] rabbit.py does not handle NoIdError when it
+ reads/updates an object
description: updated
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/21220
Submitter: ?douard Thuleau (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/21220
Committed: http://github.org/Juniper/contrail-controller/commit/26ae352b5470182e6e1008ee8abb09d9ff96cfd1
Submitter: Zuul
Branch: master

commit 26ae352b5470182e6e1008ee8abb09d9ff96cfd1
Author: Édouard Thuleau <email address hidden>
Date: Thu Jun 16 10:57:36 2016 +0200

[VNC svc-monitor] Catch NoIdError when update an object

In case an object was vanished between svc-monitor receives an update and
it tries to fetch it, the common cassandra library raises a NoIdError
exception. This fix handle it and abandon that update notification.

Change-Id: I0b7b8125bbd78862c7b9a54090b341e8a342b49c
Closes-Bug: #1593143

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.