Bug 1026462 - Uncommenting "- hammer_cli_katello_bridge" in /etc/foreman/cli_config.yml causes error when running hammer
Summary: Uncommenting "- hammer_cli_katello_bridge" in /etc/foreman/cli_config.yml cau...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: katello-agent
Version: 6.0.2
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Martin Bacovsky
QA Contact: Kedar Bidarkar
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-04 17:38 UTC by Jason Montleon
Modified: 2019-09-26 14:07 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-14 08:02:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 3580 0 None None None 2016-04-22 16:18:30 UTC

Description Jason Montleon 2013-11-04 17:38:13 UTC
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:

Comment 1 RHEL Program Management 2013-11-04 17:55:08 UTC
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.

Comment 3 Martin Bacovsky 2013-11-05 10:04:30 UTC
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.

Comment 4 Martin Bacovsky 2013-11-11 08:12:11 UTC
This issue is fixed in rubygem-hammer-cli-katello-bridge >= 0.0.7

Comment 7 Kedar Bidarkar 2014-08-14 06:58:20 UTC
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.

Comment 8 Martin Bacovsky 2014-08-14 07:58:44 UTC
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.

Comment 9 Dominic Cleal 2014-08-14 08:02:51 UTC
hammer-cli-katello-bridge has been deprecated and removed, hammer-cli-katello is the replacement and has QE coverage.


Note You need to log in before you can comment on or make changes to this bug.