[RHOS] openstack-ceilometer-api not starting with rabbitmq as the message broker in RHOS4.

Solution Verified - Updated -

Issue

  • when starting ceilometer api not getting any error but status is not showing any info:
# service openstack-ceilometer-api start
Starting openstack-ceilometer-api:                         [  OK  ]

# service openstack-ceilometer-api status
openstack-ceilometer-api dead but pid file exists
  • ceilometer api logs showing the below messages:
2014-06-11 12:47:19.625 24758 DEBUG ceilometer.storage [-] looking for 'mongodb' driver in 'ceilometer.storage' get_engine /usr/lib/python2.6/site-packages/ceilometer/storage/__init__.py:72
2014-06-11 12:47:19.692 24758 INFO ceilometer.storage.impl_mongodb [-] Connecting to MongoDB on [('xxx.xxx.xxx.xxx, 27017)]
2014-06-11 12:47:19.696 24758 CRITICAL ceilometer [-] need to login
2014-06-11 12:47:19.696 24758 TRACE ceilometer Traceback (most recent call last):
2014-06-11 12:47:19.696 24758 TRACE ceilometer   File "/usr/bin/ceilometer-api", line 10, in <module>
2014-06-11 12:47:19.696 24758 TRACE ceilometer     sys.exit(start())
2014-06-11 12:47:19.696 24758 TRACE ceilometer   File "/usr/lib/python2.6/site-packages/ceilometer/api/app.py", line 113, in start
2014-06-11 12:47:19.696 24758 TRACE ceilometer     root = VersionSelectorApplication()
2014-06-11 12:47:19.696 24758 TRACE ceilometer   File "/usr/lib/python2.6/site-packages/ceilometer/api/app.py", line 101, in __init__
2014-06-11 12:47:19.696 24758 TRACE ceilometer     self.v2 = setup_app(pecan_config=pc)
2014-06-11 12:47:19.696 24758 TRACE ceilometer   File "/usr/lib/python2.6/site-packages/ceilometer/api/app.py", line 60, in setup_app
2014-06-11 12:47:19.696 24758 TRACE ceilometer     storage_engine.get_connection(cfg.CONF),
2014-06-11 12:47:19.696 24758 TRACE ceilometer   File "/usr/lib/python2.6/site-packages/ceilometer/storage/impl_mongodb.py", line 77, in get_connection
2014-06-11 12:47:19.696 24758 TRACE ceilometer     return Connection(conf)
2014-06-11 12:47:19.696 24758 TRACE ceilometer   File "/usr/lib/python2.6/site-packages/ceilometer/storage/impl_mongodb.py", line 361, in __init__
2014-06-11 12:47:19.696 24758 TRACE ceilometer     self.upgrade()
2014-06-11 12:47:19.696 24758 TRACE ceilometer   File "/usr/lib/python2.6/site-packages/ceilometer/storage/impl_mongodb.py", line 375, in upgrade
2014-06-11 12:47:19.696 24758 TRACE ceilometer     ], name='resource_idx')
2014-06-11 12:47:19.696 24758 TRACE ceilometer   File "/usr/lib64/python2.6/site-packages/pymongo/collection.py", line 916, in ensure_index
2014-06-11 12:47:19.696 24758 TRACE ceilometer     return self.create_index(key_or_list, cache_for, **kwargs)
2014-06-11 12:47:19.696 24758 TRACE ceilometer   File "/usr/lib64/python2.6/site-packages/pymongo/collection.py", line 823, in create_index
2014-06-11 12:47:19.696 24758 TRACE ceilometer     **self._get_wc_override())
2014-06-11 12:47:19.696 24758 TRACE ceilometer   File "/usr/lib64/python2.6/site-packages/pymongo/collection.py", line 357, in insert
2014-06-11 12:47:19.696 24758 TRACE ceilometer     continue_on_error, self.__uuid_subtype), safe)
2014-06-11 12:47:19.696 24758 TRACE ceilometer   File "/usr/lib64/python2.6/site-packages/pymongo/mongo_client.py", line 920, in _send_message
2014-06-11 12:47:19.696 24758 TRACE ceilometer     rv = self.__check_response_to_last_error(response)
2014-06-11 12:47:19.696 24758 TRACE ceilometer   File "/usr/lib64/python2.6/site-packages/pymongo/mongo_client.py", line 841, in __check_response_to_last_error
2014-06-11 12:47:19.696 24758 TRACE ceilometer     helpers._check_command_response(error, self.disconnect)
2014-06-11 12:47:19.696 24758 TRACE ceilometer   File "/usr/lib64/python2.6/site-packages/pymongo/helpers.py", line 147, in _check_command_response
2014-06-11 12:47:19.696 24758 TRACE ceilometer     raise OperationFailure(msg % errmsg, code)
2014-06-11 12:47:19.696 24758 TRACE ceilometer OperationFailure: need to login
2014-06-11 12:47:19.696 24758 TRACE ceilometer

Environment

  • Red Hat Enterprise Linux Openstack Platform 4.0
    • RabbitMQ as the message broker
    • openstack-ceilometer-compute

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In