| Summary: | [RFE] Installer puppet shall be isolated from using system wide configuration like hiera | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Peter Vreman <peter.vreman> |
| Component: | Installer | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | CLOSED ERRATA | QA Contact: | Justin Sherrill <jsherril> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.1.6 | CC: | bkearney, jcallaha, jsherril, stbenjam, xdmoon |
| Target Milestone: | Unspecified | Keywords: | FutureFeature, Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-02-21 16:40:37 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: | |
| Bug Depends On: | |||
| Bug Blocks: | 260381, 1122832 | ||
Moving 6.2 bugs out to sat-backlog. The upstream installer now supports having it's own separate hiera config. Moving to POST since upstream bug http://projects.theforeman.org/issues/14945 has been closed Verified on snap 10, could not see the same messages or any indication that the hiera.yaml was being included 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:0336 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:0336 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:0336
|
Description of problem: The katello-installer shall create a local puppet configuration that is better isolated against $ cat /etc/puppet/hiera.yaml --- :logger: console :backends: - yaml :yaml: :datadir: '/opt/hoici/share/hiera' :hierarchy: - hostname/%{::fqdn} - hostgroup/%{::hilti_hiera_tier}/%{::hilti_hiera_maingroup}/%{::hilti_hiera_subgroup} - hostgroup/%{::hilti_hiera_tier}/%{::hilti_hiera_maingroup}/common - hostgroup/%{::hilti_hiera_tier}/common - users - common In the katello-installer log it is visible that the hiera configuration above is used: [DEBUG 2016-01-25 15:04:20 main] API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache. [DEBUG 2016-01-25 15:04:20 main] echo '$kafo_config_file="/etc/katello-installer/katello-installer.yaml" include kafo_configure' | RUBYLIB =/usr/lib/ruby/gems/1.8/gems/kafo-0.6.5.9/lib/kafo/../..//modules: puppet apply --verbose --debug --trace --color=false --show_diff --detail ed-exitcodes --modulepath /usr/share/katello-installer/modules:/usr/lib/ruby/gems/1.8/gems/kafo-0.6.5.9/modules [DEBUG 2016-01-25 15:04:20 main] Hook /usr/share/katello-installer/hooks/pre/30-upgrade.rb returned [<Logging::Logger:0x3fcc5be82b20 name="m ain">, <Logging::Logger:0x3fcc5be62bf4 name="fatal">, <Logging::Logger:0x3fcc5bd00978 name="verbose">] [DEBUG 2016-01-25 15:04:31 main] Automatically imported certs from certs into production [DEBUG 2016-01-25 15:04:31 main] Automatically imported certs::params from certs/params into production [DEBUG 2016-01-25 15:04:31 main] Automatically imported foreman from foreman into production [DEBUG 2016-01-25 15:04:31 main] Automatically imported foreman::params from foreman/params into production [DEBUG 2016-01-25 15:04:31 main] Automatically imported kafo_configure from kafo_configure into production [DEBUG 2016-01-25 15:04:31 main] Automatically imported kafo_configure::yaml_to_class from kafo_configure/yaml_to_class into production [DEBUG 2016-01-25 15:04:31 main] Automatically imported katello from katello into production [DEBUG 2016-01-25 15:04:31 main] Automatically imported katello::params from katello/params into production [DEBUG 2016-01-25 15:04:31 main] importing '/usr/lib/ruby/gems/1.8/gems/kafo-0.6.5.9/modules/kafo_configure/manifests/init.pp' in environme nt production [DEBUG 2016-01-25 15:04:31 main] importing '/usr/lib/ruby/gems/1.8/gems/kafo-0.6.5.9/modules/kafo_configure/manifests/yaml_to_class.pp' in environment production [DEBUG 2016-01-25 15:04:31 main] importing '/usr/share/katello-installer/modules/capsule/manifests/init.pp' in environment production [DEBUG 2016-01-25 15:04:31 main] importing '/usr/share/katello-installer/modules/certs/manifests/init.pp' in environment production [DEBUG 2016-01-25 15:04:31 main] importing '/usr/share/katello-installer/modules/certs/manifests/params.pp' in environment production [DEBUG 2016-01-25 15:04:31 main] importing '/usr/share/katello-installer/modules/foreman/manifests/init.pp' in environment production [DEBUG 2016-01-25 15:04:31 main] importing '/usr/share/katello-installer/modules/foreman/manifests/params.pp' in environment production [DEBUG 2016-01-25 15:04:31 main] importing '/usr/share/katello-installer/modules/katello/manifests/init.pp' in environment production [DEBUG 2016-01-25 15:04:31 main] importing '/usr/share/katello-installer/modules/katello/manifests/params.pp' in environment production [DEBUG 2016-01-25 15:04:32 main] Automatically imported capsule from capsule into production [DEBUG 2016-01-25 15:04:32 main] Automatically imported capsule::params from capsule/params into production [DEBUG 2016-01-25 15:04:32 main] Automatically imported certs::install from certs/install into production [DEBUG 2016-01-25 15:04:32 main] Automatically imported foreman::plugin::bootdisk from foreman/plugin/bootdisk into production [DEBUG 2016-01-25 15:04:32 main] Automatically imported foreman::plugin::discovery from foreman/plugin/discovery into production [DEBUG 2016-01-25 15:04:32 main] Automatically imported foreman::plugin::discovery::params from foreman/plugin/discovery/params into produc tion [DEBUG 2016-01-25 15:04:32 main] Automatically imported foreman::plugin::hooks from foreman/plugin/hooks into production [DEBUG 2016-01-25 15:04:32 main] Automatically imported foreman::plugin::tasks from foreman/plugin/tasks into production [DEBUG 2016-01-25 15:04:32 main] Automatically imported katello::plugin::gutterball from katello/plugin/gutterball into production [DEBUG 2016-01-25 15:04:32 main] Executing '/bin/rpm --version' [DEBUG 2016-01-25 15:04:32 main] hiera(): Cannot find datafile /opt/hoici/share/hiera/hostname/li-lc-1578.hag.hilti.com.yaml, skipping [DEBUG 2016-01-25 15:04:32 main] hiera(): Cannot find datafile /opt/hoici/share/hiera/hostname/li-lc-1578.hag.hilti.com.yaml, skipping [DEBUG 2016-01-25 15:04:32 main] hiera(): Cannot find datafile /opt/hoici/share/hiera/hostname/li-lc-1578.hag.hilti.com.yaml, skipping [DEBUG 2016-01-25 15:04:32 main] hiera(): Cannot find datafile /opt/hoici/share/hiera/hostname/li-lc-1578.hag.hilti.com.yaml, skipping [DEBUG 2016-01-25 15:04:32 main] hiera(): Hiera YAML backend starting [DEBUG 2016-01-25 15:04:32 main] hiera(): Looking for data source common [DEBUG 2016-01-25 15:04:32 main] hiera(): Looking for data source common [DEBUG 2016-01-25 15:04:32 main] hiera(): Looking for data source common [DEBUG 2016-01-25 15:04:32 main] hiera(): Looking for data source common Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Create a /etc/puppet/hiera.yaml 2. Run katello-installer 3. Actual results: The hiera configuration of /etc/puppet/hiera.yaml is used Expected results: Hiera confurigation is not used Additional info: