Bug 1766919

Summary: satellite-change-hostname fails with error "illegal option -- r".
Product: Red Hat Satellite Reporter: Suraj Patil <supatil>
Component: satellite-change-hostnameAssignee: Chris Roberts <chrobert>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: chrobert, jomitsch, mmccune, pcreech, vdeshpan, vmeghana
Target Milestone: 6.7.0Keywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
URL: https://projects.theforeman.org/issues/28158
Whiteboard:
Fixed In Version: katello-3.14.0-0.4.rc1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1791501 (view as bug list) Environment:
Last Closed: 2020-04-14 13:26:02 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 Suraj Patil 2019-10-30 09:45:50 UTC
Description of problem:
Satellite-hostname-change fails with the below error -
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
satellite-change-hostname <newhostname> --username admin --password <adminpassword> -c "new_satellite.crt" -k "new_satellite.key" -r "new_satellite.csr"

Checking custom certificates
/usr/sbin/katello-certs-check: illegal option -- r
Verifies, that the custom SSL certificate files are usable
as part of the Red Hat Satellite installation. When passing filenames use absolute paths.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

How reproducible:
Try to change the hostname of the satellite server using satellite-change-hostname

Comment 4 Bryan Kearney 2019-11-05 20:32:31 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/28158 has been resolved.

Comment 6 Peter Ondrejka 2020-01-03 16:16:15 UTC
Verified on sat 6.7 snap 7

Comment 9 errata-xmlrpc 2020-04-14 13:26:02 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-2020:1454