Bug 1025544

Summary: Hammer CLI: Many organization and architecture "add_*" sub-commands fail with error
Product: Red Hat Satellite Reporter: Apurva Bhole <abhole>
Component: ProvisioningAssignee: Tomas Strachota <tstrachota>
Status: CLOSED CURRENTRELEASE QA Contact: Tazim Kolhar <tkolhar>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.2CC: cwelton, dcleal, gkhachik, ohadlevy, omaciel, tkolhar
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/3555
Whiteboard:
Fixed In Version: rubygem-foreman_api-0.1.8-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-02 14:07:57 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:
Bug Depends On:    
Bug Blocks: 1027170    

Description Apurva Bhole 2013-10-31 21:00:35 UTC
Description of problem:
Even on using valid name/id parameters, hammer organization sub-commands:
add_environment, add_domain, add_subnet, add_user and more. 
Also hammer architecture add_operatingsystem always fail.

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-foreman_api-0.1.7-3.el6sat.noarch
katello-foreman-all-1.4.6-55.el6sat.noarch
artemis.usersys.redhat.com-foreman-client-1.0-1.noarch
foreman-postgresql-1.3.0-24.el6sat.noarch
ruby193-rubygem-katello-foreman-engine-0.0.12-4.el6sat.noarch
artemis.usersys.redhat.com-foreman-proxy-1.0-1.noarch
rubygem-hammer_cli_foreman-0.0.9-2.el6sat.noarch
foreman-1.3.0-24.el6sat.noarch
ruby193-rubygem-foreman-katello-engine-0.0.17-7.el6sat.noarch
katello-configure-foreman-1.4.7-7.el6sat.noarch
ruby193-rubygem-foreman_api-0.1.7-2.el6sat.noarch
foreman-proxy-1.3.0-3.el6sat.noarch


How reproducible:
always

Steps to Reproduce:
1. organization create --name org1
2. environment create --name envOne
3. organization add_environment --name org1 --environment-id 3
4. organization add_environment --name org1 --environment envOne

Actual results:
Error: resource or action not defined

Expected results:
It should be executed successfully

Comment 1 RHEL Program Management 2013-10-31 21:05:24 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 Dominic Cleal 2013-11-22 12:22:53 UTC
Should be fixed in:
  hammer_cli 0.0.9
  hammer_cli_foreman 0.0.10
  foreman_api 0.1.8

Comment 5 Garik Khachikyan 2014-01-14 13:35:37 UTC
qA_ack+ to this.

Comment 9 Tazim Kolhar 2014-05-09 13:00:44 UTC
VERIFIED

# hammer organization add-environment --name org1 --environment envOne

Comment 10 Bryan Kearney 2014-07-02 14:07:57 UTC
This was delivered with 6.0.3, which is the Satellite 6 Beta.