The movePrimary command clones all un-sharded collections from the source shard to the target shard. If the system.users collection exists on both shards and they contain the same user, the movePrimary will fail with the following error in the log.
Mon Dec 2 12:19:35.204 [conn1] clone failed{ errmsg: "exception: E11000 duplicate key error index: CS9719.system.users.$user_1_userSource_1 dup key: { : "test_user", : null }", code: 11000, ok: 0.0 }
Also, when the movePrimary command failed, the shard is being left in the draining state
{ "_id" : "shard-b", "draining" : true, "host" : "shard-b/localhost:47017,localhost:47018" }
Because system.users is a system collection, it cannot be removed from the database.