Ask Your Question
0

How to switch to different backend db from gnocchi in ceilometer

asked 2019-07-17 07:56:57 -0500

sanjay khuntia gravatar image

hi, I was trying to set up my devstack stein environement in a multi node set up with stein ceilometer. When I run stack.sh with default back end as empty in local.conf, ceilometer and devstack are installed properly with gnochhi as the default backend db.

However when I mention my backend db as mongodb, the devstack installation fails with below error -

++/opt/stack/ceilometer/devstack/plugin.sh:configure_ceilometer:311  _ceilometer_configure_storage_backend
++/opt/stack/ceilometer/devstack/plugin.sh:_ceilometer_configure_storage_backend:231  '[' mongo = none ']'
++/opt/stack/ceilometer/devstack/plugin.sh:_ceilometer_configure_storage_backend:238  '[' mongo = gnocchi ']'
++/opt/stack/ceilometer/devstack/plugin.sh:_ceilometer_configure_storage_backend:242  die 242 'Unable to configure unknown CEILOMETER_BACKEND mongo'
++functions-common:die:195                  local exitcode=1
[Call Trace]
./stack.sh:1236:run_phase
/opt/stack/devstack/functions-common:1763:run_plugins
/opt/stack/devstack/functions-common:1730:source
/opt/stack/ceilometer/devstack/plugin.sh:397:configure_ceilometer
/opt/stack/ceilometer/devstack/plugin.sh:311:_ceilometer_configure_storage_backend
/opt/stack/ceilometer/devstack/plugin.sh:242:die
[ERROR] /opt/stack/ceilometer/devstack/plugin.sh:242 Unable to configure unknown CEILOMETER_BACKEND mongo
Error on exit

We had used monogo db as our database when we used liberty version of openstack ceilometer. However now it is not allowed I think.

my controller node's local.conf has these lines to use ceilometer as a service-

#Enable controller services for ceilometer
# turn on all the ceilometer services by default (except for ipmi pollster)
# Pollsters
enable_service ceilometer-acentral,ceilometer-collector,ceilometer-api,ceilometer-acompute

# Notification Agent
enable_service ceilometer-anotification

CEILOMETER_BACKEND=mongo

#Enable ceilometer
enable_plugin ceilometer ${GIT_BASE}/openstack/ceilometer $USE_BRANCH
...
#Enable aodh
enable_plugin aodh ${GIT_BASE}/openstack/aodh $USE_BRANCH

Is there any way we can still use the mongo db in ceilometer with respect to our older legacy deployment done with liberty release?

Thank you for your replies and suggestions.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
-1

answered 2019-07-17 09:43:08 -0500

According to https://docs.openstack.org/ceilometer..., MongoDB is not supported at Stein. Perhaps there is a way to publish the data to UDP or HTTP and translate it to the MongoDB API?

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

1 follower

Stats

Asked: 2019-07-17 07:56:57 -0500

Seen: 22 times

Last updated: Jul 17