Bug 734606
Summary: | subscription-manager import appears successful, but does not list --consumed | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | John Sefler <jsefler> |
Component: | subscription-manager | Assignee: | Michael Stead <mstead> |
Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.2 | CC: | mstead |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-12-06 17:23:48 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 682238, 743047 |
Description
John Sefler
2011-08-30 21:43:50 UTC
Fixed in master branch (3236ce3f2561e306886ff80963a4ddb3bbdb6950) Now checks the serial number of the cert and renames the file in the following formats: <s/n>.pem <s/n>-key.pem Verifying Version... [root@jsefler-onprem-62server ~]# rpm -q subscription-manager subscription-manager-0.96.9-1.git.4.3236ce3.el6.x86_64 [root@jsefler-onprem-62server ~]# subscription-manager clean All local data removed [root@jsefler-onprem-62server ~]# subscription-manager list --consumed No Consumed subscription pools to list [root@jsefler-onprem-62server ~]# subscription-manager import --certificate /tmp/importCertificatesDir/myExportedEntitlement.pem Successfully imported certificate myExportedEntitlement.pem [root@jsefler-onprem-62server ~]# ls /etc/pki/entitlement/ 4249612904057333274-key.pem 4249612904057333274.pem [root@jsefler-onprem-62server ~]# subscription-manager list --consumed +-------------------------------------------+ Consumed Product Subscriptions +-------------------------------------------+ ProductName: Awesome OS for i686/x86_64 Bits ContractNumber: 44 AccountNumber: 12331131231 SerialNumber: 4249612904057333274 Active: True QuantityUsed: 1 Begins: 07/29/2011 Expires: 09/28/2012 ^^^ VERIFIED THAT AN IMPORT OF A VALID CERTIFICATE BUNDLE THAT WAS RENAMED BY THE USER (myExportedEntitlement.pem) WAS TRUELY IMPORTED SUCCESSFULLY BY SUBSCRIPTION-MANGER. LET'S TRY AGAIN WITH (anotherExportedEntitlement)... [root@jsefler-onprem-62server ~]# subscription-manager import --certificate /tmp/importCertificatesDir/anotherExportedEntitlement Successfully imported certificate anotherExportedEntitlement [root@jsefler-onprem-62server ~]# ls /etc/pki/entitlement/ 4249612904057333274-key.pem 4249612904057333274.pem 8122730699557767282-key.pem 8122730699557767282.pem [root@jsefler-onprem-62server ~]# subscription-manager list --consumed +-------------------------------------------+ Consumed Product Subscriptions +-------------------------------------------+ ProductName: Awesome OS for i686/x86_64 Bits ContractNumber: 44 AccountNumber: 12331131231 SerialNumber: 4249612904057333274 Active: True QuantityUsed: 1 Begins: 07/29/2011 Expires: 09/28/2012 ProductName: Management Bits ContractNumber: 18 AccountNumber: 12331131231 SerialNumber: 8122730699557767282 Active: True QuantityUsed: 1 Begins: 07/29/2011 Expires: 09/28/2012 ^^^ VERIFIED THE RENAMED CERTIFICATE WAS TRUELY IMPORTED SUCCESSFULLY BY SUBSCRIPTION-MANGER. Moving to VERIFIED 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. http://rhn.redhat.com/errata/RHBA-2011-1695.html |