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 1358935 - katello-certs-check should print absolute paths to certificates
Summary: katello-certs-check should print absolute paths to certificates
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: jcallaha
QA Contact: Peter Ondrejka
URL:
Whiteboard:
: 1461782 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-07-21 20:05 UTC by jcallaha
Modified: 2020-07-16 08:49 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 16:44:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 15775 0 Normal Closed katello-certs-check should print absolute paths to certificates 2020-09-09 15:47:36 UTC

Description jcallaha 2016-07-21 20:05:01 UTC
Description of problem:
The script currently outputs installer suggestions. However, it will use whatever relative path the user passes in as an argument. This caused an error during an upgrade from 6.1.9 to 6.2.
"rhsm-qe-3.rhq.lab.eng.bos.redhat.com.crt" is not an absolute path. at /usr/share/katello-installer-base/modules/certs/manifests/init.pp:115 on node rhsm-qe-3.rhq.lab.eng.bos.redhat.com

How reproducible:
Always

Steps to Reproduce:
1. run the katello-certs-check script while passing in relative paths to the cert files.

Actual results:
    katello-installer --certs-server-cert "rhsm-qe-3.rhq.lab.eng.bos.redhat.com.crt"\
                      --certs-server-cert-req "rhsm-qe-3.rhq.lab.eng.bos.redhat.com.crt.req"\
                      --certs-server-key "rhsm-qe-3.rhq.lab.eng.bos.redhat.com.key"\
                      --certs-server-ca-cert "cacert.crt"\
                      --certs-update-server --certs-update-server-ca


Expected results:
    satellite-installer --scenario satellite\
                        --certs-server-cert "/root/sat_cert/rhsm-qe-3.rhq.lab.eng.bos.redhat.com.crt"\
                        --certs-server-cert-req "/root/sat_cert/rhsm-qe-3.rhq.lab.eng.bos.redhat.com.crt.req"\
                        --certs-server-key "/root/sat_cert/rhsm-qe-3.rhq.lab.eng.bos.redhat.com.key"\
                        --certs-server-ca-cert "/root/sat_cert/cacert.crt"

Comment 2 Bryan Kearney 2016-10-03 17:27:22 UTC
Connecting redmine issue http://projects.theforeman.org/issues/15775 from this bug

Comment 3 Bryan Kearney 2016-10-03 17:27:26 UTC
Connecting redmine issue http://projects.theforeman.org/issues/15775 from this bug

Comment 5 Peter Ondrejka 2016-11-22 14:10:35 UTC
Verified on Satellite 6.3 snap 6, katello-certs-check now suggests absolute paths as expected

Comment 6 jcallaha 2017-06-20 19:38:44 UTC
*** Bug 1461782 has been marked as a duplicate of this bug. ***

Comment 7 Bryan Kearney 2018-02-21 16:41:34 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, 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

Comment 8 Bryan Kearney 2018-02-21 16:44:59 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, 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

Comment 9 Satellite Program 2018-02-21 16:49:54 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, 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


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