| Steps To Reproduce: |
./mongo --ssl --sslPEMKeyFile jstests/libs/client.pem
|
MongoDB shell version: 2.5.3-pre-
|
connecting to: test
|
mongos> use test
|
switched to db test
|
mongos> db.addUser({user: "admin", pwd:"pwd",roles:[
|
... {'name': 'userAdminAnyDatabase', 'db': 'admin', 'hasRole': true, 'canDelegate': true}]});
|
2013-10-10T14:59:29.104-0400 error: {
|
"$err" : "error creating initial database config information :: caused by :: can't find a shard to put new db on",
|
"code" : 10185
|
} at src/mongo/shell/query.js:131
|
mongos> use admin
|
switched to db admin
|
mongos> db.addUser({user: "admin", pwd:"pwd",roles:[
|
... {'name': 'userAdminAnyDatabase', 'db': 'admin', 'hasRole': true, 'canDelegate': true}]});
|
{
|
"user" : "admin",
|
"roles" : [
|
{
|
"name" : "userAdminAnyDatabase",
|
"db" : "admin",
|
"hasRole" : true,
|
"canDelegate" : true
|
}
|
]
|
}
|
|