Why does subscription-manager list return: "No Installed Products found" ?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 5.7 and onwards
  • Red Hat Subscription Management (RHSM)
  • Red Hat Subscription-Manager

Issue

  • Why does command 'subscription-manager list return: No Installed Products found`?
  • How to get 69.pem if it is missing?
  • subscription-manager list --consumed shows a valid subscription but subscription-manager list command shows "No installed products to list"
  • yum repolist command returns no repository information.
[root@example ~]#  yum -v repolist
Not loading "rhnplugin" plugin, as it is disabled
Loading "product-id" plugin
Loading "security" plugin
Loading "subscription-manager" plugin
Updating certificate-based repositories.
Config time: 1.008
Yum Version: 3.2.29
Setting up Package Sacks
repolist: 0                     <===
[root@example ~]#  subscription-manager list
No installed products to list
[root@example ~]#  subscription-manager repos
This system has no repositories available through subscriptions.

Resolution

  • Product certificates are x509 files that are placed on client machines and used by tooling to identify which products are installed.

Place product certificate in /etc/pki/product directory with 644 and user and group ownership as a root (root:root).

Root Cause

  • Product certificate pem file is missing from /etc/pki/product/ directory.

Diagnostic Steps

  • Collect sosreport of the system.
  • Verify the product certificate information stored in /etc/pki/product directory.
  • Enable the repository and check for error.
# subscription-manager repos --enable=REPO_ID
REPO ID does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories
  • Review the logs for Subscription-Manager, which shows that no products are updated at /var/log/rhsm/rhsm.log
2013-09-04 16:33:35,721 [DEBUG]  @profile.py:95 - Loading current RPM profile.
2013-09-04 16:33:35,783 [INFO]  @connection.py:538 - Using certificate authentication: key = /etc/pki/consumer/key.pem, cert = /etc/pki/consumer/cert.pem, ca = /etc/rhsm/ca/, insecure = False
2013-09-04 16:33:35,783 [INFO]  @connection.py:549 - Connection Built: host: subscription.rhn.redhat.com, port: 443, handler: /subscription
2013-09-04 16:33:35,991 [DEBUG]  @cert_sorter.py:116 - Sorting product and entitlement cert status for: 2013-09-04 16:33:35.991899+00:00
2013-09-04 16:33:35,992 [DEBUG]  @cert_sorter.py:169 - Installed product IDs: []
2013-09-04 16:33:35,994 [DEBUG]  @cert_sorter.py:185 - Checking certificate: 1456352708107124720
2013-09-04 16:33:35,994 [DEBUG]  @cert_sorter.py:122 - valid entitled products: []
2013-09-04 16:33:35,994 [DEBUG]  @cert_sorter.py:123 - expired entitled products: []
2013-09-04 16:33:35,994 [DEBUG]  @cert_sorter.py:124 - partially entitled products: []
2013-09-04 16:33:35,995 [DEBUG]  @cert_sorter.py:125 - unentitled products: []
2013-09-04 16:33:35,995 [DEBUG]  @cert_sorter.py:126 - future products: []
2013-09-04 16:33:35,995 [DEBUG]  @cert_sorter.py:127 - partial stacks: []
2013-09-04 16:33:35,995 [DEBUG]  @cert_sorter.py:128 - valid stacks: []
2013-09-04 16:33:35,998 [DEBUG]  @connection.py:360 - Loading CA PEM certificates from: /etc/rhsm/ca/
2013-09-04 16:33:35,998 [DEBUG]  @connection.py:342 - Loading CA certificate: '/etc/rhsm/ca/redhat-uep.pem'
2013-09-04 16:33:35,999 [DEBUG]  @connection.py:342 - Loading CA certificate: '/etc/rhsm/ca/candlepin-stage.pem'
2013-09-04 16:33:35,999 [DEBUG]  @connection.py:366 - Using proxy: server.example.com:80
2013-09-04 16:33:35,999 [DEBUG]  @connection.py:381 - Making request: GET https://subscription.rhn.redhat.com:443/subscription/consumers/b92d3659e-5024-4b56-9c7a-8dc281088c22/certificates/serials
2013-09-04 16:33:37,142 [DEBUG]  @connection.py:394 - Response status: 200
2013-09-04 16:33:37,143 [INFO]  @certlib.py:225 - certs updated:
Total updates: 0
Found (local) serial# [2456322608907124720L]
Expected (UEP) serial# [2456322603907424720]
Added (new)
  <NONE>
Deleted (rogue):
  <NONE>
Expired (deleted):
  <NONE>

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.