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."
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.
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