Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

So yes indeed the ceilometer database got deleted when i cleared everything under the /var/lib/mongodb folder

Now, for the ceilometer sample collection to happen properly, here is what I did.

1) Ensure that the "/var/lib/mongodb " is owned by mongodb user and mongodb group.

2) Connect to the mongodb using the mongo client.

3) create database using "use ceilometer"

4) Create a user with the desired password " db.createUser({ user: "ceilometer", pwd: "ceilometer123", roles: [ "readWrite", "dbAdmin" ] }) ";

Now restart the mongodb and the ceilometer services using systemctl.