Project

General

Profile

Bug #7563

Hammer cannot associate a locked provisioning template to an Operating System, unless its cloned. But the Web UI can

Added by Dominic Cleal about 6 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1144764
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:
  1. 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


Related issues

Related to Foreman - Feature #3103: Read only provisioning/config templates for pluginsClosed2013-09-17

History

#1 Updated by Dominic Cleal about 6 years ago

  • Category set to Templates
  • Assignee deleted (Bryan Kearney)

#2 Updated by Dominic Cleal about 6 years ago

  • Related to Feature #3103: Read only provisioning/config templates for plugins added

#3 Updated by Marek Hulán almost 4 years ago

  • Status changed from New to Resolved
  • Target version set to 1.12.1

I can no longer reproduce, this works just fine

$ hammer template info --id 231
Id:                231
Name:              adele
Type:              provision
Locked:            yes
Operating systems: 

Organizations:     
    Ares

$ hammer template update --operatingsystems 'Centos 7.2.1511' --id 231
Config template updated

$ hammer template info --id 231
Id:                231
Name:              adele
Type:              provision
Locked:            yes
Operating systems: 
    CentOS Linux 7.2.1511
Organizations:     
    Ares

I verified the same with organizations. Tested with hammer-cli-foreman 0.9.0 and hammer-cli 0.9.0

Also available in: Atom PDF