VNC API server fails to send UVEs when it receive AMQP notification

Bug #1673802 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

Bug Description

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_db.py", line 317, in _dbe_subscribe_callback
    self._dbe_create_notification(oper_info)
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_db.py", line 346, in _dbe_create_notification
    self.dbe_uve_trace("CREATE", obj_type, obj_uuid)
TypeError: dbe_uve_trace() takes exactly 5 arguments (4 given)

Tags: config
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/29688
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/29688
Committed: http://github.org/Juniper/contrail-controller/commit/50364d49198e75779d39693fc1d0bf7328baeb72
Submitter: Zuul (<email address hidden>)
Branch: master

commit 50364d49198e75779d39693fc1d0bf7328baeb72
Author: Édouard Thuleau <email address hidden>
Date: Fri Mar 17 15:59:04 2017 +0100

[VNC API Server] Fix UVE sending method on AMQP notifications

The method 'dbe_uve_trace' signature of class vnc_db.VncDbClient
was updated [1] but the same method of class vnc_db.VncServerKombuClient
which depends on it was not.
That fix simplifies it to directly calls
vnc_db.VncDbClient.dbe_uve_trace with AMQP message dict which have the
same signature as the method.
Also remove unused methods and factorize notification methods in
vnc_db.VncServerKombuClient class.

[1] https://review.opencontrail.org/#/c/29589/

Change-Id: I14f74952b5bab3494be23930aa840ff8aa3e7247
Closes-Bug: #1673802

Sachin Bansal (sbansal)
no longer affects: opencontrail
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.