Ask Your Question
1

Ceilometer-api critical error OpenStack-IceHouse Ubuntu 14.04

asked 2014-10-21 07:27:23 -0500

Asif J gravatar image

updated 2014-10-22 00:03:39 -0500

While starting ceilemeter-api service I am getting hit with this CRITICAL error as shown in following. Due to this I am not able to bring up the ceilometer-api service.

Ceilometer-api.log

2014-10-21 17:36:03.576 13273 INFO keystoneclient.middleware.auth_token [-] Starting keystone auth_token middleware

2014-10-21 17:36:03.584 13273 WARNING keystoneclient.middleware.auth_token [-] This middleware module is deprecated as of v0.10.0 in favor of keystonemiddleware.auth_token - please update your WSGI pipeline to reference the new middleware package.

2014-10-21 17:36:03.585 13273 WARNING keystoneclient.middleware.auth_token [-] Configuring admin URI using auth fragments. This is deprecated, use 'identity_uri' instead.

2014-10-21 17:36:03.598 13273 INFO keystoneclient.middleware.auth_token [-] Using /tmp/keystone-signing-JZwbKL as cache directory for signing certificate

2014-10-21 17:36:03.600 13273 CRITICAL ceilometer [-] TypeError: unsupported type for timedelta seconds component: str

Verbose Output ceilometer-api.log

2014-10-22 10:31:27.976 19228 INFO keystoneclient.middleware.auth_token [-] Starting keystone auth_token middleware

2014-10-22 10:31:27.978 19228 WARNING keystoneclient.middleware.auth_token [-] This middleware module is deprecated as of v0.10.0 in favor of keystonemiddleware.auth_token - please update your WSGI pipeline to reference the new middleware package.

2014-10-22 10:31:27.979 19228 WARNING keystoneclient.middleware.auth_token [-] Configuring admin URI using auth fragments. This is deprecated, use 'identity_uri' instead.

2014-10-22 10:31:28.040 19228 INFO keystoneclient.middleware.auth_token [-] Using /tmp/keystone-signing-XwznrP as cache directory for signing certificate

2014-10-22 10:31:28.043 19228 CRITICAL ceilometer [-] TypeError: unsupported type for timedelta seconds component: str

2014-10-22 10:31:28.043 19228 TRACE ceilometer Traceback (most recent call last):

2014-10-22 10:31:28.043 19228 TRACE ceilometer File "/usr/bin/ceilometer-api", line 10, in <module>

2014-10-22 10:31:28.043 19228 TRACE ceilometer sys.exit(api())

2014-10-22 10:31:28.043 19228 TRACE ceilometer File "/usr/lib/python2.7/dist-packages/ceilometer/cli.py", line 97, in api

2014-10-22 10:31:28.043 19228 TRACE ceilometer srv = app.build_server()

2014-10-22 10:31:28.043 19228 TRACE ceilometer File "/usr/lib/python2.7/dist-packages/ceilometer/api/app.py", line 126, in build_server

2014-10-22 10:31:28.043 19228 TRACE ceilometer root = VersionSelectorApplication()

2014-10-22 10:31:28.043 19228 TRACE ceilometer File "/usr/lib/python2.7/dist-packages/ceilometer/api/app.py", line 96, in __init__

2014-10-22 10:31:28.043 19228 TRACE ceilometer self.v1 = v1app.make_app(cfg.CONF, enable_acl=pc.app.enable_acl)

2014-10-22 10:31:28.043 19228 TRACE ceilometer File "/usr/lib/python2.7/dist-packages/ceilometer/api/v1/app.py", line 61, in make_app

2014-10-22 10:31:28.043 19228 TRACE ceilometer app.wsgi_app = acl.install(app.wsgi_app, conf)

2014-10-22 10:31:28.043 19228 TRACE ceilometer File "/usr/lib/python2.7/dist-packages/ceilometer/api/acl.py", line 44, in install

2014-10-22 10:31:28.043 19228 TRACE ceilometer conf=dict(conf.get(OPT_GROUP_NAME)))

2014-10-22 10:31:28.043 19228 TRACE ceilometer File "/usr/local/lib/python2.7/dist- packages/keystoneclient/middleware/auth_token.py", line 591, in __init__

