Bug 1377647

Summary: Error while loading module hammer_cli_import
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: UncategorizedAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WORKSFORME QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: high    
Version: 6.3.0CC: bbuckingham, bkearney, ehelms
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/16581
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-27 05:12:57 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 Sachin Ghai 2016-09-20 09:35:52 UTC
It seems that hammer_cli_import requires too old hammer_cli_katello:

<pre>
[ERROR 2016-09-16 08:14:00 Modules] Error while loading module hammer_cli_import
Warning: An error occured while loading module hammer_cli_import
[ERROR 2016-09-16 08:14:00 Modules] <Gem::LoadError> Could not find 'hammer_cli_katello' (~> 0.0.6) - did find: [hammer_cli_katello-0.1.0]
</pre>

Comment 1 Sachin Ghai 2016-09-20 09:35:56 UTC
Created from redmine issue http://projects.theforeman.org/issues/16581

Comment 2 Sachin Ghai 2016-09-20 09:36:37 UTC
Connecting redmine issue http://projects.theforeman.org/issues/16581 from this bug

Comment 3 Sachin Ghai 2016-09-20 09:40:13 UTC
issue is appearing with sat6.3 snap1

tfm-rubygem-hammer_cli-0.8.0-1.el7.noarch
tfm-rubygem-hammer_cli_katello-0.1.0-1.el7.noarch
tfm-rubygem-hammer_cli_csv-2.1.0-1.el7sat.noarch
satellite-cli-6.3.0-1.0.git.7.fb12bf2.el7sat.noarch
satellite-6.3.0-1.0.git.7.fb12bf2.el7sat.noarch
satellite-installer-6.3.0.0-1.git.12.695b530.el7sat.noarch




~]# hammer -v -u admin -p changeme --output=csv location create --name="GjTkhRsKfv"
[ERROR 2016-09-20 05:26:04 Modules] Error while loading module hammer_cli_import
Warning: An error occured while loading module hammer_cli_import
[ERROR 2016-09-20 05:26:04 Modules] <Gem::ConflictError> Unable to activate hammer_cli_import-0.11.2, because hammer_cli_katello-0.1.0 conflicts with hammer_cli_katello (~> 0.0.6)
	/opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/specification.rb:2112:in `raise_if_conflicts'
	/opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/specification.rb:1280:in `activate'
	/opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems.rb:198:in `rescue in try_activate'
	/opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems.rb:195:in `try_activate'
	/opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:126:in `rescue in require'
	/opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:39:in `require'
	/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.8.0/lib/hammer_cli/modules.rb:78:in `require_module'
	/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.8.0/lib/hammer_cli/modules.rb:57:in `load!'
	/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.8.0/lib/hammer_cli/modules.rb:72:in `load'
	/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.8.0/lib/hammer_cli/modules.rb:83:in `block in load_all'
	/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.8.0/lib/hammer_cli/modules.rb:82:in `each'
	/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.8.0/lib/hammer_cli/modules.rb:82:in `load_all'
	/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.8.0/bin/hammer:112:in `<top (required)>'
	/usr/bin/hammer:23:in `load'
	/usr/bin/hammer:23:in `<main>'
Message,Id,Name
Location created,3,GjTkhRsKfv

Comment 6 Bryan Kearney 2016-09-20 12:19:21 UTC
Upstream bug component is Uncategorized

Comment 7 Bryan Kearney 2016-09-22 11:55:22 UTC
This looks like the fix is just rebasing this gem, Eric is that correct?

Comment 8 Sachin Ghai 2016-09-27 05:11:33 UTC
Yes, Verified with Sat6.3 snap2. I don't see this issue anymore.

 ~]# hammer -v -u admin -p changeme --output=csv location create --name='test'
Message,Id,Name
Location created,3,test