Project

General

Profile

Actions

Bug #2413

closed

NoMethodError on Puppet 3.2 and Ruby 1.9.2

Added by Dominic Cleal almost 12 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Puppet integration
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Platform:
  • Ruby 1.9.2
  • Puppet 3.2.0

There seems to be a conflict with Array monkey patching added in Puppet 3.2, but only under Ruby 1.9.2:

NoMethodError
/usr/local/rvm/gems/ruby-1.9.2-p320@test_develop_pull_request_rb2-0/gems/puppet-3.2.0.rc1/lib/puppet/util/monkey_patches.rb:139:in `to_hash'
/usr/local/rvm/gems/ruby-1.9.2-p320@test_develop_pull_request_rb2-0/gems/sass-3.2.7/lib/sass/util.rb:40:in `[]'
/usr/local/rvm/gems/ruby-1.9.2-p320@test_develop_pull_request_rb2-0/gems/sass-3.2.7/lib/sass/util.rb:40:in `to_hash'
/usr/local/rvm/gems/ruby-1.9.2-p320@test_develop_pull_request_rb2-0/gems/sass-3.2.7/lib/sass/util.rb:72:in `map_vals'
/usr/local/rvm/gems/ruby-1.9.2-p320@test_develop_pull_request_rb2-0/gems/sass-3.2.7/lib/sass/script/color.rb:169:in `<class:Color>'
/usr/local/rvm/gems/ruby-1.9.2-p320@test_develop_pull_request_rb2-0/gems/sass-3.2.7/lib/sass/script/color.rb:18:in `<module:Script>'
/usr/local/rvm/gems/ruby-1.9.2-p320@test_develop_pull_request_rb2-0/gems/sass-3.2.7/lib/sass/script/color.rb:3:in `<top (required)>'

The only primary platform this will affect is Debian Squeeze, all others use 1.9.3. The trouble is that 1.9.2 isn't officially supported by Puppet.


Related issues 1 (0 open1 closed)

Related to Foreman - Feature #2414: Remove Puppet from Foreman coreClosedGreg Sutcliffe04/19/2013Actions
Actions #1

Updated by Dominic Cleal almost 12 years ago

  • Assignee deleted (Ohad Levy)

This would also go away if we removed Puppet from Foreman core, since the full Rails app is conflicting with Puppet-as-a-library. see #2414.

Actions #2

Updated by Greg Sutcliffe almost 12 years ago

We could add a ruby 1.9.3 package to our squeeze repo - but removing puppet is necessary anyway, and a better fix :)

Actions #3

Updated by Dominic Cleal almost 12 years ago

Greg Sutcliffe wrote:

We could add a ruby 1.9.3 package to our squeeze repo - but removing puppet is necessary anyway, and a better fix :)

I think shipping new Ruby packages is a really bad idea, especially as there are possible alternatives. I'm not sure if the removing Puppet work should be done for 1.2 or not, but if not then we should look at fixing the monkey patch in Puppet 3.2.0 (even though it's not a supported platform upstream).

Actions #4

Updated by Dominic Cleal over 11 years ago

  • Status changed from New to Closed

I think this should be fixed, the monkey patching of Array has been removed in 3.2.0-rc2.

Actions

Also available in: Atom PDF