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 1899322 - Check for verifying syntax "/etc/foreman-installer/custom-hiera.yaml" file in foreman-maintain upgrade check command failed with misguiding error "Check if checkpoint_segments configuration exists on the system"
Summary: Check for verifying syntax "/etc/foreman-installer/custom-hiera.yaml" file in...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Satellite Maintain
Version: 6.7.0
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: 6.8.2
Assignee: Suraj Patil
QA Contact: Jameer Pathan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-18 21:15 UTC by James Jeffers
Modified: 2023-12-15 20:07 UTC (History)
6 users (show)

Fixed In Version: rubygem-foreman_maintain-0.6.14
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1894149
Environment:
Last Closed: 2020-12-15 13:19:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 31253 0 Normal Closed Check for verifying syntax "/etc/foreman-installer/custom-hiera.yaml" file in foreman-maintain upgrade check command fai... 2020-12-17 11:09:58 UTC
Github SatelliteQE testfm pull 266 0 None Merged Add manual tests and test scenario for BZ-1894149 2022-03-07 10:09:59 UTC
Red Hat Knowledge Base (Solution) 5549891 0 None None None 2020-11-18 21:15:36 UTC
Red Hat Product Errata RHBA-2020:5466 0 None None None 2020-12-15 13:19:41 UTC

Description James Jeffers 2020-11-18 21:15:20 UTC
+++ This bug was initially created as a clone of Bug #1894149 +++

Description of problem:
Upgrading from 6.7 with /etc/foreman-installer/custom-hiera.yaml :

~~~~~~~~~~~~~~~~~
s YAML file lets you set your own custom configuration in Hiera for the             <=============================================
# installer puppet modules that might not be exposed to users directly through
# installer arguments.
~~~~~~~~~~~~~~~~~


Version-Release number of selected component (if applicable):
satellite-6.8.0-0.7.beta.el7sat.noarch
satellite-installer-6.8.0.8-1.el7sat.noarch


How reproducible:
100% 


Steps to Reproduce:
1. Have syntax issue in Sat 6.7 with /etc/foreman-installer/custom-hiera.yaml :
~~~~~~~~~~~~~~~
s YAML file lets you set your own custom configuration in Hiera for the             <=============================================
# installer puppet modules that might not be exposed to users directly through
# installer arguments.

~~~~~~~~~~~~~~~

2. Run upgrade to 6.8


Actual results:
2. is supposed to fail with below misguiding error to another Bug

~~~~~~~~~~~~~~~~
Check if checkpoint_segments configuration exists on the system:      [FAIL]
undefined method `key?' for #<String:0x0000000139c960>

~~~~~~~~~~~~~~~~~

Expected results:
1.) Foreman-maintain command should check for syntax issue in /etc/foreman-installer/custom-hiera.yaml should show error related to syntax and not to any other misguiding error


Additional info:

--- Additional comment from  on 2020-11-04T08:10:17Z 

Created redmine issue https://projects.theforeman.org/issues/31253 from this bug

Comment 2 Bryan Kearney 2020-11-25 12:03:46 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/31253 has been resolved.

Comment 3 Jameer Pathan 2020-11-30 09:28:24 UTC
Verified

Verified with:
- Satelllite 6.8.2 snap 1
- rubygem-foreman_maintain-0.6.14-1.el7sat.noarch

Test steps:
- Have an invalid /etc/foreman-installer/custom-hiera.yaml file
- Run "foreman-maintain health check --label check-postgresql-checkpoint-segments"

Observations:
-  If /etc/foreman-installer/custom-hiera.yaml is not valid yaml then the check gives proper error message.

Running ForemanMaintain::Scenario::FilteredScenario
================================================================================
Check if checkpoint_segments configuration exists on the system:      [FAIL]
Error: File /etc/foreman-installer/custom-hiera.yaml is not a yaml file.
--------------------------------------------------------------------------------
Scenario [ForemanMaintain::Scenario::FilteredScenario] failed.

Comment 6 errata-xmlrpc 2020-12-15 13:19:40 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 (Satellite Maintenance 6.8.2 Async Bug Fix Update), 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/RHBA-2020:5466


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