bundle exec rake spec fails to find r10k - tests wont run

Bug #1548872 reported by Matt Fischer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-keystone
Confirmed
High
Unassigned

Bug Description

I have a pretty plain Ubuntu 14.04 box and I usually just install the needed bundles and then exec the spec tests. This broke when r10k came along.

The issue is that r10k is not being installed where the script hard-codes to look:
/etc/puppet/modules/keystone/openstack/puppet-openstack-integration/functions: line 51: /var/lib/gems/1.9.1/bin/r10k: No such file or directory

...
Installing semantic_puppet (0.1.1)
Installing puppet_forge (2.1.3)
Installing rspec-puppet (2.2.0)
Installing puppetlabs_spec_helper (1.0.1)
Installing r10k (2.1.1)
Installing rspec-puppet-facts (1.4.1)
Installing webmock (1.24.1)
Using bundler (1.3.5)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
[DEV] root@dev02-build-001:/etc/puppet/modules/keystone# bundle exec rake spec
rm -rf openstack/puppet-openstack-integration
git clone https://git.openstack.org/openstack/puppet-openstack-integration openstack/puppet-openstack-integration
Cloning into 'openstack/puppet-openstack-integration'...
remote: Counting objects: 700, done.
remote: Compressing objects: 100% (469/469), done.
remote: Total 700 (delta 418), reused 451 (delta 207)
Receiving objects: 100% (700/700), 126.54 KiB | 0 bytes/s, done.
Resolving deltas: 100% (418/418), done.
Checking connectivity... done.
env PUPPETFILE_DIR=/etc/puppet/modules/keystone/spec/fixtures/modules ZUUL_REF= ZUUL_BRANCH= ZUUL_URL= bash openstack/puppet-openstack-integration/install_modules_unit.sh
+ '[' '!' -z /var/lib/gems/1.9.1 ']'
+ GEM_BIN_DIR=/var/lib/gems/1.9.1/bin/
+++ dirname openstack/puppet-openstack-integration/install_modules_unit.sh
++ cd openstack/puppet-openstack-integration
++ pwd -P
+ export SCRIPT_DIR=/etc/puppet/modules/keystone/openstack/puppet-openstack-integration
+ SCRIPT_DIR=/etc/puppet/modules/keystone/openstack/puppet-openstack-integration
+ export PUPPETFILE_DIR=/etc/puppet/modules/keystone/spec/fixtures/modules
+ PUPPETFILE_DIR=/etc/puppet/modules/keystone/spec/fixtures/modules
+ source /etc/puppet/modules/keystone/openstack/puppet-openstack-integration/functions
+ install_modules
+ '[' -e /usr/zuul-env/bin/zuul-cloner ']'
+ install_all
+ PUPPETFILE=/etc/puppet/modules/keystone/openstack/puppet-openstack-integration/Puppetfile
+ /var/lib/gems/1.9.1/bin/r10k puppetfile install -v
/etc/puppet/modules/keystone/openstack/puppet-openstack-integration/functions: line 51: /var/lib/gems/1.9.1/bin/r10k: No such file or directory
rake aborted!
Command failed with status (1): [env PUPPETFILE_DIR=/etc/puppet/modules/key...]
/etc/puppet/modules/keystone/Rakefile:69:in `block in <top (required)>'
/var/lib/gems/1.9.1/gems/puppetlabs_spec_helper-1.0.1/lib/puppetlabs_spec_helper/rake_tasks.rb:197:in `block in <top (required)>'
Tasks: TOP => spec_prep
(See full trace by running task with --trace)

[DEV] root@dev02-build-001:/var/lib/gems/1.9.1# ls -al
total 44
drwxr-xr-x 7 root root 4096 Feb 23 15:28 .
drwxr-xr-x 4 root root 4096 Feb 23 15:28 ..
drwxr-xr-x 3 root root 4096 Feb 23 15:28 bundler
drwxr-xr-x 3 root root 12288 Feb 23 15:31 cache
drwxr-xr-x 2 root root 4096 Feb 15 02:32 doc
drwxr-xr-x 137 root root 4096 Feb 23 15:31 gems
drwxr-xr-x 2 root root 12288 Feb 23 15:31 specifications
[DEV] root@dev02-build-001:/var/lib/gems/1.9.1#

Changed in puppet-keystone:
importance: Undecided → High
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.