Bug 1160292 - Unable to clone config_template via the hammer cli.
Summary: Unable to clone config_template via the hammer cli.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: Unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Shimon Shtein
QA Contact: Katello QA List
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-04 14:02 UTC by Kedar Bidarkar
Modified: 2019-09-26 13:51 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:42:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 13946 0 None None None 2016-04-22 16:44:26 UTC

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


Note You need to log in before you can comment on or make changes to this bug.