I, [2017-03-10T07:57:42.073991 #13903] INFO -- Kitchen: -----> Starting Kitchen (v1.16.0) I, [2017-03-10T07:57:42.105476 #13903] INFO -- Kitchen: -----> Cleaning up any prior instances of I, [2017-03-10T07:57:42.105982 #13903] INFO -- Kitchen: -----> Destroying ... I, [2017-03-10T07:57:56.298491 #13903] INFO -- Kitchen: -----> Testing I, [2017-03-10T07:57:56.298592 #13903] INFO -- Kitchen: -----> Creating ... I, [2017-03-10T07:58:02.490393 #13903] INFO -- Kitchen: -----> Converging ... E, [2017-03-10T07:58:03.647094 #13903] ERROR -- Kitchen: ------Exception------- E, [2017-03-10T07:58:03.647135 #13903] ERROR -- Kitchen: Class: Kitchen::ActionFailed E, [2017-03-10T07:58:03.647165 #13903] ERROR -- Kitchen: Message: 1 actions failed. >>>>>> Converge failed on instance . Please see .kitchen/logs/default-ubuntu-1404.log for more details E, [2017-03-10T07:58:03.647179 #13903] ERROR -- Kitchen: ---------------------- E, [2017-03-10T07:58:03.647187 #13903] ERROR -- Kitchen: ------Backtrace------- E, [2017-03-10T07:58:03.647195 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/command.rb:183:in `report_errors' E, [2017-03-10T07:58:03.647203 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/command.rb:174:in `run_action' E, [2017-03-10T07:58:03.647211 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/command/test.rb:42:in `block in call' E, [2017-03-10T07:58:03.647236 #13903] ERROR -- Kitchen: /usr/lib64/ruby/2.3.0/benchmark.rb:293:in `measure' E, [2017-03-10T07:58:03.647244 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/command/test.rb:38:in `call' E, [2017-03-10T07:58:03.647252 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/cli.rb:53:in `perform' E, [2017-03-10T07:58:03.647260 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/cli.rb:234:in `test' E, [2017-03-10T07:58:03.647268 #13903] ERROR -- Kitchen: /usr/lib64/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run' E, [2017-03-10T07:58:03.647310 #13903] ERROR -- Kitchen: /usr/lib64/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command' E, [2017-03-10T07:58:03.647336 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/cli.rb:334:in `invoke_task' E, [2017-03-10T07:58:03.647344 #13903] ERROR -- Kitchen: /usr/lib64/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch' E, [2017-03-10T07:58:03.647352 #13903] ERROR -- Kitchen: /usr/lib64/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start' E, [2017-03-10T07:58:03.647359 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/bin/kitchen:13:in `block in ' E, [2017-03-10T07:58:03.647367 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/errors.rb:171:in `with_friendly_errors' E, [2017-03-10T07:58:03.647375 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/bin/kitchen:13:in `' E, [2017-03-10T07:58:03.647382 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/bin/kitchen:22:in `load' E, [2017-03-10T07:58:03.647390 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/bin/kitchen:22:in `
' E, [2017-03-10T07:58:03.647397 #13903] ERROR -- Kitchen: ----End Backtrace----- E, [2017-03-10T07:58:03.647405 #13903] ERROR -- Kitchen: -Composite Exception-- E, [2017-03-10T07:58:03.647412 #13903] ERROR -- Kitchen: Class: Kitchen::InstanceFailure E, [2017-03-10T07:58:03.647420 #13903] ERROR -- Kitchen: Message: Converge failed on instance . Please see .kitchen/logs/default-ubuntu-1404.log for more details E, [2017-03-10T07:58:03.647427 #13903] ERROR -- Kitchen: ---------------------- E, [2017-03-10T07:58:03.647439 #13903] ERROR -- Kitchen: ------Backtrace------- E, [2017-03-10T07:58:03.647448 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/provisioner/base.rb:83:in `rescue in call' E, [2017-03-10T07:58:03.647455 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/provisioner/base.rb:86:in `call' E, [2017-03-10T07:58:03.647463 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:384:in `block in converge_action' E, [2017-03-10T07:58:03.647471 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:527:in `synchronize_or_call' E, [2017-03-10T07:58:03.647478 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:489:in `block in action' E, [2017-03-10T07:58:03.647504 #13903] ERROR -- Kitchen: /usr/lib64/ruby/2.3.0/benchmark.rb:293:in `measure' E, [2017-03-10T07:58:03.647512 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:488:in `action' E, [2017-03-10T07:58:03.647519 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:380:in `converge_action' E, [2017-03-10T07:58:03.647528 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:359:in `block in transition_to' E, [2017-03-10T07:58:03.647536 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:358:in `each' E, [2017-03-10T07:58:03.647543 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:358:in `transition_to' E, [2017-03-10T07:58:03.647551 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:157:in `verify' E, [2017-03-10T07:58:03.647559 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:186:in `block in test' E, [2017-03-10T07:58:03.647566 #13903] ERROR -- Kitchen: /usr/lib64/ruby/2.3.0/benchmark.rb:293:in `measure' E, [2017-03-10T07:58:03.647573 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:182:in `test' E, [2017-03-10T07:58:03.647601 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/command.rb:197:in `public_send' E, [2017-03-10T07:58:03.647631 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/command.rb:197:in `run_action_in_thread' E, [2017-03-10T07:58:03.647638 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/command.rb:169:in `block (2 levels) in run_action' E, [2017-03-10T07:58:03.647647 #13903] ERROR -- Kitchen: ----End Backtrace----- E, [2017-03-10T07:58:03.647659 #13903] ERROR -- Kitchen: ---Nested Exception--- E, [2017-03-10T07:58:03.647673 #13903] ERROR -- Kitchen: Class: Kitchen::ActionFailed E, [2017-03-10T07:58:03.647686 #13903] ERROR -- Kitchen: Message: SSH exited (2) for command: [ sh -c ' # Check whether a command exists - returns 0 if it does, 1 if it does not exists() { if command -v $1 >/dev/null 2>&1 then return 0 else return 1 fi } # do_wget URL FILENAME do_wget() { echo "trying wget..." wget -O "$2" "$1" 2>/tmp/stderr # check for bad return status test $? -ne 0 && return 1 # check for 404 or empty file grep "ERROR 404" /tmp/stderr 2>&1 >/dev/null if test $? -eq 0 || test ! -s "$2"; then return 1 fi return 0 } # do_curl URL FILENAME do_curl() { echo "trying curl..." curl -L "$1" > "$2" # check for bad return status [ $? -ne 0 ] && return 1 # check for bad output or empty file grep "The specified key does not exist." "$2" 2>&1 >/dev/null if test $? -eq 0 || test ! -s "$2"; then return 1 fi return 0 } # do_fetch URL FILENAME do_fetch() { echo "trying fetch..." fetch -o "$2" "$1" 2>/tmp/stderr # check for bad return status test $? -ne 0 && return 1 return 0 } # do_perl URL FILENAME do_perl() { echo "trying perl..." perl -e "use LWP::Simple; getprint($ARGV[0]);" "$1" > "$2" # check for bad return status test $? -ne 0 && return 1 # check for bad output or empty file # grep "The specified key does not exist." "$2" 2>&1 >/dev/null # if test $? -eq 0 || test ! -s "$2"; then # unable_to_retrieve_package # fi return 0 } # do_python URL FILENAME do_python() { echo "trying python..." python -c "import sys,urllib2 ; sys.stdout.write(urllib2.urlopen(sys.argv[1]).read())" "$1" > "$2" # check for bad return status test $? -ne 0 && return 1 # check for bad output or empty file #grep "The specified key does not exist." "$2" 2>&1 >/dev/null #if test $? -eq 0 || test ! -s "$2"; then # unable_to_retrieve_package #fi return 0 } # do_download URL FILENAME do_download() { PATH=/opt/local/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin export PATH echo "downloading $1" echo " to file $2" # we try all of these until we get success. # perl, in particular may be present but LWP::Simple may not be installed if exists wget; then do_wget $1 $2 && return 0 fi if exists curl; then do_curl $1 $2 && return 0 fi if exists fetch; then do_fetch $1 $2 && return 0 fi if exists perl; then do_perl $1 $2 && return 0 fi if exists python; then do_python $1 $2 && return 0 fi echo ">>>>>> wget, curl, fetch, perl or python not found on this instance." return 16 } # what version of salt is installed? SALT_VERSION=`salt-call --version | cut -d " " -f 2` set +x if [ -z "${SALT_VERSION}" -a "bootstrap" = "bootstrap" ] then do_download https://bootstrap.saltstack.org /tmp/bootstrap-salt.sh sudo -E sh /tmp/bootstrap-salt.sh elif [ -z "${SALT_VERSION}" -a "bootstrap" = "apt" ] then if [ ! $(command -v lsb_release &>/dev/null) ]; then . /etc/lsb-release else DISTRIB_CODENAME=$(lsb_release -s -c) fi echo "-----> Configuring apt repo for salt latest" echo "deb https://repo.saltstack.com/apt/ubuntu/16.04/amd64/latest/latest ${DISTRIB_CODENAME} main" | sudo -E tee /etc/apt/sources.list.d/salt-latest.list do_download https://repo.saltstack.com/apt/ubuntu/16.04/amd64/latest/SALTSTACK-GPG-KEY.pub /tmp/repo.key sudo -E apt-key add /tmp/repo.key sudo -E apt-get update sleep 10 echo "-----> Installing salt-minion (latest)" sudo -E apt-get install -y python-support sudo -E apt-get install -y salt-minion salt-common elif [ -z "${SALT_VERSION}" -a "bootstrap" = "ppa" ] then sudo -E apt-add-repository -y ppa:saltstack/salt sudo -E apt-get update sudo -E apt-get install -y salt-minion salt-common fi # check again, now that an install of some form should have happened SALT_VERSION=`salt-call --version | cut -d " " -f 2` if [ -z "${SALT_VERSION}" ] then echo "No salt-minion installed, install must have failed!!" echo "salt_install = bootstrap" echo "salt_url = https://bootstrap.saltstack.org" echo "bootstrap_options = " echo "salt_version = latest" echo "salt_apt_repo = https://repo.saltstack.com/apt/ubuntu/16.04/amd64/latest" echo "salt_apt_repo_key = https://repo.saltstack.com/apt/ubuntu/16.04/amd64/latest/SALTSTACK-GPG-KEY.pub" echo "salt_ppa = ppa:saltstack/salt" exit 2 elif [ "${SALT_VERSION}" = "latest" -o "latest" = "latest" ] then echo "You asked for latest and you have ${SALT_VERSION} installed, sweet!" elif [ ! -z "${SALT_VERSION}" -a "bootstrap" = "bootstrap" ] then echo "You asked for bootstrap install and you have got ${SALT_VERSION}, hope thats ok!" else echo "You asked for latest and you have got ${SALT_VERSION} installed, dunno how to fix that, sorry!" exit 2 fi ' ] E, [2017-03-10T07:58:03.647711 #13903] ERROR -- Kitchen: ---------------------- E, [2017-03-10T07:58:03.647726 #13903] ERROR -- Kitchen: ------Backtrace------- E, [2017-03-10T07:58:03.647739 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/provisioner/base.rb:83:in `rescue in call' E, [2017-03-10T07:58:03.647755 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/provisioner/base.rb:86:in `call' E, [2017-03-10T07:58:03.647770 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:384:in `block in converge_action' E, [2017-03-10T07:58:03.647784 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:527:in `synchronize_or_call' E, [2017-03-10T07:58:03.647798 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:489:in `block in action' E, [2017-03-10T07:58:03.647811 #13903] ERROR -- Kitchen: /usr/lib64/ruby/2.3.0/benchmark.rb:293:in `measure' E, [2017-03-10T07:58:03.647825 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:488:in `action' E, [2017-03-10T07:58:03.647838 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:380:in `converge_action' E, [2017-03-10T07:58:03.647852 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:359:in `block in transition_to' E, [2017-03-10T07:58:03.647867 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:358:in `each' E, [2017-03-10T07:58:03.647881 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:358:in `transition_to' E, [2017-03-10T07:58:03.647895 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:157:in `verify' E, [2017-03-10T07:58:03.647925 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:186:in `block in test' E, [2017-03-10T07:58:03.647938 #13903] ERROR -- Kitchen: /usr/lib64/ruby/2.3.0/benchmark.rb:293:in `measure' E, [2017-03-10T07:58:03.647951 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:182:in `test' E, [2017-03-10T07:58:03.647965 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/command.rb:197:in `public_send' E, [2017-03-10T07:58:03.647979 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/command.rb:197:in `run_action_in_thread' E, [2017-03-10T07:58:03.647991 #13903] ERROR -- Kitchen: /home/alem0lars/.gem/ruby/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/command.rb:169:in `block (2 levels) in run_action' E, [2017-03-10T07:58:03.648006 #13903] ERROR -- Kitchen: ----End Backtrace-----