Bug 1563113 - [PATCH] 'rhui-manager cert upload' command does not update client cert and key of each RPM repos
Summary: [PATCH] 'rhui-manager cert upload' command does not update client cert and ke...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Update Infrastructure for Cloud Providers
Classification: Red Hat
Component: RHUA
Version: 3.0.0
Hardware: All
OS: Linux
unspecified
high
Target Milestone: 3.0.3
: ---
Assignee: RHUI Bug List
QA Contact: Vratislav Hutsky
URL:
Whiteboard:
: 1563045 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-04-03 07:34 UTC by Satoru SATOH
Modified: 2021-09-09 13:35 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-05-16 12:48:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:1569 0 None None None 2018-05-16 12:48:56 UTC

Description Satoru SATOH 2018-04-03 07:34:45 UTC
Description of problem:
Current implementation of 'rhui-manager cert upload' and corresponding interactive command of rhui-manager (home -> [n] -> [u] ...) look broken due to incompatibilities in rebased version of pulp RHUI v3 using and cannot update all of necessary certs correctly.

It's my understanding that these commands only update the cert in /etc/pki/rhui/redhat/ and does not update client cert and key of each Red Hat RPM repos saved in /var/lib/rhui/remote_share/<repo_id>_yum_importer/pki/. As a result, each repos' importer will fail to sync contents from the Red Hat CDN after updating the (content) cert.

Version-Release number of selected component (if applicable): rh-rhui-tools-libs-3.0.1-3.el7ui

How reproducible: Always, I think.

Steps to Reproduce:
1. Update the RHUI entitlement (content) cert with using 'rhui-manager cert upload' command or its interactive shell command
2. Check the timestamp of /etc/pki/rhui/redhat/*.pem and /var/lib/rhui/remote_share/<repo_id>_yum_importer/pki/client{.cert,key}, and/or try to sync some of repos.

Actual results: Client certs of each repo importers are not updated and it fails to sync repos.

Expected results: Client certs of each repo importers are updated along with the master cert in /etc/pki/rhui/redhat/, and it succeeds to sync repos.

Additional info:
I'll attach a couple of experimental patches taking a little bit different approaches should resolve this issue.

Comment 5 kfujii 2018-04-03 08:43:29 UTC
*** Bug 1563045 has been marked as a duplicate of this bug. ***

Comment 10 errata-xmlrpc 2018-05-16 12:48:53 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/RHBA-2018:1569


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