Bug 1160292

Summary: Unable to clone config_template via the hammer cli.
Product: Red Hat Satellite Reporter: Kedar Bidarkar <kbidarka>
Component: HammerAssignee: Shimon Shtein <sshtein>
Status: CLOSED ERRATA QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: UnspecifiedCC: bkearney, sshtein
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/13946
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:42:35 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 Kedar Bidarkar 2014-11-04 14:02:46 UTC
Description of problem:

Currently hammer cli cannot clone config_templates with a sub-command.

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


How reproducible:
always

Steps to Reproduce:
1. "hammer template" has no "clone" sub-command.
2.
3.

Actual results:
No "clone" sub-command, for "hammer template".

Expected results:
"hammer template" needs to have a "clone" sub-command.

Additional info:

Comment 1 RHEL Program Management 2014-11-04 14:03:03 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 Shimon Shtein 2016-02-29 13:13:32 UTC
Created redmine issue http://projects.theforeman.org/issues/13946 from this bug

Comment 4 Adam Ruzicka 2016-03-23 10:32:55 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/13946 has been closed
-------------
Shimon Shtein
Applied in changeset commit:hammer-cli-foreman|5aaa69fa1f9df50480002d92c9f42c5ede1b9635.

Comment 5 Kedar Bidarkar 2016-05-24 16:44:18 UTC
We now have "clone" sub_command,

[root@xyz ~]# hammer -u admin -p changeme template --help 
Usage:
    hammer template [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 add-operatingsystem           Associate an operating system
 build-pxe-default             Update the default PXE menu on all configured TFTP servers
 clone                         Clone a provision template
 create                        Create a provisioning template
 delete                        Delete a provisioning template
 dump                          View config template content.
 info                          Show provisioning template details
 kinds                         List available config template kinds.
 list                          List provisioning templates
 remove-operatingsystem        Disassociate an operating system
 update                        Update a provisioning template

Options:
 -h, --help                    print help
[root@xyz ~]# hammer -u admin -p changeme template clone --help 
Usage:
    hammer template clone [OPTIONS]

Options:
 --id ID                        
 --name NAME                   Name to search by
 --new-name NEW_NAME           template name
 -h, --help                    print help


VERIFIED with sat62-snap12.1

Comment 6 Bryan Kearney 2016-07-27 11:42:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1501