Ask Your Question
0

gnocchi ceilometer ubuntu pike

asked 2017-11-08 11:11:31 -0600

gsic-emic gravatar image

Good afternoon,

I am carrying out the OpenStack update to the Pike version.

I have problems when executing gnocchi-api with uwsgi and executing the command.

ceilometer-upgrade --skip-metering-database

I am using the official OpenStack and Gnocchi guide as it comes in the same configuration files are the same.

https://docs.openstack.org/ceilometer...

http://gnocchi.xyz/architecture.html

ERRORS OF gnocchi-api.

2017-11-08 18: 05: 23,167 [23592] WARNING keystonemiddleware.auth_token: Configuring auth_uri to point to the public identity endpoint is required; clients may not be able to authenticate against an admin endpoint 2017-11-08 18: 05: 23,169 [23606] WARNING keystonemiddleware._common.config: The option "__file__" in conf is not known to auth_token 2017-11-08 18: 05: 23,169 [23606] WARNING keystonemiddleware._common.config: The option "configkey" in conf is not known to auth_token 2017-11-08 18: 05: 23,169 [23606] WARNING keystonemiddleware._common.config: The option "here" in conf is not known to auth_token 2017-11-08 18: 05: 23,173 [23606] WARNING keystonemiddleware.auth_token: AuthToken middleware is set with keystone_authtoken.service_token_roles_required set to False. This is backwards compatible but deprecated behavior. Please set this to True.

ERRORS OF gnocchi-statsd

2017-11-08 18: 06: 40,917 [25371] CRITICAL root: Traceback (most recent call last): File "/ usr / local / bin / gnocchi-statsd", line 11, in <module> sys.exit (statsd ()) File "/usr/local/lib/python2.7/dist-packages/gnocchi/cli/statsd.py", line 20, in statsd statsd_service.start () File "/usr/local/lib/python2.7/dist-packages/gnocchi/statsd.py", line 172, in start raise cfg.RequiredOptError ("resource_id", cfg.OptGroup ("statsd")) RequiredOptError: value required for option resource_id in group [statsd]

ERRORS OF CEILOMETER ceilometer-upgrade --skip-metering-database

2017-11-08 18: 07: 06.604 25402 WARNING oslo_reports.guru_meditation_report [-] Guru meditation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports. 2017-11-08 18: 07: 06.605 25402 INFO ceilometer.cmd.storage [-] Skipping metering database upgrade 2017-11-08 18: 07: 17.811 25402 CRITICAL ceilometer [-] Unhandled error: ConnectionFailure: Unable to establish connection to http: // controller: 8041 / v1 / resource_type / ceph_account: HTTPConnectionPool (host = 'controller', port = 8041): Max retries exceeded with url: / v1 / resource_type / ceph_account (Caused by NewConnectionError ('<urllib3.connection.httpconnection object="" at="" 0x7f4455a88990="">: Failed to establish a new connection: [Errno 111] Connection refused',)) 2017-11-08 18: 07: 17.811 25402 ERROR ceilometer Traceback (most recent call last): 2017-11-08 18: 07: 17.811 25402 ERROR ceilometer File "/ usr / bin / ceilometer-upgrade", line 10, in <module> 2017-11-08 18: 07: 17.811 25402 ERROR ceilometer sys.exit (upgrade ()) 2017-11-08 18: 07: 17.811 25402 ERROR ceilometer File "/usr/lib/python2.7/dist-packages/ceilometer/cmd/storage.py", line 59, in upgrade 2017-11-08 18: 07: 17.811 25402 ERROR ceilometer gnocchi_client.upgrade_resource_types (conf) 2017-11-08 18: 07: 17.811 25402 ERROR ceilometer File "/usr/lib/python2.7/dist-packages/ceilometer/gnocchi_client.py", line 194, in upgrade_resource_types 2017-11-08 18: 07: 17.811 25402 ERROR ceilometer gnocchi.resource_type.get (name = name) 2017-11-08 18: 07: 17.811 25402 ERROR ceilometer File "/usr/local/lib/python2.7/dist-packages/gnocchiclient/v1/resource_type.py", line 44, in get 2017-11-08 18 ... (more)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-11-10 04:48:12 -0600

