Log message.openstack_roles field is not correctly anlayzed

Bug #1540852 reported by Swann Croiset
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StackLight
Fix Released
Medium
Swann Croiset

Bug Description

Log

primary-controller, primary-elasticsearch_kibana,primary-influxdb_grafana,primary-infrastructure_alerting

Run this quey to reproduce:
curl -XGET 'http://<ES-VIP>:9200/log-*/_search?pretty' -d '
{
        "aggregations": {
                "roles" : {
                        "terms" : { "field" : "openstack_roles" }
                }
        }

}'

Actual result:

... [snip]
 "buckets" : [ {
        "key" : "primary",
        "doc_count" : 2112206
      }, {
        "key" : "controller",
        "doc_count" : 2045353
      }, {
        "key" : "elasticsearch_kibana",
        "doc_count" : 73325
      }, {
        "key" : "influxdb_grafana",
        "doc_count" : 66853
      }, {
        "key" : "infrastructure_alerting",
        "doc_count" : 66853
      }, {
        "key" : "cinder",
        "doc_count" : 11649
      }, {
        "key" : "compute",
        "doc_count" : 11649

Expected Result:

.. [snip]
  "aggregations" : {
    "roles" : {
      "doc_count_error_upper_bound" : 0,
      "sum_other_doc_count" : 0,
      "buckets" : [ {
        "key" : "primary-controller",
        "doc_count" : 7401
      }, {
        "key" : "primary-elasticsearch_kibana",
        "doc_count" : 411
      }, {
        "key" : "primary-influxdb_grafana",
        "doc_count" : 411
      }, {
        "key" : "primary-infrastructure_alerting",
        "doc_count" : 411
      }, {
        "key" : "cinder",
        "doc_count" : 41
      }, {
        "key" : "compute",
        "doc_count" : 41
      }, {
        "key" : "elasticsearch_kibana",
        "doc_count" : 31
      } ]
    }

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-plugin-elasticsearch-kibana (master)

Fix proposed to branch: master
Review: https://review.openstack.org/275117

Changed in lma-toolchain:
status: Confirmed → In Progress
Swann Croiset (swann-w)
Changed in lma-toolchain:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-plugin-elasticsearch-kibana (master)

Reviewed: https://review.openstack.org/275117
Committed: https://git.openstack.org/cgit/openstack/fuel-plugin-elasticsearch-kibana/commit/?id=dfc153fe483701ffafa0ad3cba0b33b4f03e1ad3
Submitter: Jenkins
Branch: master

commit dfc153fe483701ffafa0ad3cba0b33b4f03e1ad3
Author: Swann Croiset <email address hidden>
Date: Tue Feb 2 11:50:03 2016 +0100

    Correctly analyze openstack_roles field

    Fixes-bug: #1540852

    Change-Id: If3bc9ba1fc3311c0b99e77403ab0a7ef15b62fb0

Changed in lma-toolchain:
status: In Progress → Fix Committed
Changed in lma-toolchain:
status: Fix Committed → Fix Released
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.