gnocchi metric list fails with unauthorized error

Bug #1674920 reported by narasimha18sv
26
This bug affects 6 people
Affects Status Importance Assigned to Milestone
devstack
Invalid
Undecided
Unassigned

Bug Description

I have installed gnocchi with master code. Getting below error. No other specific logs.
Environment is with ceilometer,gnocchi and panko installed.

openrc credentials I used.
export OS_PROJECT_DOMAIN_NAME=default
export OS_USER_DOMAIN_NAME=default
export OS_PROJECT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=cloud123
export OS_AUTH_URL=http://192.168.56.101:35357/v3
export OS_IDENTITY_API_VERSION=3
export OS_IMAGE_API_VERSION=2

Even after sourcing the openrc present in devstack folder also getting the same issue

$ gnocchi metric list
The request you have made requires authentication. (HTTP 401)

gnocchi-api.log:
::1 - - [22/Mar/2017:05:04:39 -0400] "GET /v1/metric HTTP/1.1" 401 114 "-" "gnocchi keystoneauth1/2.19.0 python-requests/2.12.5 CPython/2.7.5"

Revision history for this message
KI4RBC (mikemcdonough) wrote :

Has anyone found a solution to this? I also get this when attempting to use the grafana plugin.

Revision history for this message
KI4RBC (mikemcdonough) wrote :

using curl:

```
$ AUTH_TOKEN=$(/usr/bin/openstack token issue -c id -f value)
$ /usr/bin/curl -s -X GET -H "X-Auth-Token: $AUTH_TOKEN" http://controller:8041/v1/metric
401 Unauthorized

This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.

 Unable to determine current user
```

Revision history for this message
KI4RBC (mikemcdonough) wrote :

I found this was a problem with the storage.ceph_keyring file. The docs say this has to be the path to the keyring file so I had only entered the directory. Once I added the directory and filename, the problem was resolved.

Changed in devstack:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.