Bug #7060
closed
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/smart-proxy/pull/198 added
- Pull request deleted (
)
- Project changed from Foreman to Smart Proxy
- Category changed from Smart Proxy to Puppet
- Translation missing: en.field_release set to 10
- Bugzilla link set to 1129439
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
This seems to be breaking foreman-proxy on RHEL6 unless :puppet_provider: puppetrun is explicitly set in /etc/foreman-proxy/settings.d/puppet.yml
E, [2014-08-13T17:26:31.882793 #44503] ERROR -- : Couldn't enable plugin puppet: undefined method `<=>' for :puppetdir:Symbol:/usr/share/foreman-proxy/lib/proxy/plugin.rb:139:in `<=>'/n/usr/share/foreman-proxy/lib/proxy/plugin.rb:139:in `sort'/n/usr/share/foreman-proxy/lib/proxy/plugin.rb:139:in `log_used_default_settings'/n/usr/share/foreman-proxy/lib/proxy/plugin.rb:149:in `configure_plugin'/n/usr/share/foreman-proxy/lib/proxy/plugin.rb:22:in `configure_loaded_plugins'/n/usr/share/foreman-proxy/lib/proxy/plugin.rb:22:in `each'/n/usr/share/foreman-proxy/lib/proxy/plugin.rb:22:in `configure_loaded_plugins'/n/usr/share/foreman-proxy/lib/smart_proxy.rb:116:in `launch'/n/usr/share/foreman-proxy/bin/smart-proxy:6
<jsherrill> jmontleon: in ruby 1.8.7 it doens't look like you can sort symbols?
<jsherrill> irb(main):002:0> [:a, :b, :c].sort
<jsherrill> NoMethodError: undefined method `<=>' for :a:Symbol
<jsherrill> so i'm guessing its parsing those config files and using symbols
<jsherrill> jmontleo: but the proper fix would be to not rely on sortable symbols IMHO
jsherrill> or else explicitly include the Comparable monkey patch
- Related to Bug #7080: Couldn't enable plugin puppet: undefined method `<=>' for :puppet_provider:Symbol added
I tested this only on RHEL7 which has Ruby 2.0...
- Related to Bug #7240: When loading using bundler smart-proxy fails to load puppetca module if puppet module is disabled added
Also available in: Atom
PDF