grafana-gnocchi-datasource
grafana-gnocchi-datasource copied to clipboard
Issue Keystone Auth, forcing HTTPS
Using Auth Mode keystone, with all settings OK (URL endpoint http://controller:5000, domain, project, user and password) and CORS enabled. Grafana gets the Keystone token and the Gnocchi endpoint, and goes to query it. But, the connection is done via HTTPS automatically forced, not HTTP. As HTTPS is not responding, data load fails. This happens in some versions of Firefox and Chrome, Internet Explorer is not having this issue and gets the data OK.
Recent Chrome and Firefox are stricter about ssl. You can't mix non-ssl with ssl endpoint within the same page with CORS. So I don't think this can be solved on the plugin side. Maybe you should just ensure keystone AND Gnocchi are both in https://
Can you provide browser console output when the issue occurs ? so I can confirm my though.
All connections are HTTP, Grafana, Keystone and Gnocchi. Endpoint Gnocchi is also set as HTTP.
In Firefox, directly queries to HTTPS, while Chrome does HTTP but then redirect 307 to HTTPS.
Tomorrow I'll send some screenshots.
Console outputs:
Failed to load http://controller:8041/v1/search/resource/instance?filter=id+in+%5B%5D: Response for preflight is invalid (redirect)
Same problems. I don't wont use inside ssl, so i configure CORS in keystone and gnocchi as http://my_ip:3000 If i use Internet Explorer all good, problem with redirects in firefox and chrome.