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 1328073

Summary: Cannot create or delete content host
Product: Red Hat Satellite Reporter: Oleksandr Shtaier <oshtaier>
Component: HammerAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED NOTABUG QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham
Target Milestone: UnspecifiedKeywords: Regression, TestBlocker
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-18 15:46:36 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 Oleksandr Shtaier 2016-04-18 11:27:28 UTC
Description of problem:
Some subcommands are missing for content-host command (basically 'create' and 'delete'):

hammer content-host --help
Usage:
    hammer content-host [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    subcommand
 [ARG] ...                     subcommand arguments

Subcommands:
 available-incremental-updates  
 info                          Show a content host
 list                          List content hosts
 update                        Update content host information

Options:
 -h, --help                    print help

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

How reproducible:
Always

Steps to Reproduce:
1. Just call help for content-host command

Actual results:
Necessary sub-commands are absent

Expected results:
'create' and 'delete' sub-commands for content-host are available and can be used as intended

Additional info:

Comment 2 Brad Buckingham 2016-04-18 15:38:15 UTC
Per discussion in IRC with Justin, in Satellite 6.2 with host-unification, the hammer cli should only support info/list/update. 

In the future, those may be removed as well and be handled soley by the host cli; however, additional enhancements will be needed to hammer-cli to allow for injecting of behavior into existing commands.  E.g. Ability to add content view and lifecycle environment.

Comment 3 Brad Buckingham 2016-04-18 15:46:36 UTC
Based on comment #2, I am going to close this one.  Thanks Oleksandr for creating it so that we could get it clarified.