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 1144764 - Hammer cannot associate a locked provisioning template to an Operating System, unless its cloned. But the Web UI can
Summary: Hammer cannot associate a locked provisioning template to an Operating System...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Provisioning Templates
Version: 6.0.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-20 14:27 UTC by Ade Bradshaw
Modified: 2019-09-26 13:50 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-06 19:14:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 7563 0 None None None 2016-04-22 16:25:29 UTC

Description Ade Bradshaw 2014-09-20 14:27:32 UTC
Description of problem:
Hammer cannot associate a provisioning template to an Operating System, unless its cloned. But the Web UI can 

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


How reproducible:
100%

Steps to Reproduce:
1. Choose a template such as "Satellite Kickstart Default"
2. Use Hammer to associate it to Operating System ID 1
3.

Actual results:
# hammer template update --id 33 --operatingsystem-ids 1
Could not update the config template:
  This template is locked. Please clone it to a new template to customize.


Expected results:
Template is associated with the Operating System

Additional info:
This works fine from the Web UI

Comment 1 RHEL Program Management 2014-09-20 14:33:01 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 Ade Bradshaw 2014-09-20 14:37:10 UTC
Seems it is possible from the **os**

# hammer os add-config-template --id 1 --config-template-id 33

#  hammer os info --id 1
Id:                 1
Full name:          RedHat 6.5
Release name:       
Family:             Redhat
Name:               RedHat
Major version:      6
Minor version:      5
Partition tables:   

Default templates:  

Architectures:      
    x86_64
Installation media: 
    Example_Org/Library/Red_Hat_6_Server_Kickstart_x86_64_6_5
Templates:          
    Satellite Kickstart Default (provision)
Parameters:

Comment 4 Dominic Cleal 2014-09-22 07:02:56 UTC
Created redmine issue http://projects.theforeman.org/issues/7563 from this bug

Comment 8 Dominic Cleal 2014-11-03 07:35:13 UTC
API bug, as it's the server-side locking that's preventing Hammer from updating the associations.

Comment 10 Bryan Kearney 2015-08-25 18:08:01 UTC
Upstream bug component is Provisioning Templates

Comment 11 Bryan Kearney 2016-07-08 20:28:29 UTC
Per 6.3 planning, moving out non acked bugs to the backlog

Comment 13 Bryan Kearney 2017-01-06 19:14:25 UTC
This is an older bug which has been reported upstream. We are not going to track this bug downstream. When the upstream issue is resolved, the next build will contain the fix. Thank you.

Comment 14 Marek Hulan 2017-02-23 12:17:56 UTC
This already works upstream and also works in Satellite 6.2

Verified with
tfm-rubygem-hammer_cli_foreman-0.5.1.10-1.el7sat.noarch
tfm-rubygem-hammer_cli-0.5.1.13-2.el7sat.noarch


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