Bug 1377647 - Error while loading module hammer_cli_import
Summary: Error while loading module hammer_cli_import
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Uncategorized
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
high
medium vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-20 09:35 UTC by Sachin Ghai
Modified: 2017-08-02 17:03 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-27 05:12:57 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 16581 0 None None None 2016-09-20 10:03:44 UTC

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


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