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 1978683 - [global registration] - puppet configuration are not inherited to host from host-group while global registration
Summary: [global registration] - puppet configuration are not inherited to host from h...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Registration
Version: 6.10.0
Hardware: All
OS: All
high
high
Target Milestone: 6.13.0
Assignee: Leos Stejskal
QA Contact: Shweta Singh
URL:
Whiteboard:
: 2106782 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-02 13:31 UTC by Omkar Khatavkar
Modified: 2023-05-03 13:20 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-03 13:20:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 35306 0 Normal New host_puppet_* template macros ignores host_param 2022-08-01 07:31:54 UTC
Red Hat Issue Tracker SAT-14691 0 None None None 2023-01-05 07:15:53 UTC
Red Hat Product Errata RHSA-2023:2097 0 None None None 2023-05-03 13:20:50 UTC

Description Omkar Khatavkar 2021-07-02 13:31:54 UTC
Description of problem:
[global registration] - puppet configuration are not inherited to host from host-group while global registration  

Version-Release number of selected component (if applicable):
Satellite 6.10 Snap 7

How reproducible:
always 


Steps to Reproduce:
1.Sync the redhat reositories, create contentview and activation-key 
2.import puppet modules 
3.create the host group and update the details about the puppet configuration  
4.Register the host using global registration  

Actual results:
puppet configurations is not set on the host, /etc/puppetlabs/puppet/puppet.conf file also not set on the host  

Expected results:
puppet configurations should be set on the host

Additional info:

Comment 1 Marek Hulan 2021-08-03 13:46:50 UTC
Leos, isn't this resolved by https://projects.theforeman.org/issues/32457 ? If so, please link the two, so the patch can be backported properly.

Comment 2 Leos Stejskal 2021-08-03 14:05:14 UTC
Yes you are right, it should be fixed now. From Redmine I can see that it have been back-ported to Foreman 2.5.1,
therefore it should be fixed in current 6.10 snap.

Comment 4 Leos Stejskal 2021-08-05 13:03:35 UTC
Hi,
as the output says: "There are no enabled repos."
Registration process ended after the installation of insights-client failed.

There are two ways how to fix it:
1 - Disable installation of insights (Go to "Configure > Global parameters" and set `host_registration_insights` to false)
2 - enable and sync repo required for successful insights-client installation

Step 1 is easier and faster and won't have any affect your test.
And you should have installed puppet on the registered machine

Comment 6 Leos Stejskal 2021-08-06 07:58:16 UTC
It looks like you are re-registering same host which has `host_registration_insights` param set to `true` from previous registration.
This is known issue fixed in latest snap [0].
Try to delete registered host in Satellite & register it again with `host_registration_insights=false`

[0] https://bugzilla.redhat.com/show_bug.cgi?id=1967066

Comment 9 Leos Stejskal 2021-08-06 12:00:10 UTC
Hi, I tried it and I confirm that the issue is still present in 6.10 SNAP 11, moving back to NEW.

Comment 10 Leos Stejskal 2022-01-12 10:52:19 UTC
Created redmine issue https://projects.theforeman.org/issues/34248 from this bug

Comment 12 Leos Stejskal 2022-07-31 08:07:33 UTC
Note: Still reproducible on the latest develop.
In `host_puppet_server` template macro we check if the host have `puppet_server` and if not then we look for the value of host_param('puppet_server').

The problem is that `puppet_server` parameter configured on the host group level returns in `host_puppet_server` macro empty string.

Comment 13 Bryan Kearney 2022-08-03 16:03:46 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35306 has been resolved.

Comment 14 Ron Lavi 2022-08-04 07:27:25 UTC
*** Bug 2106782 has been marked as a duplicate of this bug. ***

Comment 18 Shweta Singh 2023-01-23 10:47:25 UTC
Verified.

Tested on Satellite 6.13.0 Snap 5.0

Steps:
1. Sync the RedHat kickstart repositories, create content view and activation-key.
2. Create the host group and update the details about the puppet config where using host params like enable-puppet7, puppet_ca_server, puppet_server.
3. Provisioning a host which has hostgroup assigned, and update root password.
4. Verify provisioned host for puppet config which will be inherited from host group in /etc/puppetlabs/puppet/puppet.conf.

Observation:
Puppet config and puppet configuration set on host group are inherited to host.

Comment 23 errata-xmlrpc 2023-05-03 13:20:33 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 (Important: Satellite 6.13 Release), 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-2023:2097


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