spurious entries in FieldNames table

Bug #1545204 reported by Raj Reddy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.1
Fix Committed
Medium
Arivan Thillaikumaran
Trunk
Fix Committed
Medium
Arivan Thillaikumaran

Bug Description

The below entries shouldn't be there..

root@b5s29:~# contrail-stats --table FieldNames.fields --select name fields.value --where name='string*'
string
{"start_time": "now-10m", "sort_fields": [], "end_time": "now", "select_fields": ["name", "fields.value"], "table": "StatTable.FieldNames.fields", "where": [[{"suffix": null, "value2": null, "name": "name", "value": "string", "op": 7}]]}
{u'name': u'string:ModuleId', u'fields.value': u'contrail-alarm-gen'}
{u'name': u'string:Source', u'fields.value': u'b5s29'}
{u'name': u'string:ModuleId', u'fields.value': u'contrail-api'}
{u'name': u'string:Messagetype', u'fields.value': u'AlarmTrace'}
{u'name': u'string:ObjectId', u'fields.value': u''}
{u'name': u'string:Messagetype', u'fields.value': u'ContrailConfigTrace'}
root@b5s29:~#

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

Review in progress for https://review.opencontrail.org/22310
Submitter: Arivan Thillaikumaran (<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/22509
Submitter: Arivan Thillaikumaran (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/22509
Committed: http://github.org/Juniper/contrail-controller/commit/84a5513e2908d78e70936aba326baf12f5eeb528
Submitter: Zuul
Branch: R3.1

commit 84a5513e2908d78e70936aba326baf12f5eeb528
Author: Arivan Thillaikumaran <email address hidden>
Date: Thu Jul 21 18:03:27 2016 -0700

Sandesh message nodes can have optional map attributes.
When a node does have this map attribute, the type of key that the map uses is what is extracted.
When a node does not have this map attribute, the value of attribute is extracted, which is what is needed.
Added a check to make sure that the node's map attribute is not added to keymap.
Closes-Bug: #1545204

Change-Id: I2c9b54880fa74c9d2473489910f0827364fe0ce6

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

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

commit c457ff302ce2e8e5eede99922127ef3180a199b1
Author: Arivan Thillaikumaran <email address hidden>
Date: Thu Jul 21 18:03:27 2016 -0700

Sandesh message nodes can have optional map attributes.
When a node does have this map attribute, the type of key that the map uses is what is extracted.
When a node does not have this map attribute, the value of attribute is extracted, which is what is needed.
Added a check to make sure that the node's map attribute is not added to keymap.
Closes-Bug: #1545204

Change-Id: I2c9b54880fa74c9d2473489910f0827364fe0ce6

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.