Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1023071 - hammer cli: 'architecture add_operatingsystem' throws unhandled error
Summary: hammer cli: 'architecture add_operatingsystem' throws unhandled error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Provisioning
Version: 6.0.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Tomas Strachota
QA Contact: Katello QA List
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-24 14:41 UTC by Corey Welton
Modified: 2019-09-26 13:43 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-24 17:09:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 3499 0 None None None 2016-04-22 15:07:52 UTC

Description Corey Welton 2013-10-24 14:41:43 UTC
Description of problem:
Unhandled error is thrown in hammer cli when using 'add_operatingsystem' param for 'architecture'

Version-Release number of selected component (if applicable):

rubygem-hammer_cli_foreman-0.0.8-2.el6sat.noarch

How reproducible:


Steps to Reproduce:
1. hammer -u admin -p admin architecture add_operatingsystem 
2. view results


Actual results:
[root@cloud-qe-21 ~]# hammer -u admin -p admin architecture add_operatingsystem 
Error: uninitialized constant HammerCLIForeman::AssociatedCommand::ResourceInstance


Expected results:
If we're expecting user to enter something in a different manner, we should tell them what to enter, and we should capture anything differently in a graceful manner.


Additional info:

Comment 2 Apurva Bhole 2013-10-25 17:46:28 UTC
This same issue also exists for the organization subcommands.

many organization sub-commands fail with error:
organization add_computeresource
organization add_user
organization add_domain
etc

Actual Results:
Error: uninitialized constant HammerCLIForeman::AssociatedCommand::ResourceInstance

Comment 3 Dominic Cleal 2013-10-29 20:12:08 UTC
Fixed in rubygem-hammer_cli_foreman-0.0.9.

Comment 6 Corey Welton 2013-10-31 13:38:03 UTC
QA Verified Satellite-6.0.2-RHEL-6-20131030.0

Comment 9 Bryan Kearney 2014-04-24 17:09:37 UTC
This was verified and delivered with MDP2. Closing it out.

Comment 10 Bryan Kearney 2014-04-24 17:11:04 UTC
This was delivered and verified with MDP2. Closing the bug.


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