Hello all,
I have a problem with the understanding of this lab, at least with the return JSON that I have to find with the validation script.
Here are the steps I did.
1 - I launched the implementation of replicaset. => no worries, the replica is operational and without --auth => OK
2 - I logged in on each instance starting with the secondary to stop them (db.shutdownserver ()) => OK
3 - create the keyfile file and launch the instances taking into account this file
still no --auth enabled, as requested in the lab
4 - connect to the primary and create the user in the admin database
5 - after : restart replicaset with --auth to enable authentication on the replica set.
6 - launching the validation script
if I interpreted the script correctly, initially I should take an authentication error and then a correct result because I am authenticated …
output :
{ unauthorizedStatus: {“operationTime”:{"$timestamp":{“t”:1561022520,“i”:1}},“ok”:0,“errmsg”:“command replSetGetStatus requires authentication”,“code”:13,"$clusterTime":{“clusterTime”:{"$timestamp":{“t”:1561022520,“i”:1}},“signature”:{“hash”:{"$binary":“tbd3UzN9sO0/OavZGm+oJFQaTCM=”,"$type":“00”},“keyId”:{"$numberLong":“6704532468331970562”}}}}, memberStatuses: [“SECONDARY”,“SECONDARY”,“SECONDARY”] }
and … that’s not the expected answer … Can you tell me what I did not understand? I repeated the lab several times and started all over again but I come across the same return …
thank you in advance for your help