Project

General

Profile

Actions

Bug #7563

closed

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

Added by Dominic Cleal over 10 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
Difficulty:
Triaged:
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 1 (0 open1 closed)

Related to Foreman - Feature #3103: Read only provisioning/config templates for pluginsClosedStephen Benjamin09/17/2013Actions
Actions #1

Updated by Dominic Cleal over 10 years ago

  • Category set to Templates
  • Assignee deleted (Bryan Kearney)
Actions #2

Updated by Dominic Cleal over 10 years ago

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

Updated by Marek Hulán almost 8 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

Actions

Also available in: Atom PDF