[SERVER-7351] Command line parsing error -- 'mongod' -- "error command line: unknown option -u" Created: 14/Oct/12  Updated: 15/Feb/13  Resolved: 15/Oct/12

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Tad Marshall Assignee: Spencer Brody (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Build slave – Linux 64-bit v8 Weekly Slow Tests
Build slave – Linux 64-bit DUR OFF Weekly Slow Tests


Issue Links:
Duplicate
duplicates SERVER-7356 Make disk tests pass with auth Closed
Operating System: ALL
Participants:

 Description   

We seem to have lost the "-u" switch.

http://buildlogs.mongodb.org/Linux%2064-bit%20v8%20Weekly%20Slow%20Tests/builds/124/test/disk/repair.js

Sun Oct 14 11:38:50 shell: stopped mongo program on port 31000
Sun Oct 14 11:38:50 shell: started program /data/buildslaves/Linux_64bit_v8_Weekly_Slow_Tests/mongo/mongod -u admin -p password --repair --port 31000 --dbpath /data/db/jstests_disk_repair/ --repairpath /data/db/jstests_disk_repair/repairDir/ --nohttpinterface --bind_ip 127.0.0.1
 m31000| error command line: unknown option -u
 m31000| use --help for help

http://buildlogs.mongodb.org/Linux%2064-bit%20DUR%20OFF%20Weekly%20Slow%20Tests/builds/69/test/disk/repair.js

Sun Oct 14 04:13:51 shell: stopped mongo program on port 31000
Sun Oct 14 04:13:51 shell: started program /home/yellow/buildslave/Linux_64bit_DUR_OFF_Weekly_Slow_Tests/mongo/mongod -u admin -p password --repair --port 31000 --dbpath /data/db/jstests_disk_repair/ --repairpath /data/db/jstests_disk_repair/repairDir/ --nohttpinterface --bind_ip 127.0.0.1
 m31000| error command line: unknown option -u
 m31000| use --help for help



 Comments   
Comment by Spencer Brody (Inactive) [ 15/Oct/12 ]

The -u switch only applies to the shell and tools, not to the server, so this is not a regression. This is due to the same problem as SERVER-7317 that's making dur/md5.js fail, which is that they both use runMongoProgram (which adds a -u and -p argument when running in auth mode) to start a mongod so that they can get the return code when the process finishes. The ideal fix would be to use startMongodTest which does the right thing with auth, but startMongodTest doesn't currently provide any way to check the return code of the mongod process when it terminates.

Generated at Thu Feb 08 03:14:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.