Bug 1341622

Summary: capsule-certs-generate advises a user to use foreman-installer
Product: Red Hat Satellite Reporter: Lukas Pramuk <lpramuk>
Component: BrandingAssignee: Martin Bacovsky <mbacovsk>
Status: CLOSED DUPLICATE QA Contact: Lukas Pramuk <lpramuk>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-02 09:40:25 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 Lukas Pramuk 2016-06-01 11:27:50 UTC
Description of problem:


Version-Release number of selected component (if applicable):
6.2-Snap13.1

How reproducible:
always

Steps to Reproduce:
# capsule-certs-generate --capsule-fqdn <CAPSULE_FQDN> --certs-tar ~/<CAPSULE_FQDN>-certs.tar
Installing             Done                                               [100%] [....................................]
  Success!

  To finish the installation, follow these steps:

  If you do not have the smartproxy registered to the Katello instance, then please do the following:

  1. yum -y localinstall http://<SATELLITE_FQDN>/pub/katello-ca-consumer-latest.noarch.rpm
  2. subscription-manager register --org "Default_Organization"

  Once this is completed run the steps below to start the smartproxy installation:
 
  1. Ensure that the foreman-installer-katello package is installed on the system.
  2. Copy /root/<CAPSULE_FQDN>-certs.tar to the system <CAPSULE_FQDN>
  3. Run the following commands on the capsule (possibly with the customized
     parameters, see foreman-installer --scenario capsule --help and
     documentation for more info on setting up additional services):
  
  foreman-installer --scenario capsule\
                    --parent-fqdn                         "<SATELLITE_FQDN>"\
                    --register-in-foreman                 "true"\
                    --foreman-base-url                    "https://<SATELLITE_FQDN>"\
                    --trusted-hosts                       "<SATELLITE_FQDN>"\
                    --trusted-hosts                       "<CAPSULE_FQDN>"\
                    --oauth-consumer-key                  "r7bdMGraL8A6qHLH4cuKwrSxRwdDwDEp"\
                    --oauth-consumer-secret               "KAxjmFEPSFRgGFHnJB4EfoAZjVwQ9STx"\
                    --pulp-oauth-secret                   "gAuRZ7N5SuCnakb4mGheTWYtm5inWyWN"\
                    --certs-tar                           "/root/<CAPSULE_FQDN>-certs.tar"
  The full log is at /var/log/capsule-certs-generate.log


Actual results:
  foreman-installer --scenario capsule\

Expected results:
  satellite-installer --scenario capsule\


Additional info:
/usr/share/katello-installer-base/hooks/post/10-post_install.rb:63

Comment 2 Brad Buckingham 2016-06-01 17:05:55 UTC
Note: This may affect more than just this scenario.

Comment 3 Martin Bacovsky 2016-06-02 09:40:25 UTC
The same issue was reported as BZ#1335724. Fix for it should be available in Snap 14.

*** This bug has been marked as a duplicate of bug 1335724 ***