Log more details incase of exception in alarm processing

Bug #1677359 reported by Sundaresan Rajangam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.1
Fix Committed
Medium
Sundaresan Rajangam
R3.2
Fix Committed
Medium
Sundaresan Rajangam
Trunk
Fix Committed
Medium
Sundaresan Rajangam

Bug Description

03/27/2017 09:49:16 AM [contrail-alarm-gen]: Exception TypeError in Alarm Processing. Arguments:
('list indices must be integers, not str',) : traceback Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/opserver/alarmgen.py", line 231, in process_alarms
    alarm.config(), uv, local_uve)
  File "/usr/lib/python2.7/dist-packages/opserver/alarmgen.py", line 483, in _evaluate_uve_for_alarms
    if self._compare_operand_vals(val1['value'],
TypeError: list indices must be integers, not str

This can happen if there is a discrepancy in the UVE, in which case the field would be a list of list.

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

Review in progress for https://review.opencontrail.org/29951
Submitter: Sundaresan Rajangam (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.2

Review in progress for https://review.opencontrail.org/29953
Submitter: Sundaresan Rajangam (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.1

Review in progress for https://review.opencontrail.org/29954
Submitter: Sundaresan Rajangam (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/29954
Committed: http://github.org/Juniper/contrail-controller/commit/a0c9b72ee92d20c0829f7d8effd34ce379203780
Submitter: Zuul (<email address hidden>)
Branch: R3.1

commit a0c9b72ee92d20c0829f7d8effd34ce379203780
Author: Sundaresan Rajangam <email address hidden>
Date: Wed Mar 29 15:13:40 2017 -0700

Log UVE and alarm config in exception traceback

Change-Id: I8b14aaeec19efc5a89b6796deef109261fce6448
Closes-Bug: #1677359
(cherry picked from commit be9c6c32e4191af1a446a26fece69e6c441122eb)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/29953
Committed: http://github.org/Juniper/contrail-controller/commit/34d0e548584c583e8a35d5a4670ec46159e73249
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit 34d0e548584c583e8a35d5a4670ec46159e73249
Author: Sundaresan Rajangam <email address hidden>
Date: Wed Mar 29 15:13:40 2017 -0700

Log UVE and alarm config in exception traceback

Change-Id: I8b14aaeec19efc5a89b6796deef109261fce6448
Closes-Bug: #1677359

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/29951
Committed: http://github.org/Juniper/contrail-controller/commit/be9c6c32e4191af1a446a26fece69e6c441122eb
Submitter: Zuul (<email address hidden>)
Branch: master

commit be9c6c32e4191af1a446a26fece69e6c441122eb
Author: Sundaresan Rajangam <email address hidden>
Date: Wed Mar 29 15:13:40 2017 -0700

Log UVE and alarm config in exception traceback

Change-Id: I8b14aaeec19efc5a89b6796deef109261fce6448
Closes-Bug: #1677359

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.