'rake' or 'rake lint' blows up

Bug #1217722 reported by Robert Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Core Infrastructure
Confirmed
Undecided
Unassigned

Bug Description

!rake
[No write since last change]
rake aborted!
cannot load such file -- puppetlabs_spec_helper/rake_tasks

(See full trace by running task with --trace)

shell returned 1

Revision history for this message
Robert Collins (lifeless) wrote :

:!rake lint
[No write since last change]
rake aborted!
cannot load such file -- puppetlabs_spec_helper/rake_tasks

(See full trace by running task with --trace)

shell returned 1

summary: - plain 'rake' blows up
+ 'rake' or 'rake lint' blows up
Revision history for this message
Robert Collins (lifeless) wrote :

rake --trace
rake aborted!
no such file to load -- puppetlabs_spec_helper/rake_tasks
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/opt/config/production/Rakefile:2
/usr/lib/ruby/vendor_ruby/rake/rake_module.rb:25:in `load'
/usr/lib/ruby/vendor_ruby/rake/rake_module.rb:25:in `load_rakefile'
/usr/lib/ruby/vendor_ruby/rake/application.rb:501:in `raw_load_rakefile'
/usr/lib/ruby/vendor_ruby/rake/application.rb:82:in `load_rakefile'
/usr/lib/ruby/vendor_ruby/rake/application.rb:133:in `standard_exception_handling'
/usr/lib/ruby/vendor_ruby/rake/application.rb:81:in `load_rakefile'
/usr/lib/ruby/vendor_ruby/rake/application.rb:65:in `run'
/usr/lib/ruby/vendor_ruby/rake/application.rb:133:in `standard_exception_handling'
/usr/lib/ruby/vendor_ruby/rake/application.rb:63:in `run'
/usr/bin/rake:27

Revision history for this message
Jerry Zhao (zhaoxinyu) wrote :

I have the same issue. Is there any update, lifeless?

Revision history for this message
Jerry Zhao (zhaoxinyu) wrote :

gem install puppetlabs_spec_helper
gem install puppet-lint

It works now on my local machine.

Make sure packages referenced here are installed:
http://git.openstack.org/cgit/openstack-infra/config/tree/modules/jenkins/manifests/slave.pp#n123

Revision history for this message
Jerry Zhao (zhaoxinyu) wrote :

install the prerequisites before 'rake lint'

Changed in openstack-ci:
status: New → Invalid
Revision history for this message
Robert Collins (lifeless) wrote :

It's nice that you identified a way to fix it, but that doesn't fix the bug or make it not a bug: it's not documented, and it's not automated. The only reason it works in the test environment is that the test environment is itself puppet managed so has all the deps.

Changed in openstack-ci:
status: Invalid → 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.