Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1595956 - Kibana dashboards do not work with Kibana5/Elasticsearch5
Kibana dashboards do not work with Kibana5/Elasticsearch5
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Logging (Show other bugs)
3.11.0
Unspecified Unspecified
unspecified Severity high
: ---
: 3.11.0
Assigned To: Rich Megginson
Anping Li
: TestBlocker
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-06-27 18:00 EDT by Rich Megginson
Modified: 2018-10-11 03:21 EDT (History)
3 users (show)

See Also:
Fixed In Version: openshift3/ose-logging-elasticsearch5:v3.11.0-0.17.0.0
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-10-11 03:20:43 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
The kibaban pod logs (5.02 KB, application/x-gzip)
2018-08-06 06:05 EDT, Anping Li
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Github openshift/origin-aggregated-logging/pull/1225 None None None 2018-06-27 23:07 EDT
Red Hat Product Errata RHBA-2018:2652 None None None 2018-10-11 03:21 EDT

  None (edit)
Description Rich Megginson 2018-06-27 18:00:39 EDT
Description of problem:
es_load_kibana_ui_objects does not work with Kibana5/Elasticsearch5

Running with output to stdout:
{"took":0,"errors":true,"items":[{"create":{"_index":"","_type":"dashboard","_id":"Kubernetes-Overview","status":500,"error":{"type":"string_index_out_of_bounds_exception","reason":"String index out of range: 0"}}},{"create":{"_index":"","_type":"search","_id":"k8s-logs","status":500,"error":{"type":"string_index_out_of_bounds_exception","reason":"String index out of range: 0"}}},{"create":{"_index":"","_type":"visualization","_id":"Kubernetes-Logs-by-Namespace,-DC,-Pod,-Container","status":500,"error":{"type":"string_index_out_of_bounds_exception","reason":"String index out of range: 0"}}},{"create":{"_index":"","_type":"visualization","_id":"Kubernetes-Logs-over-Time-w-slash-Container-Name","status":500,"error":{"type":"string_index_out_of_bounds_exception","reason":"String index out of range: 0"}}}]}+ info Success

We need to have brand new json files for the ui objects for es5/kibana5


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 1 openshift-github-bot 2018-07-02 18:24:57 EDT
Commits pushed to master at https://github.com/openshift/origin-aggregated-logging

https://github.com/openshift/origin-aggregated-logging/commit/977b9c0267dae76000df2b27207972c0a7d32258
Bug 1595956 - Kibana dashboards do not work with Kibana5/Elasticsearch5

https://bugzilla.redhat.com/show_bug.cgi?id=1595956
es5 does not like leading //

https://github.com/openshift/origin-aggregated-logging/commit/1287aedf2ad05554d1cafa2bf38710dd0a738ce0
Merge pull request #1225 from richm/bug-1595956

Bug 1595956 - Kibana dashboards do not work with Kibana5/Elasticsearch5
Comment 2 Anping Li 2018-08-06 06:05 EDT
Created attachment 1473559 [details]
The kibaban pod logs

Login as a cluster-admin.  No default index pattern, and couldn't create index pattern. It report the following messages.  (Saml method are used for the attached logs, I had gotten same error when use Allowall method)

[object Object]: [security_exception] no permissions for [indices:data/read/field_caps] and User [name=CN=system.logging.kibana,OU=OpenShift,O=Logging, roles=[]]
Comment 3 Jeff Cantrill 2018-08-06 09:59:47 EDT
Rich,

I am seeing some general permission issues I'm trying to resolve now which I've tried to capture in [1].  I believe the fix to this may resolve the issue you are seeing here.

[1] https://github.com/fabric8io/openshift-elasticsearch-plugin/issues/155
Comment 4 Rich Megginson 2018-08-06 11:32:27 EDT
(In reply to Anping Li from comment #2)
> Created attachment 1473559 [details]
> The kibaban pod logs
> 
> Login as a cluster-admin.  No default index pattern, and couldn't create
> index pattern. It report the following messages.  (Saml method are used for
> the attached logs, I had gotten same error when use Allowall method)
> 
> [object Object]: [security_exception] no permissions for
> [indices:data/read/field_caps] and User
> [name=CN=system.logging.kibana,OU=OpenShift,O=Logging, roles=[]]

This is a different issue - "Can't Login to Kibana5"
Comment 5 Jeff Cantrill 2018-08-08 16:17:52 EDT
Testing with https://github.com/openshift/origin-aggregated-logging/pull/1273 I am able to run script:

# oc exec -c elasticsearch $pod -- es_load_kibana_ui_objects admin
[2018-08-08 10:04:18,222][INFO ][container.run            ] Adding Kibana dashboards and other UI objects for user admin index .kibana.d033e22ae348aeb5660fc2140aec35850c4da997
[2018-08-08 10:04:18,223][INFO ][container.run            ] Adding the index pattern for project.* . . .
[2018-08-08 10:04:18,487][INFO ][container.run            ] Adding the Kibana UI objects . . .
[2018-08-08 10:04:18,779][INFO ][container.run            ] Success
Comment 6 Rich Megginson 2018-08-08 16:26:53 EDT
(In reply to Jeff Cantrill from comment #5)
> Testing with
> https://github.com/openshift/origin-aggregated-logging/pull/1273 I am able
> to run script:
> 
> # oc exec -c elasticsearch $pod -- es_load_kibana_ui_objects admin
> [2018-08-08 10:04:18,222][INFO ][container.run            ] Adding Kibana
> dashboards and other UI objects for user admin index
> .kibana.d033e22ae348aeb5660fc2140aec35850c4da997
> [2018-08-08 10:04:18,223][INFO ][container.run            ] Adding the index
> pattern for project.* . . .
> [2018-08-08 10:04:18,487][INFO ][container.run            ] Adding the
> Kibana UI objects . . .
> [2018-08-08 10:04:18,779][INFO ][container.run            ] Success

And you are able to login to kibana?
Comment 7 Jeff Cantrill 2018-08-08 17:00:02 EDT
Yes
Comment 8 Anping Li 2018-08-20 22:47:51 EDT
The kibana can show index with v3.11.0-0.19.0.0
Comment 10 errata-xmlrpc 2018-10-11 03:20:43 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:2652

Note You need to log in before you can comment on or make changes to this bug.