Bug 1607160

Summary: Content source is not inherited from hostgroup while creating host
Product: Red Hat Satellite Reporter: Nikhil Kathole <nkathole>
Component: Hosts - ContentAssignee: Daniel Lobato Garcia <dlobatog>
Status: CLOSED ERRATA QA Contact: Nikhil Kathole <nkathole>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.4CC: achadha, dlobatog, hmore, jturel, lpramuk, mhulan, mmccune, nickcelebic, nkathole, patalber, rabajaj, rraghuwa, satellite6-bugs, sgraessl, vvasilev
Target Milestone: 6.4.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.7.0.8-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-16 19:11:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
log in production.log file none

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