Project

General

Profile

Actions

Bug #39579

open

Attributes inherited by a child hostgroup from a parent are returned as `nil` when querying the child via API

Added by Ladislav Vašina 5 days ago. Updated 2 days ago.

Status:
Ready For Testing
Priority:
Normal
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

When using the Satellite API to query a child hostgroup that has inherited attributes from its parent hostgroup, inherited values for the child are returned as nil.

How reproducible:

100%

Is this issue a regression from an earlier version:

No

Steps to Reproduce:

Sync BaseOS and AppStream kickstart repos for RHEL 10.

Create a parent hostgroup, ensuring that the BaseOS kickstart repository populates the Synced Content field on the Operating System tab.

Create a child hostgroup that inherits its attributes from the parent hostgroup.

Send a GET request to api/v2/hostgroups/<child hostgroup id>.

Actual behavior:
kickstart_repository_id and many other fields in the response, including inherited_* fields, have nil values.

Expected behavior:
Inherited values are returned when a child hostgroup is queried via API.

Actions #1

Updated by The Foreman Bot 4 days ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/11815 added
Actions #2

Updated by Ian Ballou 2 days ago

  • Category changed from API to Hosts
  • Target version set to Katello Next
  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF