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 2165107 - Unclear error message with empty --certs-state
Summary: Unclear error message with empty --certs-state
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.13.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.14.0
Assignee: Eric Helms
QA Contact: Radek Mynar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-27 17:36 UTC by Radek Mynar
Modified: 2023-11-08 14:18 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-08 14:18:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github theforeman puppet-katello pull 460 0 None open Allow but filter out empty strings in build_dn 2023-02-01 14:35:08 UTC
Red Hat Issue Tracker SAT-17439 0 None None None 2023-05-25 12:54:42 UTC
Red Hat Product Errata RHSA-2023:6818 0 None None None 2023-11-08 14:18:45 UTC

Description Radek Mynar 2023-01-27 17:36:19 UTC
Description of problem:
When creating new certificates using satellite-installer and passing empty "state" parameter an Evaluation Error is shown

Version-Release number of selected component (if applicable):
-

How reproducible:
always

Steps to Reproduce:
a)
1. satellite-installer --certs-regenerate true --certs-update-all --certs-update-server --certs-update-server-ca --certs-org-unit "FooOrg"  --certs-state ""
b)
1. edit /etc/foreman-installer/scenarios.d/satellite-answers.yaml and set certs -> state: ''   
2. satellite-installer --certs-regenerate true --certs-update-all --certs-update-server --certs-update-server-ca

Actual results:
satellite-installer fails with following error
<timestamp> [ERROR ] [configure] Evaluation Error: Error while evaluating a Function Call, 'katello::build_dn' parameter 'options' index 3 index 1 expects a value of type Undef or String[1], got String (file: /usr/share/foreman-installer/modules/katello/manifests/application.pp, line: 40, column: 24) on node <node-fqdn>

Expected results:
Reasonable error should be shown.

Additional info:
After fix (if this gets fixed) the installer should never cause inconsistency between certificates and config files - 'hammer ping' should pass (see bug 1964037)

Comment 1 Brad Buckingham 2023-01-30 14:14:28 UTC
Is this a regression from prior release?

Thanks!

Comment 2 Radek Mynar 2023-01-31 12:52:39 UTC
This was most probably introduced after fix of bug 1964037, so I suppose it is a regression.

Comment 3 Radek Mynar 2023-06-07 12:06:36 UTC
I tested various combinations (empty string/valid string) of state and org_unit. There was no error message. No combination led to failing 'hammer ping'.

VERIFIED with Satellite 6.14 SNAP2.0 @RHEL8.8

Comment 6 errata-xmlrpc 2023-11-08 14:18:18 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.14 security and 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/RHSA-2023:6818


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