Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
2.7.2
-
None
-
ALL
Description
We want to spin up a replica set with three members with auth enabled, and add our first user under the localhost exception. We want the following configuration:
{ '_id':'repl3',
|
members:[{'_id':0, 'host':'Shirley:27017'},
|
{'_id':1, 'host':'Matt:27018'},
|
{'_id':2, 'host':'Ben:27019'}]
|
}
|
This workflow is fine:
1. start all members with --keyFile and --replSet
2. connect to a member via the shell
3. run rs.initiate(config from above)
4. use admin, create a root user, authenticate
5. done!
However, this workflow is not allowed:
1. start all members with --keyFile and --replSet
2. connect to a member via the shell
3. run rs.initiate()
4. use rs.add() to add other two members.
5. use admin, create a root user, authenticate
6. done!
Instead, we must authenticate before rs.add() is allowed:
1. start all members with --keyFile and --replSet
2. connect to a member via the shell
3. run rs.initiate()
4. use admin, create a root user, authenticate
5. use rs.add() to add other two members.
6. done!
This seems inconsistent?