2014-10-22 10:31:28.043 19228 TRACE ceilometer seconds=self ...

(more)
edit retag flag offensive close merge delete

Comments

from the log we can see little info, are you turning on the debug and verbose in /etc/ceilometer/ceilomter.conf?

9lives gravatar image9lives ( 2014-10-21 23:30:15 -0500 )edit

I have appended the verbose output from log for the same.

Asif J gravatar imageAsif J ( 2014-10-22 00:04:14 -0500 )edit
1

As the log stated, please try to use keystonemiddleware.auth_token instead of keystoneclient.middleware.auth_token in your ceilometer-past.ini file and restart to see if it works or not.

9lives gravatar image9lives ( 2014-10-22 02:27:07 -0500 )edit

I don't find file with name "ceilometer-past.ini", do I have to create manually?

Asif J gravatar imageAsif J ( 2014-10-22 04:53:51 -0500 )edit

this is the paste deploy config file you can create or just modify the existing one in /etc/ceilometer/ the name i give you might different with the default one , just search for the *.ini file in /etc/ceilometer it should be there.:)

9lives gravatar image9lives ( 2014-10-22 05:03:24 -0500 )edit

4 answers

Sort by ยป oldest newest most voted
1

answered 2014-10-31 14:15:33 -0500

Asif J gravatar image

updated 2014-12-07 08:54:25 -0500

Upgrading to latest version resolved the problem!

edit flag offensive delete link more

Comments

Could you please specify what have you upgraded? we are experiencing the same issue. Thanks.

amic gravatar imageamic ( 2014-11-13 06:39:07 -0500 )edit

@amic you can uninstall python-ceilometerclient and reinstall. 'pip uninstall python-ceilometerclient' and then you should check your command is really worked. see the '/usr/local/lib/python2.7/dist-packages' whether ceilometerclient folder exists or not. Note: carefully check the dependencies!

ysnam gravatar imageysnam ( 2014-11-18 03:45:49 -0500 )edit

I am too facing the same issue but uninstalling and reinstalling python-ceilometerclient did not help solve it. Is there any other way to resolve it?

fresher gravatar imagefresher ( 2014-12-04 23:50:23 -0500 )edit
0

answered 2014-12-06 18:29:56 -0500

willb gravatar image

I had this problem too and traced what the code was doing. The problem is the revocation_cache_time setting needs to be set or else it treats it as a string. Simply uncomment the setting in the /etc/ceilometer/ceilometer.conf file and restart the service.

edit flag offensive delete link more

Comments

Uncommenting revocation_cache_time too did not solve the problem. Also I do not have a api-paste.ini file in /etc/ceilometer. What should be the contents of this file?

fresher gravatar imagefresher ( 2014-12-10 22:34:07 -0500 )edit

@fresher check your libraries last time I faced this was a conflict of /usr/local/lib and /usr/lib/ paths, it can happen that your have two installations (package manage + git) of ceilometer.

BrunoGraz gravatar imageBrunoGraz ( 2014-12-11 06:34:45 -0500 )edit

I have following entries:

/usr/lib/python2.7/dist-packages# ls | grep ceilometer

ceilometer ceilometer-2014.1.3.egg-info ceilometerclient python_ceilometerclient-1.0.8.egg-info

/usr/local/lib/python2.7/dist-packages# ls | grep ceilometer ceilometerclient python_ceilometerclient-1.0.12.dist-info

fresher gravatar imagefresher ( 2014-12-11 21:52:47 -0500 )edit
0

answered 2015-03-06 19:06:11 -0500

MMC gravatar image

Any solution for solving this issue. I just installed ceilometer service and see the same issue in my ceilometer-api.log. Does anyone find a way to get around it? Thanks.

edit flag offensive delete link more
0

answered 2015-07-07 07:48:55 -0500

j-harbott gravatar image

For me, the paste configuration was within /etc/ceilometer/ceilometer.conf, changing

[keystone_authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory

to

[keystone_authtoken]
paste.filter_factory = keystonemiddleware.auth_token:filter_factory

solved the problem.

edit flag offensive delete link more

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: 2014-10-21 07:27:23 -0500

Seen: 1,020 times

Last updated: Jul 07 '15