The gist of my problem: I'm trying to install CouchDB on a minion, but calling state.sls hangs and never returns even though CouchDB has been installed.
My question: how can I further diagnose the problem? Currently, I don't have a handle on it because I don't know what's keeping the minion from finishing.
The command:
salt "ip-10-10-205-127" state.sls couchdb dev -v
The state file:
Versions:
salt-minion --version: 0.15.1
salt-master --version: 0.15.1
Both running on Ubuntu.
The output from the command:
Executing job with jid 20130510103516666102
-------------------------------------------
Execution is still running on ip-10-10-205-127
Execution is still running on ip-10-10-205-127
Execution is still running on ip-10-10-205-127
Execution is still running on ip-10-10-205-127
Execution is still running on ip-10-10-205-127
Execution is still running on ip-10-10-205-127
The minions may not have all finished running and any remaining minions will return upon completion. To look up the return data for this job later run:
salt-run jobs.lookup_jid 20130510103516666102
At this point, CouchDB is installed on the minion. I can query it: couchdb -V returns couchdb - Apache CouchDB 1.3.0. But something is preventing the master and/or minion from finishing. I've tried waiting a long time, but the job never finishes.
This:
salt-run jobs.lookup_jid 20130510103516666102
returns nothing. And this:
salt-run jobs.active
returns:
Re-running state.sls gives:
The function "state.sls" is running as PID 3456 and was started at 2013, May 10 10:35:16.666102 with jid 20130510103516666102
I've tried installing other packages and it works fine. It does not seem related to a particular minion as I've spun up a lot of them and it's always the same story. I've suspected a CouchDB init.d script bug where trying to start/stop the daemons just after package installation did not work (but did if you rebooted), cf.
https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/448682. It looks like it's been solved in 1.3.0, I've tried manually stopping after package installation and it works.
Any ideas on how to further diagnose this?
Thanks!