viewing paste Unknown #24289 | Text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599
-----> Starting Kitchen (v1.6.0)
D      [kitchen::driver::docker command] BEGIN (sudo -E docker >> /dev/null 2>&1)
D      [kitchen::driver::docker command] END (0m0.02s)
-----> Converging <default-centos-67>...
$$$$$$ Running legacy converge for 'Docker' Driver
       Preparing files for transfer
D      Creating local sandbox in /tmp/default-centos-67-sandbox-20160325-10833-gm6cws
D      Creating local sandbox in /tmp/default-centos-67-sandbox-20160325-10833-gm6cws
       Preparing playbook
D      Copying playbook from site.yml to /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/site.yml
       Preparing inventory
       Preparing modules
       nothing to do for modules
       Preparing roles
D      Using roles from /tmp/ansible/base-project/roles
       Preparing ansible.cfg file
       Found existing ansible.cfg
       Preparing group_vars
       nothing to do for group_vars
       Preparing additional_copy_path
       Preparing host_vars
D      Using host_vars from /tmp/ansible/base-project/host_vars
       Preparing hosts file
D      Using host from localhost
       Preparing spec
D      Using spec from spec
       Preparing library plugins
       nothing to do for library plugins
       Preparing callback plugins
       nothing to do for callback plugins
       Preparing filter_plugins
       nothing to do for filter_plugins
       Preparing lookup_plugins
       nothing to do for lookup_plugins
       Finished Preparing files for transfer
       Installing ansible, will try to determine platform os
       Going to install ansible with:
            if [ ! $(which ansible) ]; then
              if [ -f /etc/centos-release ] || [ -f /etc/redhat-release ]; then
                if ! [ grep -q 'Amazon Linux' /etc/system-release ]; then
               
            if [ ! $(which ansible) ]; then
           
                          if ! yum repolist epel | grep -q epel; then
                sudo -E rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-`rpm -E %dist | sed -n 's/.*el\([0-9]\).*/\1/p'`.noarch.rpm
              fi
 
            sudo -E yum makecache
            sudo -E yum -y install ansible libselinux-python git
            fi
 
                else
               
            if [ ! $(which ansible) ]; then
             
              sudo -E yum-config-manager --enable epel/x86_64
              sudo -E yum -y install ansible git
              sudo -E alternatives --set python /usr/bin/python2.6
              sudo -E yum clean all
              sudo -E yum install yum-python26 -y
            fi
 
                fi
              elif [ -f /etc/SuSE-release ] || [ -f /etc/SUSE-brand ]; then
               
            if [ ! $(which ansible) ]; then
              sudo -E zypper ar http://download.opensuse.org/repositories/devel:/languages:/python/SLE_12/devel:languages:python.repo
              sudo -E zypper ar http://download.opensuse.org/repositories/systemsmanagement/SLE_12/systemsmanagement.repo
              sudo -E zypper --gpg-auto-import-keys ref
              sudo -E zypper --non-interactive install ansible
            fi
 
              else
               
            if [ ! $(which ansible) ]; then
              sudo -E apt-get update
 
              ## Install apt-utils to silence debconf warning: http://serverfault.com/q/358943/77156
              sudo -E apt-get -y install apt-utils git
 
              ## Fix debconf tty warning messages
              export DEBIAN_FRONTEND=noninteractive
 
              ## 13.10, 14.04 include add-apt-repository in software-properties-common
              sudo -E apt-get -y install software-properties-common
 
              ## 10.04, 12.04 include add-apt-repository in
              sudo -E apt-get -y install python-software-properties
 
              ## 10.04 version of add-apt-repository doesn't accept --yes
              ## later versions require interaction from user, so we must specify --yes
              ## First try with -y flag, else if it fails, try without.
              ## "add-apt-repository: error: no such option: -y" is returned but is ok to ignore, we just retry
              sudo -E add-apt-repository -y ppa:ansible/ansible || sudo -E add-apt-repository ppa:ansible/ansible
              sudo -E apt-get update
              sudo -E apt-get -y install ansible
            fi
 
              fi
            fi
          # 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
}
 
          # Fix for https://github.com/test-kitchen/busser/issues/12
          if [ -h /usr/bin/ruby ]; then
              L=$(readlink -f /usr/bin/ruby)
              sudo -E rm /usr/bin/ruby
              sudo -E ln -s $L /usr/bin/ruby
          fi
            if [ -f /etc/centos-release ] || [ -f /etc/redhat-release ]; then
            if ! [ grep -q 'Amazon Linux' /etc/system-release ]; then
            rhelversion6=$(cat /etc/redhat-release | grep 'release 6')
            rhelversion7=$(cat /etc/redhat-release | grep 'release 7')
            # For CentOS6/CentOS7/RHEL6/RHEL7 install ruby from SCL
            if [ -n "$rhelversion6" ] || [ -n "$rhelversion7" ]; then
            if [ ! -d "/opt/rh/ruby200" ]; then
              echo "-----> Installing ruby200 SCL in CentOS6/CentOS7/RHEL6/RHEL7 to install busser to run tests"
              sudo -E yum install -y centos-release-scl
              sudo -E yum install -y ruby200
              sudo -E yum install -y ruby200-ruby-devel
              echo "-----> Enabling ruby200"
              source /opt/rh/ruby200/enable
              echo "/opt/rh/ruby200/root/usr/lib64" | sudo tee -a /etc/ld.so.conf
              sudo -E ldconfig
              sudo -E ln -sf /opt/rh/ruby200/root/usr/bin/ruby /usr/bin/ruby
              sudo -E ln -sf /opt/rh/ruby200/root/usr/bin/gem /usr/bin/gem
            fi
            else
              if [ ! $(which ruby) ]; then
                sudo -E yum makecache
                sudo -E yum -y install ruby ruby-devel
              fi
            fi
            else
                sudo -E yum makecache
                sudo -E yum -y install ruby ruby-devel gcc
            fi
            elif [ -f /etc/SuSE-release ]  || [ -f /etc/SUSE-brand ]; then
                sudo -E zypper --gpg-auto-import-keys ref
                sudo -E zypper --non-interactive install ruby ruby-devel ca-certificates ca-certificates-cacert ca-certificates-mozilla
                sudo -E gem sources --add https://rubygems.org/
            else
              if [ ! $(which ruby) ]; then
                sudo -E apt-get update
                # default package selection for Debian/Ubuntu machines
                PACKAGES="ruby1.9.1 ruby1.9.1-dev"
                if [ "$(lsb_release -si)" = "Debian" ]; then
                  debvers=$(sed 's/\..*//' /etc/debian_version)
                  if [ $debvers -ge 8 ]; then
                    # this is jessie or better, where ruby1.9.1 is
                    # no longer in the repositories
                    PACKAGES="ruby ruby-dev ruby2.1 ruby2.1-dev"
                  fi
                fi
                sudo -E apt-get -y install $PACKAGES
                if [ $debvers -eq 6 ]; then
                    # in squeeze we need to update alternatives
                    # for enable ruby1.9.1
                    ALTERNATIVES_STRING="--install /usr/bin/ruby ruby /usr/bin/ruby1.9.1 10 --slave /usr/share/man/man1/ruby.1.gz ruby.1.gz /usr/share/man/man1/ruby1.9.1.1.gz --slave /usr/bin/erb erb /usr/bin/erb1.9.1 --slave /usr/bin/gem gem /usr/bin/gem1.9.1 --slave /usr/bin/irb irb /usr/bin/irb1.9.1 --slave /usr/bin/rake rake /usr/bin/rake1.9.1 --slave /usr/bin/rdoc rdoc /usr/bin/rdoc1.9.1 --slave /usr/bin/testrb testrb /usr/bin/testrb1.9.1 --slave /usr/share/man/man1/erb.1.gz erb.1.gz /usr/share/man/man1/erb1.9.1.1.gz --slave /usr/share/man/man1/gem.1.gz gem.1.gz /usr/share/man/man1/gem1.9.1.1.gz --slave /usr/share/man/man1/irb.1.gz irb.1.gz /usr/share/man/man1/irb1.9.1.1.gz --slave /usr/share/man/man1/rake.1.gz rake.1.gz /usr/share/man/man1/rake1.9.1.1.gz --slave /usr/share/man/man1/rdoc.1.gz rdoc.1.gz /usr/share/man/man1/rdoc1.9.1.1.gz --slave /usr/share/man/man1/testrb.1.gz testrb.1.gz /usr/share/man/man1/testrb1.9.1.1.gz"
                    sudo -E update-alternatives $ALTERNATIVES_STRING
                    # need to update gem tool because gem 1.3.7 from ruby 1.9.1 is broken
                    sudo -E gem install rubygems-update
                    sudo -E /var/lib/gems/1.9.1/bin/update_rubygems
                    # clear local gem cache
                    sudo -E rm -r /home/vagrant/.gem
                fi
              fi
           fi
 
