Project

General

Profile

Actions

Bug #2231

closed

Hostgroup deletion follows adoption policy

Added by Daniel Lobato Garcia about 11 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Given a hostgroup hierarchy like:

/base
/base/test01
/base/test01/test02
/base/test01/test03

Currently, if /base/test01 is deleted, it leads to a clunky configuration

/base
/test02
/test03

This change makes a hostgroup adopt orphans so that removing test01 would lead to:

/base
/base/test02
/base/test03

https://github.com/theforeman/foreman/pull/419

Actions #1

Updated by Daniel Lobato Garcia over 10 years ago

  • Description updated (diff)

Given a hostgroup hierarchy like:

/base
/base/test01
/base/test01/test02
/base/test01/test03

Currently, if /base/test01 is deleted, it leads to a clunky configuration

/base
/test02
/test03

In addition to that, it might lead to having several hostgroups with the same name:

/base
/test/base

If test is deleted, we would end up with

/base
/base

This change restricts hostgroup deletion only to hostgroups who have no children so that the problems above can be avoided.

https://github.com/theforeman/foreman/pull/924

Actions #2

Updated by Dominic Cleal over 10 years ago

  • Status changed from New to Ready For Testing
  • Target version set to 1.4.0
Actions #3

Updated by Greg Sutcliffe over 10 years ago

  • Target version deleted (1.4.0)
Actions #4

Updated by Dominic Cleal over 10 years ago

  • Target version set to 1.15.0
Actions #5

Updated by Dominic Cleal over 10 years ago

  • Target version changed from 1.15.0 to 1.10.0
Actions #6

Updated by Dominic Cleal over 10 years ago

  • Target version changed from 1.10.0 to 1.9.3
Actions #7

Updated by Anonymous over 10 years ago

  • Target version changed from 1.9.3 to 1.9.2
Actions #8

Updated by Dominic Cleal over 10 years ago

  • Assignee set to Daniel Lobato Garcia
  • translation missing: en.field_release set to 2
Actions #9

Updated by Daniel Lobato Garcia over 10 years ago

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

Also available in: Atom PDF