Project

General

Profile

Bug #8521

Host clone should include associated Puppet classes

Added by Joshua Hoblitt over 4 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Host creation
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

As of 1.6.3, cloning a host does not duplicate it's included classes. It would be very convient when provisioning multiple hosts if there was a mechanism to clone an existing host that encompassed config groups, included classes, and host level parameters.


Related issues

Related to Foreman - Bug #7407: Cloning a hostgroup do not clone Puppet classes and parametersClosed2014-09-11
Related to Foreman - Bug #9815: HostGroup Clone doesn't work if the hostgroup has parametersClosed2015-03-18

Associated revisions

Revision f1a2c140 (diff)
Added by Dominic Cleal almost 4 years ago

fixes #8521 - fix classes accessors, copy overrides on host clone

The various 'classes' accessors that are used in the UI for displaying
the Puppet classes tab only really worked for saved objects, so they're
changed to work better on an unsaved cloned object. Tests now check
all associations and UI accessors return consistent results for various
types of class associations.

History

#1 Updated by Dominic Cleal over 4 years ago

  • Project changed from Smart Proxy to Foreman
  • Category changed from Core to Host creation

Are those classes directly included, and does the new host show the same Puppet environment?

#2 Updated by Dominic Cleal over 4 years ago

  • Subject changed from ability to clone a host INCLUDING it's included classes to Host clone should include associated Puppet classes

#3 Updated by Dominic Cleal over 4 years ago

  • Tracker changed from Feature to Bug

#4 Updated by Dominic Cleal over 4 years ago

  • Related to Bug #7407: Cloning a hostgroup do not clone Puppet classes and parameters added

#5 Updated by David Schmitt over 4 years ago

The classes are directly included and may have contained fqdn matched smart parameters.

The cloned host shows the same hostgroup.

#6 Updated by Dominic Cleal about 4 years ago

  • Status changed from New to Assigned
  • Assignee set to Dominic Cleal

#7 Updated by The Foreman Bot about 4 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2588 added
  • Pull request deleted ()

#8 Updated by Dominic Cleal about 4 years ago

  • Related to Bug #9815: HostGroup Clone doesn't work if the hostgroup has parameters added

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

  • Legacy Backlogs Release (now unused) set to 63

#10 Updated by Dominic Cleal almost 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#11 Updated by Christine Fouant almost 4 years ago

  • Bugzilla link set to 1267692

Also available in: Atom PDF