Ask Your Question
0

TypeError: Property 'createUser' of object ceilometer is not a function

asked 2016-06-15 21:30:23 -0500

wililupy gravatar image

When following the directions for installing Ceilometer for OpenStack Mitaka, you guys dropped the ball and haven't updated the documentation on how to do this, and no one in the entire universe has figured out how to fix this.

When creating the ceilometer database, it fails...miserably. This is the output I put in on the Controller node as root running on Ubuntu 14.04.4 latest patches and up to date (6-15-2016)

mongo --host controller --eval '
   db = db.getSiblingDB("ceilometer");
   db.createUser({user: "ceilometer",
   pwd: "8675309aabbccdd",
   roles: [ "readWrite", "dbAdmin" ]})'

This is the lovely out put that means nothing to use mere mortals:

MongoDB shell version: 2.4.9
connecting to: controller:27017/test
Wed Jun 15 19:19:24.541 TypeError: Property 'createUser' of object ceilometer is not a function

Please fix this issue, like yesterday.

Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-06-15 22:06:56 -0500

wililupy gravatar image

As for a workaround, if you login to mongodb via the shell, you can do it like this:

mongo --host controller
> db = db.getSiblingDB("ceilometer")
ceilometer
> db.addUser({user: "ceilometer", pwd: "8675309aabbccdd", roles: [ "readWrite", "dbAdmin" ]})

And then it will create and populate the database.

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

Stats

Asked: 2016-06-15 21:30:23 -0500

Seen: 678 times

Last updated: Jun 15 '16