Bug 1152715

Summary: capsule-certs-generate defaults to ACME_Organization instead of Default_Organization
Product: Red Hat Satellite Reporter: Hayley Hudgeons <hhudgeon>
Component: InstallationAssignee: Stephen Benjamin <stbenjam>
Status: CLOSED ERRATA QA Contact: Kedar Bidarkar <kbidarka>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.4CC: bbuckingham, cwelton, kbidarka, stbenjam
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
URL: http://projects.theforeman.org/issues/8261
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 05:18:04 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 Hayley Hudgeons 2014-10-14 19:05:47 UTC
Description of problem:
The capsule-certs-generate command defaults to using "ACME_Corporation" if you don't specify --org when running the command. If anything, it should default to "Default_Organization" since "ACME_Corporation" was removed prior to GA. 

Also, the output from capsule-certs-generate --help says that it defaults to "SomeOrg", but this should be changed as well. See below:

--org    Org attribute for managed certificates (default: "SomeOrg")


Version-Release number of selected component (if applicable):
katello-installer-0.0.64-1.el6sat.noarch

How reproducible:
Every time capsule-certs-generate is run with out --org

Steps to Reproduce:
1.run capsule-certs-generate without --org
2.
3.

Actual results:
capsule-certs-generate command defaults to using "ACME_Corporation" if you don't specify --org when running the command

Expected results:
 If anything, it should default to "Default_Organization" since "ACME_Corporation" was removed prior to GA. 

Additional info:

Comment 1 Hayley Hudgeons 2014-10-14 19:06:39 UTC
Related issue: https://bugzilla.redhat.com/show_bug.cgi?id=1129256

Comment 2 RHEL Program Management 2014-10-14 19:23:10 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 4 Stephen Benjamin 2014-11-04 15:13:50 UTC
Created redmine issue http://projects.theforeman.org/issues/8261 from this bug

Comment 5 Bryan Kearney 2014-12-02 15:04:26 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/8261 has been closed
-------------
Anonymous
Applied in changeset commit:katello-installer|a09d70322a301b23daae61c1e6779bef285b3f92.

Comment 8 Kedar Bidarkar 2015-02-13 10:04:44 UTC
VERIFIED With Sat6.1 Beta Snap2

AS seen below now the suggestion defaults to "Default_Organization" 

[root@xxxx ~]# capsule-certs-generate --capsule-fqdn $CAPSULE_FQDN --certs-tar ~/$CAPSULE_FQDN-certs.tar
Installing             Done                                               [100%] [..........................................................................................................]
  Success!

  To finish the installation, follow these steps:

  1. Ensure that the capsule-installer is available on the system.
     The capsule-installer comes from the katello-installer package and
     should be acquired through the means that are appropriate to your deployment.
  2. Copy /root/xxxx.redhat.com-certs.tar to the system yyyyy.redhat.com
  3. Run the following commands on the capsule (possibly with the customized
     parameters, see capsule-installer --help and
     documentation for more info on setting up additional services):

  rpm -Uvh http://xxxx.pnq.redhat.com/pub/katello-ca-consumer-latest.noarch.rpm
  subscription-manager register --org "Default_Organization"
  capsule-installer --parent-fqdn          "xxxx.redhat.com"\
                    --register-in-foreman  "true"\
                    --foreman-oauth-key    "KVJMXg237jfRiAJbu9EXCF8LRmxX88hT"\
                    --foreman-oauth-secret "NRjm5zehVHntpZrkhPwDyTBJVxmbcsSq"\
                    --pulp-oauth-secret    "pLjFXGrtG2SgivFBfW4MJAuMPB56zRD3"\
                    --certs-tar            "/root/xxxx.redhat.com-certs.tar"\
                    --puppet               "true"\
                    --puppetca             "true"\
                    --pulp                 "true"
  The full log is at /var/log/katello-installer/capsule-certs-generate.log

Comment 9 Bryan Kearney 2015-08-11 13:22:23 UTC
This bug is slated to be released with Satellite 6.1.

Comment 10 errata-xmlrpc 2015-08-12 05:18:04 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-2015:1592