Bug 1325389 - function 'l' list Red Hat content certificate entitlements doesn't check if the cert file exists
Summary: function 'l' list Red Hat content certificate entitlements doesn't check if...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Update Infrastructure for Cloud Providers
Classification: Red Hat
Component: Tools
Version: 3.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.0.0
Assignee: RHUI Bug List
QA Contact: Irina Gulina
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-08 16:29 UTC by Irina Gulina
Modified: 2017-03-01 22:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-01 22:11:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0367 0 normal SHIPPED_LIVE Red Hat Update Infrastructure 3.0 Release 2017-03-02 03:05:22 UTC

Description Irina Gulina 2016-04-08 16:29:04 UTC
Description of problem:

function 'l' -  list Red Hat content certificate entitlements doesn't check if the cert file exists


Version-Release number of selected component (if applicable):
>> rpm -qa *rhui*
rhui-installer-base-0.0.24-1.el7ui.noarch
rh-rhui-tools-libs-pre.3.0.16-1.el7ui.noarch
rhui-installer-0.0.24-1.el7ui.noarch
rh-rhui-tools-pre.3.0.16-1.el7ui.noarch
rhui-default-ca-1.0-1.noarch
rh-amazon-rhui-client-2.2.118-1.el7.noarch
rh-amazon-rhui-client-rhs30-2.2.124-1.el7.noarch

RHUI iso 20151013

How reproducible:
always

Steps to Reproduce:
1. Upload the RH content certificate 
2. List the RH content certificate to ensure it's there
3. remove this file from /etc/pki/rhui/redhat
4. List the RH content certificate, it still will be shown

Actual results:

>> rhui (entitlements) => u
 
 
Full path to the new content certificate:
/root/8a85f98146a087b80146afacb3362499.pem
 
The RHUI will be updated with the following certificate:
  /root/8a85f98146a087b80146afacb3362499.pem
 
Proceed? (y/n) y
 
 
Red Hat Entitlements
 
  Valid
    JBoss Enterprise Application Platform 5 (for RHEL 6 Server) (Debug RPMs) from RHUI
    Expiration: 01-01-2022     Certificate: 8a85f98146a087b80146afacb3362499.pem
 
    JBoss Enterprise Application Platform 5 (for RHEL 6 Server) (RPMs) from RHUI
    Expiration: 01-01-2022     Certificate: 8a85f98146a087b80146afacb3362499.pem
 
    JBoss Enterprise Application Platform 5 (for RHEL 6 Server) (Source RPMs) from RHUI
    Expiration: 01-01-2022     Certificate: 8a85f98146a087b80146afacb3362499.pem
 
    JBoss Enterprise Application Platform 6 (for RHEL 6 Server) (Debug RPMs) from RHUI
    Expiration: 01-01-2022     Certificate: 8a85f98146a087b80146afacb3362499.pem
 
    JBoss Enterprise Application Platform 6 (for RHEL 6 Server) (RPMs) from RHUI
    Expiration: 01-01-2022     Certificate: 8a85f98146a087b80146afacb3362499.pem
 
    JBoss Enterprise Application Platform 6 (for RHEL 6 Server) (Source RPMs) from RHUI
    Expiration: 01-01-2022     Certificate: 8a85f98146a087b80146afacb3362499.pem
 
    JBoss Enterprise Web Server 1 (for RHEL 6 Server) (Debug RPMs) from RHUI
    Expiration: 01-01-2022     Certificate: 8a85f98146a087b80146afacb3362499.pem
 
 
ls -la  /etc/pki/rhui/redhat/
total 20
drwxr-xr-x. 2 root root      49 Apr  7 03:43 .
drwxr-xr-x. 7 root apache  4096 Mar 17 06:37 ..
-rw-rw-r--. 1 root root   13219 Apr  7 03:43 8a85f98146a087b80146afacb3362499.pem
 
 
>> rm -rf /etc/pki/rhui/redhat/*.pem
 
>> ls -la  /etc/pki/rhui/redhat/
total 4
drwxr-xr-x. 2 root root      6 Apr  7 03:44 .
drwxr-xr-x. 7 root apache 4096 Mar 17 06:37 ..
 
However if list the cert rhui-manager still display them:
 
>> -----------------------------------------------------------------------------
rhui (entitlements) => l  
 
Red Hat Entitlements
 
  Valid
    JBoss Enterprise Application Platform 5 (for RHEL 6 Server) (Debug RPMs) from RHUI
    Expiration: 01-01-2022     Certificate: 8a85f98146a087b80146afacb3362499.pem
 
    JBoss Enterprise Application Platform 5 (for RHEL 6 Server) (RPMs) from RHUI
    Expiration: 01-01-2022     Certificate: 8a85f98146a087b80146afacb3362499.pem
 
    JBoss Enterprise Application Platfor
 
....

Expected results:
A message:   No Red Hat entitlements found.

Additional information:
If to restart pulp before step #4, there is no this issue and I see a message "No Red Hat entitlements found."

Comment 4 Irina Gulina 2016-10-26 10:26:41 UTC
on RHEL6 and 7 ISO's 20161025, if list the cert(s) right after removing all from /etc/pki/rhui/redhat/, the message "No Red Hat entitlements found." is displayed.


....
    Red Hat Update Infrastructure 2.0 (SRPMS)
    Expiration: 12-14-2024     Certificate: good_rhui_cert.pem


------------------------------------------------------------------------------
rhui (entitlements) => l

Red Hat Entitlements

  No Red Hat entitlements found.

Comment 5 errata-xmlrpc 2017-03-01 22:11:55 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-2017:0367


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