Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1027170

Summary: Hammer CLI "partition_table add_operatingsystem" fails
Product: Red Hat Satellite Reporter: Hayk Hovsepyan <hhovsepy>
Component: ProvisioningAssignee: Tomas Strachota <tstrachota>
Status: CLOSED CURRENTRELEASE QA Contact: Sachin Ghai <sghai>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.2CC: dcleal, ohadlevy, sghai
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-02 14:09:17 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: 1025544    
Bug Blocks:    

Description Hayk Hovsepyan 2013-11-06 10:16:07 UTC
Description of problem:
"hammer partition_table add_operatingsystem" fails with error: "Error: resource or action not defined"

Version-Release number of selected component (if applicable):
foreman-postgresql-1.3.0-27.el6sat.noarch
rubygem-hammer_cli_foreman-0.0.9-2.el6sat.noarch
rubygem-foreman_api-0.1.8-2.el6sat.noarch
foreman-1.3.0-27.el6sat.noarch
ruby193-rubygem-foreman-katello-engine-0.0.17-7.el6sat.noarch
katello-configure-foreman-1.4.7-7.el6sat.noarch
katello-foreman-all-1.4.6-61.el6sat.noarch
ruby193-rubygem-foreman_api-0.1.8-2.el6sat.noarch
ruby193-rubygem-katello-foreman-engine-0.0.12-6.el6sat.noarch

Comment 2 Dominic Cleal 2013-12-03 10:11:14 UTC
Should be fixed in:
  hammer_cli 0.0.9
  hammer_cli_foreman 0.0.10
  foreman_api 0.1.8

Comment 6 Sachin Ghai 2014-05-06 09:24:36 UTC
Verified with Satellite-6.0.3-RHEL-6-20140430.4

[root@qetello02 yum.repos.d]# hammer partition-table add-operatingsystem  --name VsDP --operatingsystem-id 68
Operating system has been associated

Comment 7 Bryan Kearney 2014-07-02 14:09:16 UTC
This was delivered in 6.0.3, the Beta version of Satellite 6.0

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