This is in /var/log/mongo/mongod-172.....log repeated over and over.
2015-10-21T16:18:35.918-0500 [rsStart] replSet can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-10-21T16:18:36.918-0500 [rsStart] replSet can't get local.system.replset config from self or any seed (EMPTYCONFIG)
2015-10-21T16:18:37.918-0500 [rsStart] replSet can't get local.system.replset config from self or any seed (EMPTYCONFIG)
I get the following when trying to run the playbook at the console:
ansible-playbook -i hosts site.yml --ask-pass
SSH password:
PLAY [all] ********************************************************************
GATHERING FACTS ***************************************************************
ok: [172.19.17.143]
ok: [172.19.17.55]
TASK: [common | Create the hosts file for all machines] ***********************
ok: [172.19.17.55]
ok: [172.19.17.143]
TASK: [common | Create the repository for 10Gen] ******************************
ok: [172.19.17.55]
ok: [172.19.17.143]
TASK: [common | Create the EPEL Repository.] **********************************
ok: [172.19.17.143]
ok: [172.19.17.55]
TASK: [common | Create the GPG key for EPEL] **********************************
ok: [172.19.17.143]
ok: [172.19.17.55]
TASK: [common | Create the mongod user] ***************************************
ok: [172.19.17.143]
ok: [172.19.17.55]
TASK: [common | Create the data directory for the namenode metadata] **********
ok: [172.19.17.143]
ok: [172.19.17.55]
TASK: [common | Install the mongodb package] **********************************
failed: [172.19.17.55] => (item=libselinux-python,mongo-10gen,mongo-10gen-server,bc,python-pip) => {"changed": true, "item": "libselinux-python,mongo-10gen,mongo-10gen-server,bc,python-pip", "rc": 1, "results": ["libselinux-python-2.2.2-6.el7.x86_64 providing libselinux-python is already installed", "bc-1.06.95-13.el7.x86_64 providing bc is already installed", "Loaded plugins: langpacks, product-id, subscription-manager\nPackage mongo-10gen is obsoleted by mongodb-org, trying to install mongodb-org-2.6.11-1.x86_64 instead\nPackage mongo-10gen-server is obsoleted by mongodb-org-server, trying to install mongodb-org-server-2.6.11-1.x86_64 instead\nResolving Dependencies\n--> Running transaction check\n---> Package mongodb-org.x86_64 0:2.6.11-1 will be installed\n--> Processing Dependency: mongodb-org-shell = 2.6.11 for package: mongodb-org-2.6.11-1.x86_64\n--> Processing Dependency: mongodb-org-mongos = 2.6.11 for package: mongodb-org-2.6.11-1.x86_64\n--> Processing Dependency: mongodb-org-tools = 2.6.11 for package: mongodb-org-2.6.11-1.x86_64\n---> Package mongodb-org-server.x86_64 0:2.6.11-1 will be installed\n---> Package python-pip.noarch 0:7.1.0-1.el6 will be installed\n--> Processing Dependency: python(abi) = 2.6 for package: python-pip-7.1.0-1.el6.noarch\n--> Running transaction check\n---> Package mongodb-org-mongos.x86_64 0:2.6.11-1 will be installed\n---> Package mongodb-org-shell.x86_64 0:2.6.11-1 will be installed\n---> Package mongodb-org-tools.x86_64 0:2.6.11-1 will be installed\n---> Package python-pip.noarch 0:7.1.0-1.el6 will be installed\n--> Processing Dependency: python(abi) = 2.6 for package: python-pip-7.1.0-1.el6.noarch\n--> Finished Dependency Resolution\n You could try using --skip-broken to work around the problem\n You could try running: rpm -Va --nofiles --nodigest\n"]}
msg: Error: Package: python-pip-7.1.0-1.el6.noarch (epel)
Requires: python(abi) = 2.6
Installed: python-2.7.5-16.el7.x86_64 (@anaconda/7.1)
python(abi) = 2.7
python(abi) = 2.7
Available: python-2.7.5-18.el7_1.1.x86_64 (rhel-7-server-rpms)
python(abi) = 2.7
python(abi) = 2.7
ok: [172.19.17.143] => (item=libselinux-python,mongo-10gen,mongo-10gen-server,bc,python-pip)
TASK: [common | Install the latest pymongo package] ***************************
ok: [172.19.17.143]
TASK: [common | Create the iptables file] *************************************
ok: [172.19.17.143]
PLAY [mongo_servers] **********************************************************
GATHERING FACTS ***************************************************************
ok: [172.19.17.143]
TASK: [mongod | create data directory for mongodb] ****************************
ok: [172.19.17.143 -> 172.19.17.143] => (item=172.19.17.143)
ok: [172.19.17.143 -> 172.19.17.55] => (item=172.19.17.55)
TASK: [mongod | create data directory for mongodb] ****************************
ok: [172.19.17.143]
TASK: [mongod | create data directory for mongodb] ****************************
ok: [172.19.17.143]
TASK: [mongod | Create the mongodb startup file] ******************************
ok: [172.19.17.143 -> 172.19.17.143] => (item=172.19.17.143)
ok: [172.19.17.143 -> 172.19.17.55] => (item=172.19.17.55)
TASK: [mongod | Create the mongodb configuration file] ************************
ok: [172.19.17.143 -> 172.19.17.143] => (item=172.19.17.143)
ok: [172.19.17.143 -> 172.19.17.55] => (item=172.19.17.55)
TASK: [mongod | Copy the keyfile for authentication] **************************
ok: [172.19.17.143]
TASK: [mongod | Start the mongodb service] ************************************
ok: [172.19.17.143 -> 172.19.17.143] => (item=172.19.17.143)
failed: [172.19.17.143 -> 172.19.17.55] => (item=172.19.17.55) => {"changed": true, "cmd": ["/etc/init.d/mongod-172.19.17.143", "start"], "delta": "0:00:00.069731", "end": "2015-10-21 17:13:13.903516", "item": "172.19.17.55", "rc": 1, "start": "2015-10-21 17:13:13.833785", "warnings": []}
stderr: Job for mongod-172.19.17.143.service failed. See 'systemctl status mongod-172.19.17.143.service' and 'journalctl -xn' for details.
stdout: Starting mongod-172.19.17.143 (via systemctl): [FAILED]
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/root/site.retry
172.19.17.143 : ok=17 changed=0 unreachable=0 failed=1
172.19.17.55 : ok=7 changed=0 unreachable=0 failed=1
[root@localhost mongodb]# systemctl status mongod-172.19.17.143.service -l
mongod-172.19.17.143.service - SYSV: Mongo is a scalable, document-oriented database.
Loaded: loaded (/etc/rc.d/init.d/mongod-172.19.17.143)
Active: failed (Result: timeout) since Wed 2015-10-21 15:54:34 CDT; 20min ago
Process: 16946 ExecStart=/etc/rc.d/init.d/mongod-172.19.17.143 start (code=exited, status=0/SUCCESS)
Oct 21 15:49:34 localhost.localdomain runuser[16950]: pam_unix(runuser:session): session opened for user mongod by (uid=0)
Oct 21 15:49:34 localhost.localdomain mongod-172.19.17.143[16946]: Starting mongod: about to fork child process, waiting until server is ready for connections.
Oct 21 15:49:34 localhost.localdomain mongod-172.19.17.143[16946]: forked process: 16954
Oct 21 15:49:35 localhost.localdomain mongod-172.19.17.143[16946]: child process started successfully, parent exiting
Oct 21 15:49:35 localhost.localdomain runuser[16950]: pam_unix(runuser:session): session closed for user mongod
Oct 21 15:49:35 localhost.localdomain mongod-172.19.17.143[16946]: [ OK ]
Oct 21 15:49:35 localhost.localdomain systemd[1]: PID file /var/run/mongo/mongod.pid not readable (yet?) after start.
Oct 21 15:54:34 localhost.localdomain systemd[1]: mongod-172.19.17.143.service operation timed out. Terminating.
Oct 21 15:54:34 localhost.localdomain systemd[1]: Failed to start SYSV: Mongo is a scalable, document-oriented database..
Oct 21 15:54:34 localhost.localdomain systemd[1]: Unit mongod-172.19.17.143.service entered failed state.