ERROR gnocchi ClientException: Authorization Failure. Authorization failed: The resource could not be found. (HTTP 404)

Bug #1666124 reported by Amit Bhardwaj on 2017-02-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gnocchi
Invalid
Undecided
Unassigned

Bug Description

Hi,

I am trying to setup Gnocchi with Ceilometer on Newton release. I followed steps to install Gnocchi from this link : https://docs.openstack.org/developer/gnocchi/install.html

While running gnocchi-upgrade, I am getting this error on screen and it fails to start:

2017-02-20 12:53:21.272 3321 ERROR swiftclient [-] Authorization Failure. Authorization failed: The resource could not be found. (HTTP 404)
2017-02-20 12:53:21.272 3321 ERROR swiftclient Traceback (most recent call last):
2017-02-20 12:53:21.272 3321 ERROR swiftclient File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1635, in _retry
2017-02-20 12:53:21.272 3321 ERROR swiftclient self.url, self.token = self.get_auth()
2017-02-20 12:53:21.272 3321 ERROR swiftclient File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1587, in get_auth
2017-02-20 12:53:21.272 3321 ERROR swiftclient timeout=self.timeout)
2017-02-20 12:53:21.272 3321 ERROR swiftclient File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 662, in get_auth
2017-02-20 12:53:21.272 3321 ERROR swiftclient auth_version=auth_version)
2017-02-20 12:53:21.272 3321 ERROR swiftclient File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 582, in get_auth_keystone
2017-02-20 12:53:21.272 3321 ERROR swiftclient raise ClientException('Authorization Failure. %s' % err)
2017-02-20 12:53:21.272 3321 ERROR swiftclient ClientException: Authorization Failure. Authorization failed: The resource could not be found. (HTTP 404)
2017-02-20 12:53:21.272 3321 ERROR swiftclient
2017-02-20 12:53:21.273 3321 CRITICAL gnocchi [-] ClientException: Authorization Failure. Authorization failed: The resource could not be found. (HTTP 404)
2017-02-20 12:53:21.273 3321 ERROR gnocchi Traceback (most recent call last):
2017-02-20 12:53:21.273 3321 ERROR gnocchi File "/usr/local/bin/gnocchi-upgrade", line 11, in <module>
2017-02-20 12:53:21.273 3321 ERROR gnocchi sys.exit(upgrade())
2017-02-20 12:53:21.273 3321 ERROR gnocchi File "/usr/local/lib/python2.7/dist-packages/gnocchi/cli.py", line 70, in upgrade
2017-02-20 12:53:21.273 3321 ERROR gnocchi s = storage.get_driver(conf)
2017-02-20 12:53:21.273 3321 ERROR gnocchi File "/usr/local/lib/python2.7/dist-packages/gnocchi/storage/__init__.py", line 144, in get_driver
2017-02-20 12:53:21.273 3321 ERROR gnocchi conf.incoming)
2017-02-20 12:53:21.273 3321 ERROR gnocchi File "/usr/local/lib/python2.7/dist-packages/gnocchi/storage/incoming/swift.py", line 35, in __init__
2017-02-20 12:53:21.273 3321 ERROR gnocchi self.swift.put_container(self.MEASURE_PREFIX)
2017-02-20 12:53:21.273 3321 ERROR gnocchi File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1728, in put_container
2017-02-20 12:53:21.273 3321 ERROR gnocchi query_string=query_string)
2017-02-20 12:53:21.273 3321 ERROR gnocchi File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1635, in _retry
2017-02-20 12:53:21.273 3321 ERROR gnocchi self.url, self.token = self.get_auth()
2017-02-20 12:53:21.273 3321 ERROR gnocchi File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1587, in get_auth
2017-02-20 12:53:21.273 3321 ERROR gnocchi timeout=self.timeout)
2017-02-20 12:53:21.273 3321 ERROR gnocchi File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 662, in get_auth
2017-02-20 12:53:21.273 3321 ERROR gnocchi auth_version=auth_version)
2017-02-20 12:53:21.273 3321 ERROR gnocchi File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 582, in get_auth_keystone
2017-02-20 12:53:21.273 3321 ERROR gnocchi raise ClientException('Authorization Failure. %s' % err)
2017-02-20 12:53:21.273 3321 ERROR gnocchi ClientException: Authorization Failure. Authorization failed: The resource could not be found. (HTTP 404)
2017-02-20 12:53:21.273 3321 ERROR gnocchi

Julien Danjou (jdanjou) wrote :

Hi Amit!

Could you check if you configured swift access correctly in gnocchi.conf? That seems to be your problem here. If you can share your configuration value that would help.

Changed in gnocchi:
status: New → Triaged
narasimha18sv (narasimha18sv) wrote :

what is the value mentioned under fro auth_mode under [api] section.
from newton code tha value should be auth_mode = keystone

Amit Bhardwaj (bhardwajamit23) wrote :

Hello,

I would like to close this bug. There was some problem with documentation where AODH and ceilometer installation steps for Newton release were pointing to GNOCCHI installation. I got it resolved from documentation team and after that I dint need to install GNOCCHI and after that ceilometer/alarm service worked as expected.

Julien Danjou (jdanjou) on 2017-04-13
Changed in gnocchi:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers