Warum gibt der Befehl 'subscription-manager list' "No Installed Products found" wieder?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 5.7 und neuere Versionen
  • Red Hat Subscription Management (RHSM)
  • Red Hat Subscription-Manager

Issue

  • Warum gibt der Befehl 'subscription-manager list' "No Installed Products found" wieder?
  • Wie bekomme ich 69.pem, wenn es fehlt?
  • subscription-manager list --consumed zeigt eine valide Subskription an, aber der Befehl subscription-manager list führt zur Meldung "No installed products to list"
  • der Befehl yum repolist listet keine Repository-Informationen auf.
[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

  • die Produktzertifikate sind x509-Dateien, die auf Client-Maschinen liegen und von Tools verwendet werden, um zu überprüfen, welche Produkte installiert sind.

Bitte hinterlegen Sie das Produktzertifikat in dem Ordner /etc/pki/product/ und stellen Sie sicher, dass die Berechtigungen und Zugriffsrechte der Datei (644) und "root" (root:root) sind.

Root Cause

  • Die Produktzertifikat-pem-Datei fehlt im Verzeichnis /etc/pki/product/.

Diagnostic Steps

  • Erstellen Sie einen sosreport des Systems.
  • Überprüfen Sie die Produktzertifikat-Information, die im Verzeichnis /etc/pki/product hinterlegt ist.
  • Aktivieren Sie das Repository und suchen Sie nach dem Fehler
# subscription-manager repos --enable=REPO_ID
REPO ID does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories
  • Überprüfen Sie die Logs für subscription-manager, welche zeigen, dass keine Produkte in /var/log/rhsm/rhsm.log aktualisiert wurden.
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.