test-kitchen / busser

Kitchen Busser - Runs tests for projects in test-kitchen
Other
45 stars 17 forks source link

Unable to resolve dependencies: busser requires thor (<= 0.19.0) #19

Closed philicious closed 9 years ago

philicious commented 9 years ago

Installing busser fails

Kitchen::ActionFailed: SSH exited (1) for command: [env http_proxy=http://172.30.73.53:8123 https_proxy=http://172.30.73.53:8123 sh -c ' BUSSER_ROOT="/tmp/busser" GEM_HOME="/tmp/busser/gems" GEM_PATH="/tmp/busser/gems" GEM_CACHE="/tmp/busser/gems/cache" export BUSSER_ROOT GEM_HOME GEM_PATH GEM_CACHE gem_bindir=/opt/chef/embedded/bin/ruby -rrubygems -e "puts Gem.bindir"

if ! sudo -E /opt/chef/embedded/bin/gem list busser -i >/dev/null; then sudo -E /opt/chef/embedded/bin/gem install busser --no-rdoc --no-ri fi

philicious commented 9 years ago

12# /opt/chef/embedded/bin/gem source * CURRENT SOURCES *

http://rubygems.org/

philicious commented 9 years ago

The following "fix" works for installing busser manually inside kitchen but not via "kitchen converge"

/opt/chef/embedded/bin/gem sources -r http://rubygems.org/ /opt/chef/embedded/bin/gem sources -a https://rubygems.org/ /opt/chef/embedded/bin/gem install busser --no-rdoc --no-ri Fetching: thor-0.19.0.gem (100%) Fetching: busser-0.6.2.gem (100%) Successfully installed thor-0.19.0 Successfully installed busser-0.6.2 2 gems installed

philicious commented 9 years ago

the workaround from #18 fixes this

echo -e ':sources:\n- https://rubygems.org/' > /opt/chef/embedded/etc/gemrc

philicious commented 9 years ago

sorry for the buzz. after some debugging the culprit turned out to be a bad http cache