Description of problem: Uncommenting "- hammer_cli_katello_bridge" in /etc/foreman/cli_config.yml causes error when running hammer. As long as the line remains commented it works properly. Version-Release number of selected component (if applicable): rubygem-hammer_cli_foreman-0.0.9-2.el6sat.noarch rubygem-hammer_cli-0.0.8-2.el6sat.noarch rubygem-hammer_cli_katello_bridge-0.0.6-2.el6sat.noarch How reproducible: Always Steps to Reproduce: 1. In katello/hammer 2. Uncomment "- hammer_cli_katello_bridge" in /etc/foreman/cli_config.yml 3. Run hammer Actual results: [root@mdp2-1 katello]# hammer Error: undefined method `find_by_name' for Gem::Specification:Class [root@mdp2-1 katello]# hammer --verbose [ INFO 2013-11-04 12:35:49 Init] Configuration from the file /etc/foreman/cli_config.yml has been loaded [ INFO 2013-11-04 12:35:49 Init] Extension module hammer_cli_foreman loaded [ERROR 2013-11-04 12:35:49 Init] Error while loading module hammer_cli_katello_bridge [ERROR 2013-11-04 12:35:49 Exception] Error: undefined method `find_by_name' for Gem::Specification:Class Error: undefined method `find_by_name' for Gem::Specification:Class [ERROR 2013-11-04 12:35:49 Exception] NoMethodError (undefined method `find_by_name' for Gem::Specification:Class): /usr/lib/ruby/gems/1.8/gems/hammer_cli_katello_bridge-0.0.6/lib/hammer_cli_katello_bridge.rb:81 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.8/bin/hammer:52 /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.8/bin/hammer:50:in `each' /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.8/bin/hammer:50 /usr/bin/hammer:19:in `load' /usr/bin/hammer:19 Expected results: hammer runs normally. Additional info:
Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release.
Created upstream bug http://projects.theforeman.org/issues/3580. The json definition file lookup works only on rubygems >= 2.0 (Ruby 1.9.2+). I will provide fix soon.
This issue is fixed in rubygem-hammer-cli-katello-bridge >= 0.0.7
Looks like we no longer have /etc/foreman/cli_config.yml Please provide the verification steps, as the packages or files to verify this has changed.
I'd suggest to run 'hammer -d' to see in the output what config files it reads. Then check there is no hammer-cli-katello-bridge to uncomment in them.
hammer-cli-katello-bridge has been deprecated and removed, hammer-cli-katello is the replacement and has QE coverage.