Bug 1388045 - Encounter "[Security_exception]No permission for indices:data/read/msearch" on kibana UI
Summary: Encounter "[Security_exception]No permission for indices:data/read/msearch" o...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Logging
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: ewolinet
QA Contact: Xia Zhao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-24 10:01 UTC by Xia Zhao
Modified: 2016-12-09 21:49 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-09 21:49:54 UTC
Target Upstream Version:


Attachments (Terms of Use)
es_log (104.01 KB, text/plain)
2016-10-24 10:01 UTC, Xia Zhao
no flags Details
kibana_log (239.11 KB, text/plain)
2016-10-24 10:04 UTC, Xia Zhao
no flags Details
flunetd_log (477.42 KB, text/plain)
2016-10-24 10:05 UTC, Xia Zhao
no flags Details
screenshot (191.23 KB, image/png)
2016-10-24 10:06 UTC, Xia Zhao
no flags Details

Description Xia Zhao 2016-10-24 10:01:48 UTC
Created attachment 1213426 [details]
es_log

Description of problem:
Encounter "[Security_exception]No permission for indices:data/read/msearch" after logged in Kibana UI, and see error status 403 and 404 on java console panel, please refer to the attached screenshot for detailed error stacks.

Version-Release number of selected component (if applicable):
Built out image from https://github.com/openshift/origin-aggregated-logging

openshift v1.4.0-alpha.0+c94f61a
kubernetes v1.4.0+776c994
etcd 3.1.0-alpha.1

How reproducible:
About 50%, mostly happen for every user's first login

Steps to Reproduce:
0.Start docker with journal log driver
1.Define local builds according to https://github.com/openshift/origin-aggregated-logging#defining-local-builds
2.Deploy logging with the built out images (OPS cluster is set to false, use_journal set to true).
3.Login kibana UI with different users

Actual results:
Encounter "[Security_exception]No permission for indices:data/read/msearch" on kibana UI.

Expected results:
Should not encounter "[Security_exception]No permission for indices:data/read/msearch" on kibana UI

Additional info:
es pod log attached
screenshot attached
Issue reproduced when docker log driver is set to both json file and journal.

Comment 1 Xia Zhao 2016-10-24 10:04:38 UTC
Created attachment 1213427 [details]
kibana_log

Comment 2 Xia Zhao 2016-10-24 10:05:00 UTC
Created attachment 1213428 [details]
flunetd_log

Comment 3 Xia Zhao 2016-10-24 10:06:02 UTC
Created attachment 1213429 [details]
screenshot

Comment 5 Xia Zhao 2016-10-25 05:14:21 UTC
Hi Eric,

Thanks for pointing out this change. After adding this new step during logging deployment, this issue did not happen anymore:

oadm policy add-cluster-role-to-user rolebinding-reader system:serviceaccount:logging:aggregated-logging-elasticsearch

Please transfer this back for closure.

Thanks,
Xia

Comment 6 Xia Zhao 2016-10-25 14:46:52 UTC
Verified on 

openshift v1.4.0-alpha.0+c94f61a
kubernetes v1.4.0+776c994
etcd 3.1.0-alpha.1

Fixed after adding 

oadm policy add-cluster-role-to-user rolebinding-reader system:serviceaccount:logging:aggregated-logging-elasticsearch

in logging deployment process


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