Bug 1978683
| Summary: | [global registration] - puppet configuration are not inherited to host from host-group while global registration | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Omkar Khatavkar <okhatavk> |
| Component: | Registration | Assignee: | Leos Stejskal <lstejska> |
| Status: | CLOSED ERRATA | QA Contact: | Shweta Singh <shwsingh> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.10.0 | CC: | dwojewod, lstejska, rlavi, shwsingh, zuansorg |
| Target Milestone: | 6.13.0 | Keywords: | Regression, Triaged |
| Target Release: | Unused | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-05-03 13:20:33 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: | |||
|
Description
Omkar Khatavkar
2021-07-02 13:31:54 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. 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. 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 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 Hi, I tried it and I confirm that the issue is still present in 6.10 SNAP 11, moving back to NEW. Created redmine issue https://projects.theforeman.org/issues/34248 from this bug 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.
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35306 has been resolved. *** Bug 2106782 has been marked as a duplicate of this bug. *** 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. 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 |