Add fog/aws gem dependency to leap_cli
When you install leap_cli from scratch on a fresh (i.e. vagrant) host leap vm
commands will fail because fog-aws
is missing:
--- git/leap_platform ‹upgrade_tests* MM› » gitlab-runner exec docker --env AWS_ACCESS_KEY="$AWS_ACCESS_KEY" --env AWS_SECRET_KEY="$AWS_SECRET_KEY" --env SSH_PRIVATE_KEY="$SSH_PRIVATE_KEY" upgrade_test:manual
WARNING: You most probably have uncommitted changes.
WARNING: These changes will not be tested.
Running with gitlab-ci-multi-runner 9.3.0 (3df822b)
on ()
Using Docker executor with image 0xacab.org:4567/leap/docker/ruby:latest ...
Using docker image sha256:717a233ec95bc44312467a71632bd8cf2f32a24d338324eea153bff14b776f3e for predefined container...
Pulling docker image 0xacab.org:4567/leap/docker/ruby:latest ...
Using docker image 0xacab.org:4567/leap/docker/ruby:latest ID=sha256:ddb0afb961396033731044b54a9b66024761114e2db9e4be4c2bd6b5176f4166 for build container...
Running on runner--project-0-concurrent-0 via rocinante...
Cloning repository...
Cloning into '/builds/project-0'...
done.
Checking out ef455a41 as upgrade_tests...
Skipping Git submodules setup
$ cd tests/platform-ci
$ su -c 'set -o pipefail; stdbuf -oL -eL ./ci-build.sh | ts' cirunner
Jun 29 12:28:41 Running with xtrace disabled!
Jun 29 12:28:47 Successfully installed gli-2.16.0
Jun 29 12:28:47 Successfully installed net-ssh-4.1.0
Jun 29 12:28:47 Successfully installed net-scp-1.2.1
Jun 29 12:28:47 Successfully installed sshkit-1.13.1
Jun 29 12:28:47 Successfully installed multipart-post-2.0.0
Jun 29 12:28:47 Successfully installed faraday-0.12.1
Jun 29 12:28:47 Successfully installed acme-client-0.6.1
Jun 29 12:28:47 Successfully installed ya2yaml-0.31
Jun 29 12:28:47 Successfully installed json_pure-1.8.6
Jun 29 12:28:47 Successfully installed leap_cli-1.9.2
Jun 29 12:28:47 10 gems installed
Jun 29 12:28:47 CI directory: /builds/project-0/tests/platform-ci
Jun 29 12:28:47 Platform directory: /builds/project-0
Jun 29 12:28:47 Provider directory: /builds/project-0/tests/platform-ci/provider
Jun 29 12:28:47 /usr/bin/jq
Jun 29 12:28:47 /builds/project-0/tests/platform-ci/provider
Jun 29 12:28:47 Removing old cached nodes...
Jun 29 12:28:47 Listing current VM status...
Jun 29 12:28:47 = read /builds/project-0/tests/platform-ci/provider/Leapfile
Jun 29 12:28:47 = leap command v1.9.2 (/var/lib/gems/2.1.0/gems/leap_cli-1.9.2)
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- fog/aws (LoadError)
from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /builds/project-0/lib/leap_cli/cloud.rb:2:in `<top (required)>'
from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /builds/project-0/lib/leap_cli/commands/vm.rb:413:in `new_cloud_handle'
from /builds/project-0/lib/leap_cli/commands/vm.rb:157:in `do_vm_status'
from /builds/project-0/lib/leap_cli/commands/vm.rb:55:in `block (3 levels) in <module:Commands>'
from /var/lib/gems/2.1.0/gems/gli-2.16.0/lib/gli/command_support.rb:131:in `call'
from /var/lib/gems/2.1.0/gems/gli-2.16.0/lib/gli/command_support.rb:131:in `execute'
from /var/lib/gems/2.1.0/gems/gli-2.16.0/lib/gli/app_support.rb:296:in `block in call_command'
from /var/lib/gems/2.1.0/gems/gli-2.16.0/lib/gli/app_support.rb:309:in `call'
from /var/lib/gems/2.1.0/gems/gli-2.16.0/lib/gli/app_support.rb:309:in `call_command'
from /var/lib/gems/2.1.0/gems/gli-2.16.0/lib/gli/app_support.rb:83:in `run'
from /var/lib/gems/2.1.0/gems/leap_cli-1.9.2/bin/leap:85:in `<module:Commands>'
from /var/lib/gems/2.1.0/gems/leap_cli-1.9.2/bin/leap:40:in `<top (required)>'
from /usr/local/bin/leap:23:in `load'
from /usr/local/bin/leap:23:in `<main>'
Jun 29 12:28:47 = leap platform v0.10 ( ef455a41d6529898a2d8848e65e464705729e661)
Running after script...
ERROR: Job failed: exit code 1
FATAL: exit code 1