D      [SSH] kitchen@localhost<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>32950, :compression=>true, :compression_level=>6, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :keys_only=>true, :keys=>["/tmp/ansible/base-project/.kitchen/docker_id_rsa"], :auth_methods=>["publickey"], :password=>"kitchen"}> (
            if [ ! $(which ansible) ]; then
              if [ -f /etc/centos-release ] || [ -f /etc/redhat-release ]; then
                if ! [ grep -q 'Amazon Linux' /etc/system-release ]; then
               
            if [ ! $(which ansible) ]; then
           
                          if ! yum repolist epel | grep -q epel; then
                sudo -E rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-`rpm -E %dist | sed -n 's/.*el\([0-9]\).*/\1/p'`.noarch.rpm
              fi
 
            sudo -E yum makecache
            sudo -E yum -y install ansible libselinux-python git
            fi
 
                else
               
            if [ ! $(which ansible) ]; then
             
              sudo -E yum-config-manager --enable epel/x86_64
              sudo -E yum -y install ansible git
              sudo -E alternatives --set python /usr/bin/python2.6
              sudo -E yum clean all
              sudo -E yum install yum-python26 -y
            fi
 
                fi
              elif [ -f /etc/SuSE-release ] || [ -f /etc/SUSE-brand ]; then
               
            if [ ! $(which ansible) ]; then
              sudo -E zypper ar http://download.opensuse.org/repositories/devel:/languages:/python/SLE_12/devel:languages:python.repo
              sudo -E zypper ar http://download.opensuse.org/repositories/systemsmanagement/SLE_12/systemsmanagement.repo
              sudo -E zypper --gpg-auto-import-keys ref
              sudo -E zypper --non-interactive install ansible
            fi
 
              else
               
            if [ ! $(which ansible) ]; then
              sudo -E apt-get update
 
              ## Install apt-utils to silence debconf warning: http://serverfault.com/q/358943/77156
              sudo -E apt-get -y install apt-utils git
 
              ## Fix debconf tty warning messages
              export DEBIAN_FRONTEND=noninteractive
 
              ## 13.10, 14.04 include add-apt-repository in software-properties-common
              sudo -E apt-get -y install software-properties-common
 
              ## 10.04, 12.04 include add-apt-repository in
              sudo -E apt-get -y install python-software-properties
 
              ## 10.04 version of add-apt-repository doesn't accept --yes
              ## later versions require interaction from user, so we must specify --yes
              ## First try with -y flag, else if it fails, try without.
              ## "add-apt-repository: error: no such option: -y" is returned but is ok to ignore, we just retry
              sudo -E add-apt-repository -y ppa:ansible/ansible || sudo -E add-apt-repository ppa:ansible/ansible
              sudo -E apt-get update
              sudo -E apt-get -y install ansible
            fi
 
              fi
            fi
          # 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
}
 
          # Fix for https://github.com/test-kitchen/busser/issues/12
          if [ -h /usr/bin/ruby ]; then
              L=$(readlink -f /usr/bin/ruby)
              sudo -E rm /usr/bin/ruby
              sudo -E ln -s $L /usr/bin/ruby
          fi
            if [ -f /etc/centos-release ] || [ -f /etc/redhat-release ]; then
            if ! [ grep -q 'Amazon Linux' /etc/system-release ]; then
            rhelversion6=$(cat /etc/redhat-release | grep 'release 6')
            rhelversion7=$(cat /etc/redhat-release | grep 'release 7')
            # For CentOS6/CentOS7/RHEL6/RHEL7 install ruby from SCL
            if [ -n "$rhelversion6" ] || [ -n "$rhelversion7" ]; then
            if [ ! -d "/opt/rh/ruby200" ]; then
              echo "-----> Installing ruby200 SCL in CentOS6/CentOS7/RHEL6/RHEL7 to install busser to run tests"
              sudo -E yum install -y centos-release-scl
              sudo -E yum install -y ruby200
              sudo -E yum install -y ruby200-ruby-devel
              echo "-----> Enabling ruby200"
              source /opt/rh/ruby200/enable
              echo "/opt/rh/ruby200/root/usr/lib64" | sudo tee -a /etc/ld.so.conf
              sudo -E ldconfig
              sudo -E ln -sf /opt/rh/ruby200/root/usr/bin/ruby /usr/bin/ruby
              sudo -E ln -sf /opt/rh/ruby200/root/usr/bin/gem /usr/bin/gem
            fi
            else
              if [ ! $(which ruby) ]; then
                sudo -E yum makecache
                sudo -E yum -y install ruby ruby-devel
              fi
            fi
            else
                sudo -E yum makecache
                sudo -E yum -y install ruby ruby-devel gcc
            fi
            elif [ -f /etc/SuSE-release ]  || [ -f /etc/SUSE-brand ]; then
                sudo -E zypper --gpg-auto-import-keys ref
                sudo -E zypper --non-interactive install ruby ruby-devel ca-certificates ca-certificates-cacert ca-certificates-mozilla
                sudo -E gem sources --add https://rubygems.org/
            else
              if [ ! $(which ruby) ]; then
                sudo -E apt-get update
                # default package selection for Debian/Ubuntu machines
                PACKAGES="ruby1.9.1 ruby1.9.1-dev"
                if [ "$(lsb_release -si)" = "Debian" ]; then
                  debvers=$(sed 's/\..*//' /etc/debian_version)
                  if [ $debvers -ge 8 ]; then
                    # this is jessie or better, where ruby1.9.1 is
                    # no longer in the repositories
                    PACKAGES="ruby ruby-dev ruby2.1 ruby2.1-dev"
                  fi
                fi
                sudo -E apt-get -y install $PACKAGES
                if [ $debvers -eq 6 ]; then
                    # in squeeze we need to update alternatives
                    # for enable ruby1.9.1
                    ALTERNATIVES_STRING="--install /usr/bin/ruby ruby /usr/bin/ruby1.9.1 10 --slave /usr/share/man/man1/ruby.1.gz ruby.1.gz /usr/share/man/man1/ruby1.9.1.1.gz --slave /usr/bin/erb erb /usr/bin/erb1.9.1 --slave /usr/bin/gem gem /usr/bin/gem1.9.1 --slave /usr/bin/irb irb /usr/bin/irb1.9.1 --slave /usr/bin/rake rake /usr/bin/rake1.9.1 --slave /usr/bin/rdoc rdoc /usr/bin/rdoc1.9.1 --slave /usr/bin/testrb testrb /usr/bin/testrb1.9.1 --slave /usr/share/man/man1/erb.1.gz erb.1.gz /usr/share/man/man1/erb1.9.1.1.gz --slave /usr/share/man/man1/gem.1.gz gem.1.gz /usr/share/man/man1/gem1.9.1.1.gz --slave /usr/share/man/man1/irb.1.gz irb.1.gz /usr/share/man/man1/irb1.9.1.1.gz --slave /usr/share/man/man1/rake.1.gz rake.1.gz /usr/share/man/man1/rake1.9.1.1.gz --slave /usr/share/man/man1/rdoc.1.gz rdoc.1.gz /usr/share/man/man1/rdoc1.9.1.1.gz --slave /usr/share/man/man1/testrb.1.gz testrb.1.gz /usr/share/man/man1/testrb1.9.1.1.gz"
                    sudo -E update-alternatives $ALTERNATIVES_STRING
                    # need to update gem tool because gem 1.3.7 from ruby 1.9.1 is broken
                    sudo -E gem install rubygems-update
                    sudo -E /var/lib/gems/1.9.1/bin/update_rubygems
                    # clear local gem cache
                    sudo -E rm -r /home/vagrant/.gem
                fi
              fi
           fi
)
D      [SSH] opening connection to kitchen@localhost<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>32950, :compression=>true, :compression_level=>6, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :keys_only=>true, :keys=>["/tmp/ansible/base-project/.kitchen/docker_id_rsa"], :auth_methods=>["publickey"], :password=>"kitchen"}>
       bash: line 181: [: too many arguments
D      sudo -E rm -rf /tmp/kitchen/modules /tmp/kitchen/roles /tmp/kitchen/group_vars /tmp/kitchen/host_vars; mkdir -p /tmp/kitchen
D      [SSH] kitchen@localhost<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>32950, :compression=>true, :compression_level=>6, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :keys_only=>true, :keys=>["/tmp/ansible/base-project/.kitchen/docker_id_rsa"], :auth_methods=>["publickey"], :password=>"kitchen", :user=>"kitchen"}> (sudo -E rm -rf /tmp/kitchen/modules /tmp/kitchen/roles /tmp/kitchen/group_vars /tmp/kitchen/host_vars; mkdir -p /tmp/kitchen)
       Transferring files to <default-centos-67>
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/spec/spec_helper.rb (955 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/site.yml (119 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/ansible.cfg (144 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/php/defaults/main.yml (84 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/php/vars/main.yml (188 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/php/handlers/main.yml (4 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/php/tasks/main.yml (61 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/php/tasks/install_php.yml (281 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/php/tasks/change_timezone.yml (414 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/php/meta/main.yml (4 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/apache/defaults/main.yml (56 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/apache/vars/main.yml (154 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/apache/handlers/restart_apache.yml (274 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/apache/handlers/main.yml (33 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/apache/tasks/update_cache.yml (111 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/apache/tasks/main.yml (123 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/apache/tasks/configure_apache.yml (4 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/apache/tasks/install_apache.yml (263 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/spec/common_spec.rb (244 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/files/resolv.conf (19 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/files/resolv.conf.custom (38 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/.kitchen/logs/kitchen.log (704 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/.kitchen/logs/default-ubuntu-1404.log (237845 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/.kitchen/default-ubuntu-1404.yml (231 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/.kitchen/docker_id_rsa.pub (399 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/.kitchen/docker_id_rsa (1679 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/defaults/main.yml (166 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/Gemfile.lock (873 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/.kitchen.yml (662 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/templates/resolv.conf.j2 (28 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/chefignore (9 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/vars/main.yml (3 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/vars/common.yml (578 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/Gemfile (93 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/handlers/main.yml (3 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/tasks/debug.yml (419 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/tasks/update_cache.yml (108 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/tasks/main.yml (246 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/tasks/resolvconf.yml (137 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/tasks/delete_users.yml (112 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/tasks/disable_selinux.yml (187 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/tasks/create_users.yml (203 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/tasks/install_packages.yml (370 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/host_vars/176.58.32.99 (427 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/host_vars/176.58.32.112.yml (0 bytes)
D      Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/hosts (57 bytes)
D      Transfer complete
D      sudo -E bash -c '[ -d /etc/ansible ] || mkdir /etc/ansible' && sudo -E cp /tmp/kitchen/ansible.cfg /etc/ansible && sudo -E cp -r /tmp/kitchen/group_vars /etc/ansible/. && sudo -E cp -r /tmp/kitchen/host_vars /etc/ansible/.
D      [SSH] kitchen@localhost<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>32950, :compression=>true, :compression_level=>6, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :keys_only=>true, :keys=>["/tmp/ansible/base-project/.kitchen/docker_id_rsa"], :auth_methods=>["publickey"], :password=>"kitchen", :user=>"kitchen"}> (sudo -E bash -c '[ -d /etc/ansible ] || mkdir /etc/ansible' && sudo -E cp /tmp/kitchen/ansible.cfg /etc/ansible && sudo -E cp -r /tmp/kitchen/group_vars /etc/ansible/. && sudo -E cp -r /tmp/kitchen/host_vars /etc/ansible/.)
D      Setting roles_path inside VM to /tmp/kitchen/roles
D      Setting roles_path inside VM to /tmp/kitchen/roles
D      
       Going to invoke ansible-playbook with: ANSIBLE_ROLES_PATH=/tmp/kitchen/roles sudo -Es  ansible-playbook -i /tmp/kitchen/hosts  -c local -M /tmp/kitchen/modules         /tmp/kitchen/site.yml
D      [SSH] kitchen@localhost<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>32950, :compression=>true, :compression_level=>6, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :keys_only=>true, :keys=>["/tmp/ansible/base-project/.kitchen/docker_id_rsa"], :auth_methods=>["publickey"], :password=>"kitchen", :user=>"kitchen"}> (ANSIBLE_ROLES_PATH=/tmp/kitchen/roles sudo -Es  ansible-playbook -i /tmp/kitchen/hosts  -c local -M /tmp/kitchen/modules         /tmp/kitchen/site.yml)
       
       PLAY [Ansible-common-test] ****************************************************
       
       GATHERING FACTS ***************************************************************
       ok: [localhost]
       
       TASK: [common | install {{ item }} pkgs] **************************************
       skipping: [localhost]
       
       TASK: [common | install {{ item }} packages] **********************************
       ok: [localhost] => (item=curl)
       
       TASK: [common | Create admin users] *******************************************
       skipping: [localhost]
       
       PLAY RECAP ********************************************************************
       localhost                  : ok=2    changed=0    unreachable=0    failed=0  
       
D      Cleaning up local sandbox in /tmp/default-centos-67-sandbox-20160325-10833-gm6cws
       Finished converging <default-centos-67> (0m3.11s).
D      [SSH] shutting previous connection kitchen@localhost<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>32950, :compression=>true, :compression_level=>6, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :keys_only=>true, :keys=>["/tmp/ansible/base-project/.kitchen/docker_id_rsa"], :auth_methods=>["publickey"], :password=>"kitchen", :user=>"kitchen"}>
D      [SSH] closing connection to kitchen@localhost<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>32950, :compression=>true, :compression_level=>6, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :keys_only=>true, :keys=>["/tmp/ansible/base-project/.kitchen/docker_id_rsa"], :auth_methods=>["publickey"], :password=>"kitchen", :user=>"kitchen"}>
-----> Kitchen is finished. (0m3.17s)
 
Viewed 487 times, submitted by unknown.