gluster / gluster-kubernetes

GlusterFS Native Storage Service for Kubernetes
Apache License 2.0
874 stars 390 forks source link

401 with latest heketi:dev image #637

Open StodaraHodan opened 4 years ago

StodaraHodan commented 4 years ago

With the latest heketi:dev images i get an 401 from the api.

Log of heketi pod:

[negroni] 2020-01-29T15:23:46Z | 401 | 88.364µs | 10.110.48.193:8080 | POST /volumes

I tried this https://github.com/heketi/heketi/issues/1664 but this would only fix heketi-cli access. Downgrade also did not work because database is not compatible anymore.

I tried enabling auth in heketi.json, also didn't work.

tried redeploying heketi with new database but couldn't use volumes as there are already volumes on there.

Any idea on how to get it to work in an kubernetes deployment?

phlogistonjohn commented 4 years ago

Newer versions of heketi always require authentication unless you add a command line option to the heketi command at start up. Make sure auth is set up correctly in your configuration and that your clients are passing their auth tokens to the server as well.