Bug 2033381

Summary: Remove the space at the end of foreman-proxy-certs-generate printed installer cmd
Product: Red Hat Satellite Reporter: Ganesh Payelkar <gpayelka>
Component: InstallationAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Gaurav Talreja <gtalreja>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.10.0CC: ehelms, gtalreja, zhunting
Target Milestone: 6.12.0Keywords: EasyFix, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-16 13:33:03 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 Ganesh Payelkar 2021-12-16 16:10:58 UTC
Description of problem:

Remove the space at the end of foreman-proxy-certs-generate printed installer cmd

Version-Release number of selected component (if applicable):
satellite-6.8.6-1.el7sat.noarch

How reproducible:
When creating certs through capsule-certs-generate

Steps to Reproduce:
1. To install the external capsule 
2. Generate certs through capsule-certs-generate
3. Copy the installer cmd

Actual results: 

# capsule-certs-generate --foreman-proxy-fqdn capsule.example.com --certs-tar /root/capsule_cert/capsule_certs.tar
Preparing installation Done                                              
  Success!

satellite-installer \
--scenario capsule \  <-------  Here, it's a space before a backslash ("\")
--certs-tar-file                              "/root/capsule_cert/capsule_certs.tar"\   <----- Look at here!
--foreman-proxy-content-parent-fqdn           "satellite.example.com"\  <------ Look at here!
--foreman-proxy-register-in-foreman           "true"\  <------ Look at here!                


Expected results:

Remove the extra space from the first 2 lines. 

Additional info:

he generated a "satellite-installer" command that contains minor errors that might be confusing for a user - to break lines a "\" is used but there is no space between the "\" and the actual end of the line.

Comment 2 Gaurav Talreja 2022-08-22 14:21:48 UTC
Verified.

Tested on Satellite 6.12.0 Snap 7.0
Version: foreman-installer-3.3.0-1.el8sat.noarch

Steps:  
1. # capsule-certs-generate --foreman-proxy-fqdn $CAPSULE_FQDN --certs-tar ~/$CAPSULE_FQDN-certs.tar

Observation:
No trailing/extra space present in stdout when running a capsule-certs-generate command.

Comment 6 errata-xmlrpc 2022-11-16 13:33:03 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.12 Release), 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-2022:8506

Comment 7 Red Hat Bugzilla 2023-09-18 04:29:26 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days