gsic-emic gravatar image

updated 2017-11-12 14:27:41 -0600

Hello again, I have been doing some checks and today I found that they have updated on yesterday 09/11/2017 the openstack guide for ubuntu 16.04 and the pike version in which they include how to install and configure gnocchi .

https://docs.openstack.org/ceilometer...

Anyway I realized that the user created gnocchi trying to add to the service project and role of admin I came to jump the errors of ceilometer-upgrade, all this with previous execution of both gnocchi-api and gnocchi-metricd. It is possible that the error I give you at http://paste.openstack.org/show/625930/ may come around but it depends on the configuration you have in gnocchi and ceilometer.


I have tried to install again ceilometer and gnocchi with the new openstack changes regarding the official guide.

https://docs.openstack.org/ceilometer...

I have managed to carry out all the steps, but there are some things that I have had to do in at least some. I still have some problem to solve.

"In the [storage] section, configure location to store metric data, in this case, we will store it to the local file system. See Gnocchi documentation for a list of more durable and performant drivers:"

[storage] coordination_url = redis: // controller: 6379 file_basepath = / var / lib / gnocchi driver = file

I was testing but at the time of executing the gnocchi-upgrade command I got connectivity errors with coordination_url.

It is necessary to install redis-server can be carried out with the command apt-get install redis-server without problem and have also installed the redis python module with pip install redis.

Then in /etc/redis/redis.conf I have changed the ip address set for the redis server (127.0.0.1) by the cloud management address of the controller.

I tried the gnocchi-upgrade command again and it did not return any errors.

Anyway, when I run the command "ceilometer-upgrade --skip-metering-database" it returns the following errors

WARNING oslo_reports.guru_meditation_report [-] Guru meditation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports. 2017-11-10 11:55:18.934 5401 INFO ceilometer.cmd.storage [-] Skipping metering database upgrade 2017-11-10 11:55:19.859 5401 CRITICAL ceilometer [-] Unhandled error: Forbidden: <html><head> <title>403 Forbidden</title> </head><body> Forbidden

You don't have permission to access /v1/resource_type/ceph_account on this server.


Apache/2.4.18 (Ubuntu) Server at controller Port 8041
</body></html> (HTTP 403) 2017-11-10 11:55:19.859 5401 ERROR ceilometer Traceback (most recent call last): 2017-11-10 11:55:19.859 5401 ERROR ceilometer File "/usr/bin/ceilometer-upgrade", line 10, in <module> 2017-11-10 11:55:19.859 5401 ERROR ceilometer sys.exit(upgrade()) 2017-11-10 11:55:19.859 5401 ERROR ceilometer File "/usr/lib/python2.7/dist-packages/ceilometer/cmd/storage.py", line 59, in upgrade 2017-11-10 11:55:19.859 5401 ERROR ceilometer gnocchi_client.upgrade_resource_types(conf) 2017-11-10 11:55:19.859 5401 ERROR ceilometer File "/usr/lib/python2.7/dist-packages/ceilometer/gnocchi_client.py ... (more)
edit flag offensive delete link more

Comments

do you have ceilometer installed and configured?

timi gravatar imagetimi ( 2017-11-10 15:23:40 -0600 )edit
0

answered 2017-11-09 08:06:32 -0600

timi gravatar image

updated 2017-11-09 08:39:17 -0600

Hi, I have problems too setting up gnocchi, so far i manage to overcome some errors, but still I am stuck in keystone authentication with gnocchi

this is the ceilometer-upgrade error output: http://paste.openstack.org/show/625930/

and the apache logs: http://paste.openstack.org/show/625932/

edit flag offensive delete link more

Comments

looks like I manage to get it working, in documentation there is a missing step, I added gnocchi to admin role

"openstack role add --project service --user gnocchi admin"

timi gravatar imagetimi ( 2017-11-10 07:49:46 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2017-11-08 11:11:31 -0600

Seen: 99 times

Last updated: Nov 12