Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1434948 - --certs-regenerate-ca should also regenerate ueber certificates
--certs-regenerate-ca should also regenerate ueber certificates
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Installer (Show other bugs)
6.2.8
x86_64 Linux
medium Severity medium (vote)
: 6.2.12
: Unused
Assigned To: John Mitsch
Renzo Nuccitelli
: Triaged
Depends On:
Blocks: 1481822
  Show dependency treegraph
 
Reported: 2017-03-22 13:01 EDT by Neal Kim
Modified: 2017-09-25 14:59 EDT (History)
6 users (show)

See Also:
Fixed In Version: tfm-rubygem-katello-3.0.0.151-1, rubygem-katello-3.0.0.151-1
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1481822 (view as bug list)
Environment:
Last Closed: 2017-09-25 14:59:44 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 18987 None None None 2017-03-22 13:47 EDT
Red Hat Product Errata RHBA-2017:2803 normal SHIPPED_LIVE Satellite 6.2.12 bug fix update 2017-10-12 15:22:49 EDT

  None (edit)
Description Neal Kim 2017-03-22 13:01:21 EDT
Description of problem:

When regenerating the CA certificates on Satellite 6 the ueber certificates should also be regenerated. Otherwise, downstream Capsules will run into issues with synchronizing content.


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

satellite-installer-6.2.0.13-1.el7sat.noarch


How reproducible:

Always.


Steps to Reproduce:

1. Delete contents of /root/ssl-build and /root/ssl-build/<SAT_FQDN>
2. # satellite-installer --certs-update-all --certs-regenerate-ca --certs-regenerate
3. Generate and install new certificate bundle for Capsules
4. Observe that Capsule content synchronization fails

nectar.downloaders.threaded:ERROR: Skipping requests to <SAT_FQDN> due to repeated connection failures: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:579)


Actual results:

- ueber certificate is still based off of old CA
- Capsule content synchronization fails

Expected results:

- ueber certificate has been refreshed against the new CA
- Capsule content synchronization is successful


Additional info:

Can be worked around by manually deleting the old ueber certificates in Candlepin.

Perhaps the installer can run this rake task in upstream that regenerates the ueber certificates:

http://projects.theforeman.org/issues/18403
Comment 1 John Mitsch 2017-03-22 13:47:26 EDT
Created redmine issue http://projects.theforeman.org/issues/18987 from this bug
Comment 3 pm-sat@redhat.com 2017-05-02 16:05:57 EDT
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/18987 has been resolved.
Comment 6 John Mitsch 2017-08-29 14:50:56 EDT
Renzo,

The change made was to verify the ueber cert is still valid on a capsule sync. https://github.com/Katello/katello/pull/6728

Here is what I would do to validate:

- install capsule
- satellite-installer --certs-update-all --certs-regenerate-ca --certs-regenerate
  on the main Satellite
- verify that the CA has changed
- generate new capsule certs
- reinstall capsule
- verify you can resync capsule

If this doesn't work, there is also a task to regenerate the ueber certs - foreman-rake katello:regenerate_ueber_certs to get around this issue.

Let me know if you have any questions
Comment 7 Renzo Nuccitelli 2017-08-31 10:07:39 EDT
Synchronization worked after certs regeneration on version 6.2.12. Moving this BZ to VERIFIED.
Comment 9 errata-xmlrpc 2017-09-25 14:59:44 EDT
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/RHBA-2017:2803

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