From 1af2a24f56e4e351f9696835204ddc995fd2311d Mon Sep 17 00:00:00 2001 From: chen-xing Date: Fri, 27 May 2016 00:17:04 +0800 Subject: [PATCH] [install] Fix the incorrect function name On Ubuntu 14.04, SUSE and Debian, MongoDB shell version is 2.4.x. We should use 'addUser' instead of 'createUser'. backport:mitaka Change-Id: I66178af5477b52d8e22f44d509c4af30feb4ace5 Closes-Bug:#1582356 --- doc/install-guide/source/ceilometer-install.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/install-guide/source/ceilometer-install.rst b/doc/install-guide/source/ceilometer-install.rst index 626734f048..2a935d8d25 100644 --- a/doc/install-guide/source/ceilometer-install.rst +++ b/doc/install-guide/source/ceilometer-install.rst @@ -23,7 +23,7 @@ MongoDB before proceeding further. # mongo --host controller --eval ' db = db.getSiblingDB("ceilometer"); - db.createUser({user: "ceilometer", + db.addUser({user: "ceilometer", pwd: "CEILOMETER_DBPASS", roles: [ "readWrite", "dbAdmin" ]})'