Project

General

Profile

Actions

Bug #37290

open

Hostgroup inheritance for LCE and CV does not work for grandchildren hostgroups

Added by Nadja Heitmann 9 months ago. Updated 28 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

  1. 1) create a hostgroup 'parent' with LCE and CV
  2. 2) create a child hostgroup 'child' and choose 'parent' as as parent hostgroup
  • It takes the correct values from 'parent' for LCE and CV, but does not add 'Inherit parent (...)'
  • Change LCE and CV to something new
  1. 3) create a grandchild hostgroup 'grandchild' and choose 'child' as parent hostgroup
  • CV and LCE are taken from 'parent' hostgroup rather than from 'child' hostgroup

In my opinion, there are multiple thing that are going wrong here:
1) https://github.com/Katello/katello/blob/master/app/helpers/katello/hosts_and_hostgroups_helper.rb#L134 and https://github.com/Katello/katello/blob/master/app/helpers/katello/hosts_and_hostgroups_helper.rb#L163 methods do not pick the `Inherit parent (...)` option, it is added to the beginning of the list only
2) The parent host group is not resolved correctly for CV and LCE. This can either be a UI problem during saving of the new hostgroup or a problem that is hidden deeper.

Actions

Also available in: Atom PDF