Bug 1331033

Summary: Rake tasks fail under rake 11.x with undefined method `last_comment'
Product: Red Hat Satellite Reporter: Chris Peters <chpeters>
Component: CapsuleAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Kedar Bidarkar <kbidarka>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham, ehelms, kbidarka, mmccune, sthirugn
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-proxy-1.11.0.3-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:23:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Chris Peters 2016-04-27 13:29:35 UTC
As with Foreman in #14114, rake 11.x causes the following error with rubocop pre-0.38.0:

<pre>
NoMethodError: undefined method `last_comment' for #<Rake::Application:0x000000019f30c0>
/usr/local/rvm/gems/ruby-1.9.3-p392@test_proxy_develop_pr_core-1/gems/rubocop-0.37.1/lib/rubocop/rake_task.rb:24:in `initialize'
tasks/rubocop.rake:4:in `new'
tasks/rubocop.rake:4:in `<top (required)>'
/var/lib/workspace/workspace/test_proxy_develop_pr_core/puppet/3.2.0/ruby/1.9.3/Rakefile:11:in `load'
/var/lib/workspace/workspace/test_proxy_develop_pr_core/puppet/3.2.0/ruby/1.9.3/Rakefile:11:in `<top (required)>'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_proxy_develop_pr_core-1/bin/ruby_noexec_wrapper:14:in `eval'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_proxy_develop_pr_core-1/bin/ruby_noexec_wrapper:14:in `<main>'
</pre>

On Ruby 1.8.7, rake 11.x also can't be installed as it's now 1.9.3+ only:

<pre>
Installing rake 11.0.1
Gem::InstallError: rake requires Ruby version >= 1.9.3.
</pre>

Comment 1 Chris Peters 2016-04-27 13:29:38 UTC
Created from redmine issue http://projects.theforeman.org/issues/14134

Comment 3 Brad Buckingham 2016-05-03 13:27:00 UTC
Based on discussion with Chris, this fix is needed to address an issue with capsule/smart-proxy and ruby 1.8.7.

Comment 5 Kedar Bidarkar 2016-06-13 15:28:40 UTC
there's nothing customer-facing to test here,  moving this to verified state.

Comment 6 Bryan Kearney 2016-07-27 11:23:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1501