Bug 1023071

Summary: hammer cli: 'architecture add_operatingsystem' throws unhandled error
Product: Red Hat Satellite Reporter: Corey Welton <cwelton>
Component: ProvisioningAssignee: Tomas Strachota <tstrachota>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.2CC: dcleal, jmontleo, omaciel, skottler, tstrachota
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/3499
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-24 17:09:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.