terrywang / vagrantboxes

Handcrafted Arch Linux Vagrant base box with :heart:
250 stars 29 forks source link

Bootsraping the master of the salt provisioner is broken #13

Closed bricewge closed 9 years ago

bricewge commented 9 years ago

First of all I'm not really sure if the issue came form your box or from salt or vagrant. Bootstraping salt master is not working with your Archlinux vagrant box but it work fine with xezpeleta/wheezy64 box for example. And it work if the only part to install is the minion. Here is the output of vagrant up:

Writing /usr/lib/python2.7/site-packages/salt-2014.7.0rc1-py2.7.egg-info
 *  INFO: Running install_arch_linux_git_post()
 *  WARN: /tmp/git/salt/pkg/rpm/salt-api.service does not exist!
 *  INFO: Running install_arch_linux_restart_daemons()
Job for salt-master.service failed. See 'systemctl status salt-master.service' and 'journalctl -xn' for details.
 *  INFO: Running daemons_running()
 * ERROR: salt-master 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...

There is what sudo systemctl status salt-master.service return:

● salt-master.service - The Salt Master Server
   Loaded: loaded (/usr/lib/systemd/system/salt-master.service; enabled)
   Active: failed (Result: timeout) since Sat 2014-09-13 00:28:59 AEST; 21min ago
  Process: 3539 ExecStart=/usr/bin/salt-master (code=exited, status=0/SUCCESS)
 Main PID: 3539 (code=exited, status=0/SUCCESS)

Sep 13 00:28:59 dev-noisette systemd[1]: salt-master.service start operation timed out. Terminating.
Sep 13 00:28:59 dev-noisette salt-master[3539]: [WARNING ] Caught signal 15, stopping the Salt Master
Sep 13 00:28:59 dev-noisette salt-master[3539]: [WARNING ] Caught signal 15, stopping the Salt Master
Sep 13 00:28:59 dev-noisette salt-master[3539]: [WARNING ] Caught signal 15, stopping the Salt Master
Sep 13 00:28:59 dev-noisette salt-master[3539]: [WARNING ] Caught signal 15, stopping the Salt Master
Sep 13 00:28:59 dev-noisette salt-master[3539]: [WARNING ] Caught signal 15, stopping the Salt Master
Sep 13 00:28:59 dev-noisette salt-master[3539]: [WARNING ] Caught signal 15, stopping the Salt Master
Sep 13 00:28:59 dev-noisette systemd[1]: Failed to start The Salt Master Server.
Sep 13 00:28:59 dev-noisette systemd[1]: Unit salt-master.service entered failed state.

Here is my Vagrantfile:

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

  config.vm.box = "terrywang/archlinux"
  config.vm.synced_folder "salt/roots/", "/srv/salt/"

  config.vm.provision :salt do |salt|
    salt.install_type = 'git'
    salt.install_args = 'v2014.7.0rc1'
    salt.install_master = true
    salt.master_config = "salt/master"
    salt.minion_config = "salt/minion"
    salt.colorize = true
    salt.log_level = "all"
  end
end
bricewge commented 9 years ago

After struggling to build a KVM vagrant box for Archlinux with veewee, I got the same error. Maybe this issue specific of Archlinux. Sorry for having opened this non related issue.