problem with ceilometer-api

asked 2017-06-05 04:29:56 -0500

lost007 gravatar image

updated 2017-06-05 07:31:49 -0500

Hello, I installed OpenStack Newton on Ubuntu 16.04.2 with 3 nodes : controller, compute, block storage.

I recently installed ceilometer, I noticed that the "ceilometer-api.log" file has these errors repeated constantly :

2017-06-05 08:16:40.787 3259 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-06-05 08:16:40.961 3259 INFO ceilometer.api.app [-] Full WSGI config used: /etc/ceilometer/api_paste.ini
2017-06-05 08:16:43.017 3259 INFO ceilometer.storage.mongo.utils [-] Connecting to mongodb on [('controller', 27017)]
2017-06-05 08:16:43.297 3259 INFO ceilometer.storage.mongo.utils [-] Connecting to mongodb on [('controller', 27017)]
2017-06-05 08:16:43.334 3259 WARNING oslo_config.cfg [-] Option "rpc_backend" from group "DEFAULT" is deprecated for removal.  Its value may be silently ignored in the future.
2017-06-05 08:16:46.513 3259 CRITICAL ceilometer [-] error: [Errno 98] Address already in use
2017-06-05 08:16:46.513 3259 ERROR ceilometer Traceback (most recent call last):
2017-06-05 08:16:46.513 3259 ERROR ceilometer   File "/usr/bin/ceilometer-api", line 34, in <module>
2017-06-05 08:16:46.513 3259 ERROR ceilometer     server = wss.make_server('', args.port, build_wsgi_app())
2017-06-05 08:16:46.513 3259 ERROR ceilometer   File "/usr/lib/python2.7/wsgiref/simple_server.py", line 151, in make_server
2017-06-05 08:16:46.513 3259 ERROR ceilometer     server = server_class((host, port), handler_class)
2017-06-05 08:16:46.513 3259 ERROR ceilometer   File "/usr/lib/python2.7/SocketServer.py", line 418, in __init__
2017-06-05 08:16:46.513 3259 ERROR ceilometer     self.server_activate()
2017-06-05 08:16:46.513 3259 ERROR ceilometer   File "/usr/lib/python2.7/SocketServer.py", line 440, in server_activate
2017-06-05 08:16:46.513 3259 ERROR ceilometer     self.socket.listen(self.request_queue_size)
2017-06-05 08:16:46.513 3259 ERROR ceilometer   File "/usr/lib/python2.7/socket.py", line 228, in meth
2017-06-05 08:16:46.513 3259 ERROR ceilometer     return getattr(self._sock,name)(*args)
2017-06-05 08:16:46.513 3259 ERROR ceilometer error: [Errno 98] Address already in use
2017-06-05 08:16:46.513 3259 ERROR ceilometer

I found this solution : https://bugzilla.redhat.com/show_bug.cgi?id=1384005 (https://bugzilla.redhat.com/show_bug....) :

So I modified the file "/usr/bin/ceilometer-api" by replacing the default port from 8000 to 8777, but it didn't work.

This may help (this output is after modification of /usr/bin/ceilometer-api) :

root@controller:/var/log/ceilometer# ss -anp | grep 8000
tcp    LISTEN     0      128       *:8000                  *:*                   users:(("heat-api-cfn",pid=1289,fd=4))

root@controller:/var/log/ceilometer# ss -anp | grep 8777
tcp    LISTEN     0      128      :::8777                 :::*                   users:(("apache2",pid=94923,fd=6),("apache2",pid=87786,fd=6),("apache2",pid=87771,fd=6),("apache2",pid=87768,fd=6),("apache2",pid=87749,fd=6),("apache2",pid=73646,fd=6),("apache2",pid=66697,fd=6),("apache2",pid=59593,fd=6),("apache2",pid=45586,fd=6),("apache2",pid=45585,fd=6),("apache2",pid=1967,fd=6))

So ... (more)

edit retag flag offensive close merge delete

Comments

1

I have the same problem, and I didn't know how to fix it, did you install cloudkitty ?

amirdhaoui gravatar imageamirdhaoui ( 2017-06-05 04:35:59 -0500 )edit

no I didn't install cloudkitty (actually I don't what is it), I just followed the official documentation ( https://docs.openstack.org/project-install-guide/telemetry/newton/ (https://docs.openstack.org/project-in...) )

lost007 gravatar imagelost007 ( 2017-06-05 07:18:18 -0500 )edit