salt icon indicating copy to clipboard operation
salt copied to clipboard

2014.7 salt master unable to restart, 2014.1 works fine

Open rubentlz opened this issue 12 years ago • 1 comments

I'm still running a few tests to verify that this is true. This seems to be happening in a vagrant box.

EDIT: Yep, confirmed. Haven't had time to look into the root cause yet.

#!/bin/bash

apt-get update
apt-get install curl vim -y

#------------------------------------------------------------------------------
# Install salt
#------------------------------------------------------------------------------
which salt-master || {
  curl -L https://bootstrap.saltstack.com | sh -s -- -i atlas.grabtaxi -M git 2014.7    # change this to 2014.1 to test
}

# The common details to both master configs
cat > /etc/salt/master <<EOL
  master_id   : test.master
  user        : root
  pidfile     : /var/run/salt-master.pid
  open_mode   : True
  auto_accept : True

  fileserver_backend :
    - roots

  file_roots :
    base :
      - /srv/salt
EOL

restart salt-master

These log lines might shed some light:

salt-minion start/running, process 6149
salt-master start/running, process 6184
salt-api start/running, process 6201
 *  INFO: Running daemons_running()
 * ERROR: salt-api was not found running
 * ERROR: Failed to run daemons_running()!!!
 * ERROR: salt-minion was not found running. Pass '-D' to bootstrap-salt.sh when bootstrapping for additional debugging information...
 * ERROR: salt-master was not found running. Pass '-D' to bootstrap-salt.sh when bootstrapping for additional debugging information...
 * ERROR: salt-api was not found running. Pass '-D' to bootstrap-salt.sh when bootstrapping for additional debugging information...

From /var/log/salt/master:

2014-09-04 05:52:54,099 [salt.log.setup   ][ERROR   ] An un-handled exception was caught by salt's global exception handler:
OSError: [Errno 10] No child processes
Traceback (most recent call last):
  File "/usr/bin/salt-api", line 11, in <module>
    main()
  File "/usr/bin/salt-api", line 8, in main
    sapi.run()
  File "/usr/lib/python2.7/dist-packages/salt/cli/__init__.py", line 519, in run
    client.run()
  File "/usr/lib/python2.7/dist-packages/salt/client/netapi.py", line 49, in run
    pid, exit_status = os.wait()
OSError: [Errno 10] No child processes

rubentlz avatar Sep 04 '14 05:09 rubentlz

I think I'll close this issue first, I seem to have the wrong understanding of version numbers according to the logs. Will re-open this once I get more time to verify.

rubentlz avatar Sep 04 '14 06:09 rubentlz