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:

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.