Uploaded image for project: 'Aurora'
  1. Aurora
  2. AURORA-480

End to end tests fail under vagrant due to apparent vagrant image errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 0.5.0
    • None

    Description

      When I try to run the end-to-end tests using vagrant, I end up with an error:

      {verbatim}
      [sun-wukong incubator-aurora (master)]$ !sh
      sh src/test/sh/org/apache/aurora/e2e/test_end_to_end_v2.sh
      + . src/test/sh/org/apache/aurora/e2e/test_common.sh
      ++ exec
      + RETCODE=1
      + export EXAMPLE_DIR=/vagrant/src/test/sh/org/apache/aurora/e2e/http
      + EXAMPLE_DIR=/vagrant/src/test/sh/org/apache/aurora/e2e/http
      + TEST_CLUSTER=devcluster
      + TEST_ROLE=vagrant
      + TEST_ENV=test
      + TEST_JOB=http_example
      + TEST_SCHEDULER_IP=192.168.33.7
      + TEST_ARGS=($TEST_CLUSTER $TEST_ROLE $TEST_ENV $TEST_JOB $TEST_SCHEDULER_IP $EXAMPLE_DIR/http_example.aurora $EXAMPLE_DIR/http_example_updated.aurora)
      + trap collect_result EXIT
      + vagrant up
      Bringing machine 'devcluster' up with 'virtualbox' provider...
      [devcluster] VirtualBox VM is already running.
      + test_http_example devcluster vagrant test http_example 192.168.33.7 /vagrant/src/test/sh/org/apache/aurora/e2e/http/http_example.aurora /vagrant/src/test/sh/org/apache/aurora/e2e/http/http_example_updated.aurora
      + local _cluster=devcluster _role=vagrant _env=test _job=http_example _sched_ip=192.168.33.7
      + local _base_config=/vagrant/src/test/sh/org/apache/aurora/e2e/http/http_example.aurora _updated_config=/vagrant/src/test/sh/org/apache/aurora/e2e/http/http_example_updated.aurora
      + jobkey=devcluster/vagrant/test/http_example
      + echo '== Creating job'
      == Creating job
      + vagrant ssh -c 'aurora2 job create devcluster/vagrant/test/http_example /vagrant/src/test/sh/org/apache/aurora/e2e/http/http_example.aurora'
      bash: line 2: aurora2: command not found
      + collect_result
      + [[ 1 = 0 ]]
      + echo '!!!'
      !!!
      + echo 'FAIL (something returned non-zero)'
      FAIL (something returned non-zero)
      + echo ''

      + echo 'This may be a transient failure (as in scheduler failover) or it could be a real issue'
      This may be a transient failure (as in scheduler failover) or it could be a real issue
      + echo 'with your code. Either way, this script DNR merging to master. Note you may need to'
      with your code. Either way, this script DNR merging to master. Note you may need to
      + echo 'reconcile state manually.'
      reconcile state manually.
      + echo '!!!'
      !!!
      + vagrant ssh -c 'aurora killall devcluster/vagrant/test/http_example'
      bash: line 2: aurora: command not found{verbatim}

      Checking the transcript from creating the devcluster, I found build errors:

      {verbatim}
      [sun-wukong incubator-aurora (master)]$ !sh
      sh src/test/sh/org/apache/aurora/e2e/test_end_to_end_v2.sh
      + . src/test/sh/org/apache/aurora/e2e/test_common.sh
      ++ exec
      + RETCODE=1
      + export EXAMPLE_DIR=/vagrant/src/test/sh/org/apache/aurora/e2e/http
      + EXAMPLE_DIR=/vagrant/src/test/sh/org/apache/aurora/e2e/http
      + TEST_CLUSTER=devcluster
      + TEST_ROLE=vagrant
      + TEST_ENV=test
      + TEST_JOB=http_example
      + TEST_SCHEDULER_IP=192.168.33.7
      + TEST_ARGS=($TEST_CLUSTER $TEST_ROLE $TEST_ENV $TEST_JOB $TEST_SCHEDULER_IP $EXAMPLE_DIR/http_example.aurora $EXAMPLE_DIR/http_example_updated.aurora)
      + trap collect_result EXIT
      + vagrant up
      Bringing machine 'devcluster' up with 'virtualbox' provider...
      [devcluster] VirtualBox VM is already running.
      + test_http_example devcluster vagrant test http_example 192.168.33.7 /vagrant/src/test/sh/org/apache/aurora/e2e/http/http_example.aurora /vagrant/src/test/sh/org/apache/aurora/e2e/http/http_example_updated.aurora
      + local _cluster=devcluster _role=vagrant _env=test _job=http_example _sched_ip=192.168.33.7
      + local _base_config=/vagrant/src/test/sh/org/apache/aurora/e2e/http/http_example.aurora _updated_config=/vagrant/src/test/sh/org/apache/aurora/e2e/http/http_example_updated.aurora
      + jobkey=devcluster/vagrant/test/http_example
      + echo '== Creating job'
      == Creating job
      + vagrant ssh -c 'aurora2 job create devcluster/vagrant/test/http_example /vagrant/src/test/sh/org/apache/aurora/e2e/http/http_example.aurora'
      bash: line 2: aurora2: command not found
      + collect_result
      + [[ 1 = 0 ]]
      + echo '!!!'
      !!!
      + echo 'FAIL (something returned non-zero)'
      FAIL (something returned non-zero)
      + echo ''

      + echo 'This may be a transient failure (as in scheduler failover) or it could be a real issue'
      This may be a transient failure (as in scheduler failover) or it could be a real issue
      + echo 'with your code. Either way, this script DNR merging to master. Note you may need to'
      with your code. Either way, this script DNR merging to master. Note you may need to
      + echo 'reconcile state manually.'
      reconcile state manually.
      + echo '!!!'
      !!!
      + vagrant ssh -c 'aurora killall devcluster/vagrant/test/http_example'
      bash: line 2: aurora: command not found{verbatim}

      This looks like some relatively recent changes to the vagrant setup and/or the end-to-end tests broke things?

      Attachments

        Activity

          People

            wickman Brian Wickman
            mchucarroll Mark Chu-Carroll
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: