Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1607160 - Content source is not inherited from hostgroup while creating host
Summary: Content source is not inherited from hostgroup while creating host
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts - Content
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.4.0
Assignee: Daniel Lobato Garcia
QA Contact: Nikhil Kathole
URL:
Whiteboard:
: 1485949 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-22 17:07 UTC by Nikhil Kathole
Modified: 2023-09-15 00:10 UTC (History)
15 users (show)

Fixed In Version: tfm-rubygem-katello-3.7.0.8-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-16 19:11:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
log in production.log file (6.50 KB, text/plain)
2018-07-22 17:07 UTC, Nikhil Kathole
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 24390 0 Normal Closed Content source is not inherited from hostgroup while creating host 2020-08-05 04:27:06 UTC
Red Hat Knowledge Base (Solution) 3588471 0 None None None 2018-08-28 02:30:14 UTC

Description Nikhil Kathole 2018-07-22 17:07:33 UTC
Created attachment 1469803 [details]
log in production.log file

Description of problem:
While creating new host in satellite using hostgroup, content host is not automatically populated using hostgroup.

Version-Release number of selected component (if applicable):

Satellite 6.4 snap 13


How reproducible: always


Steps to Reproduce:
1. Create hostgroup with content source field provided
2. Navigate to hosts -> create new host
3. Select location and hostgroup

Actual results: Content source field is not automatically populated though it is provides in hostgroup.


Expected results: Content source field should automatically populated using value from hostgroup selected.


Additional info: It is regression. This was working in previous snaps.

Comment 4 Marek Hulan 2018-07-23 06:55:29 UTC
Could you please take a look at https://github.com/Katello/katello/pull/7398 and https://github.com/Katello/katello/pull/7533 whether they describe the same thing? If that's the case, fix will be present in Katello 3.7.0

Comment 5 Nikhil Kathole 2018-07-23 07:40:20 UTC
Hi Marek,

Yes the above PRs should resolve this issue.

Thanks.

Comment 6 Brad Buckingham 2018-07-23 20:43:10 UTC
Nikhil,

Can you confirm if the PRs referenced in comment 4 are installed on your Satellite already?

I spun up the latest build and I see both changes already.  If they are there, then we may still have a bug to investigate.

Thanks!

Comment 7 Nikhil Kathole 2018-07-24 08:53:53 UTC
Thanks Brad.

I see both PRs are there in my satellite. Yes you are correct this issue needs to investigate and need different PR.

Comment 8 Jonathon Turel 2018-07-25 22:47:37 UTC
Created redmine issue http://projects.theforeman.org/issues/24390 from this bug

Comment 9 Jonathon Turel 2018-07-25 22:58:36 UTC
Daniel,

I saw your recent katello commit (824172c216d575946d13b8a0fcbafb0754f7c00c) related to showing the correct content source on a host. I was working in that same area on a fix for this bug when I saw that simply setting a content source on a host is not persisting. My concern here is that my fix and perhaps your fix above are part of some larger issue somewhere? I appreciate any input you might have here especially since you seem more familiar with these parts.

Comment 10 Daniel Lobato Garcia 2018-07-26 11:06:09 UTC
Jonathon, thanks for the ping - unfortunately those commits could be related but they only fix problems when you *edit* a host that already exists. 

I've been testing the issue at hand and it definitely occurs when you *create* a host, the inherited content source field is not populated automatically. It's likely the fix also has to do with the helper, I'm checking.


Let me know what you have already on IRC if you can since you mentioned you were working in this area.

Comment 11 Satellite Program 2018-07-26 16:14:55 UTC
Upstream bug assigned to dlobatog

Comment 12 Satellite Program 2018-07-26 16:14:59 UTC
Upstream bug assigned to dlobatog

Comment 13 Daniel Lobato Garcia 2018-07-26 17:03:50 UTC
Bug is now being fixed at https://github.com/Katello/katello/pull/7572

Comment 14 Satellite Program 2018-07-27 18:14:52 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/24390 has been resolved.

Comment 16 Lukas Pramuk 2018-08-01 12:01:21 UTC
Related BZ 1485949 but for nested hostgroup

Is this BZ fixing also hostgroup inheritance? 
If so we can close the above BZ and mark as dupl of this one.

If not please prioritize also BZ 1485949 from dusty backlog

Comment 17 Nikhil Kathole 2018-08-02 06:55:13 UTC
VERIFIED

Version tested:
Satellite 6.4 snap 15

Content source value is populated using value from hostgroup.

Comment 20 Daniel Lobato Garcia 2018-08-07 08:40:28 UTC
Removing my needinfo, as this fixes https://bugzilla.redhat.com/show_bug.cgi?id=1485949 too indeed.

Comment 21 Brad Buckingham 2018-08-21 18:09:23 UTC
*** Bug 1485949 has been marked as a duplicate of this bug. ***

Comment 24 Brad Buckingham 2018-10-11 21:03:48 UTC
*** Bug 1485949 has been marked as a duplicate of this bug. ***

Comment 25 Bryan Kearney 2018-10-16 19:11:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:2927

Comment 26 Red Hat Bugzilla 2023-09-15 00:10:59 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days


Note You need to log in before you can comment on or make changes to this bug.