helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

[BUG][opensearch-dashboards] referenced role does not exist

Open joblanc opened this issue 3 years ago • 6 comments

Describe the bug Rolebinding "{chart_name}-dashboards-rolebinding" references role "{chart_name}-dashboards" which does not exists. Helm install command sometimes fails with message "failed to create resource: roles.rbac.authorization.k8s.io "{chart_name}-dashboards" not found"

To Reproduce Steps to reproduce the behavior:

  1. Deploy opensearch-dashboards with "serviceAccount.create" and "rbac.create" set to true

Expected behavior Existing role "{chart_name}-dashboards"

Chart Name opensearch-dashboards

Host/Environment (please complete the following information):

  • Helm Version: 3.7.1
  • Kubernetes Version: 1.21.3

joblanc avatar Jan 12 '22 17:01 joblanc

Hi @joblanc thanks for reporting this issue. Have you discovered any workaround to this issue? @DandyDeveloper @TheAlgo please take a look at it.

Thanks.

peterzhuamazon avatar Jan 20 '22 22:01 peterzhuamazon

Poke again @DandyDeveloper @TheAlgo

peterzhuamazon avatar Feb 20 '22 17:02 peterzhuamazon

Hello ... any solution to this problem? I am facing the same issue

lindeberg25 avatar Feb 23 '22 15:02 lindeberg25

Workaround at present is to add your own role, this is a bug. It needs resolving.

DandyDeveloper avatar Feb 24 '22 03:02 DandyDeveloper

Hi,

Workaround at present is to add your own role, this is a bug. It needs resolving.

Can you elaborate more on the workaround please, I'm having this issue also. I achieved to deploy the opensearch-dashboard rbac: create: false but it's not working correctly. {"type":"log","@timestamp":"2022-06-23T15:41:01Z","tags":["error","opensearch","data"],"pid":1,"message":"[ConnectionError]: Client network socket disconnected before secure TLS connection was established"}

MonGMZ avatar Jun 23 '22 16:06 MonGMZ

Are the role requirements listed somewhere?

Ryanj535 avatar Oct 25 '22 19:10 Ryanj535