Bug 895447
Summary: | the count of subscriptions removed is zero,for the certs that have been imported | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Shwetha Kallesh <skallesh> | ||||
Component: | subscription-manager | Assignee: | William Poteat <wpoteat> | ||||
Status: | CLOSED ERRATA | QA Contact: | IDM QE LIST <seceng-idm-qe-list> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 5.10 | CC: | bkearney, jgalipea, jmolet, jsefler, skallesh, spandey, wpoteat | ||||
Target Milestone: | beta | ||||||
Target Release: | 5.10 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | 1.8.2 | Doc Type: | Bug Fix | ||||
Doc Text: |
No description necessary
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2013-09-30 22:54:33 UTC | Type: | Bug | ||||
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: | 840995, 920191 | ||||||
Attachments: |
|
Description
Shwetha Kallesh
2013-01-15 09:01:28 UTC
Created attachment 678707 [details]
Remove the imported cert
Unsubscribing in GUI displays the dialogue seen in the attachment
[root@rhel6 ~]# subscription-manager import --cert /root/certv3.pem Successfully imported certificate certv3.pem [root@rhel6 ~]# subscription-manager list --consumed +-------------------------------------------+ Consumed Subscriptions +-------------------------------------------+ Subscription Name: Awesome OS Modifier Provides: Awesome OS Modifier Bits SKU: awesomeos-modifier Contract: 0 Account: 12331131231 Serial Number: 1358516984651176517 Active: True Quantity Used: 1 Service Level: Service Type: Starts: 01/15/2013 Ends: 01/15/2014 [root@rhel6 ~]# subscription-manager remove --serial 1358516984651176517 Unsuccessfully removed serial numbers: Entitlement Certificate with serial number 1358516984651176517 could not be found. [root@rhel6 ~]# subscription-manager list --consumed No consumed subscription pools to list This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux. Fixed in the 1.8.2 version of subscription-manager or python-rhsm Moving back to new,count is still zero. [root@rhel7 ~]# cd /etc/pki/entitlement/ [root@rhel7 entitlement]# cat 454527879323979.pem >> /root/cert.pem [root@rhel7 entitlement]# cat 454527879323979-key.pem >> /root/cert.pem [root@rhel7 entitlement]# subscription-manager remove --all 1 subscription removed from this system. Any local-only certificates have been deleted. [root@rhel7 entitlement]# subscription-manager import --cert /root/cert.pem Successfully imported certificate cert.pem [root@rhel7 entitlement]# subscription-manager remove --all 0 subscriptions removed from this system. Any local-only certificates have been deleted. Version: [root@rhel7 entitlement]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 0.7.24-1 subscription-manager: 1.8.2-1.el7 python-rhsm: 1.8.2-1.el7 master commit 580bd54165ead7ddf061d0d73dde1c8df9facfca The counts are show as per what is deleted locally and what is deleted at the server. Verifying version: [root@rhel7 ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 0.7.25-1 subscription-manager: 1.8.4-1.el7 python-rhsm: 1.8.7-1.el7 [root@rhel7 ~]# subscription-manager remove --all 0 subscriptions removed at the server. [root@rhel7 ~]# subscription-manager import --cert /root/cert.pem Successfully imported certificate cert.pem [root@rhel7 ~]# subscription-manager list --consumed +-------------------------------------------+ Consumed Subscriptions +-------------------------------------------+ Subscription Name: RAM/Sockets Package (8GB) Provides: RAM Limiting Product SKU: ram-sockets-8gb Contract: 139 Account: 12331131231 Serial Number: 454527879323979 Pool ID: Not Available Active: True Quantity Used: 1 Service Level: Service Type: Starts: 02/11/2013 Ends: 02/11/2014 [root@rhel7 ~]# subscription-manager remove --all 0 subscriptions removed at the server. 1 local certificate has been deleted This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release. 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-2013-1332.html |