Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionShwetha Kallesh
2014-09-12 09:29:34 UTC
Description of problem:
Subscription-manager-gui doesnot remove the imported certificate
Version-Release number of selected component (if applicable):
[root@shwethaws ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 0.9.26-1
subscription management rules: 5.11
subscription-manager: 1.12.14-5.el6
python-rhsm: 1.12.5-2.el6
How reproducible:
Steps to Reproduce:
1.register the client to candlepin
2.attach a subscription
3.cat /etc/pki/entitlement/<cert>.pem >> /root/cert.pem
4.cat /etc/pki/entitlement/<key>.pem >> /root/cert.pem
5.subscription-manager clean
6.subscription-manager-gui
7.click on system link on gui and select import certificate
8.import the cert created as above
9.go to mysubscriptions tab try to remove the imported cert
Actual results:
Cert is not removed
Expected results:
cert should be removed locally as it happens in cli
Additional info:
Same process on cli:
[root@shwethaws ~]# cat /etc/pki/entitlement/2248460627664321668.pem >> /root/cert.pem
[root@shwethaws ~]# cat /etc/pki/entitlement/2248460627664321668
2248460627664321668-key.pem 2248460627664321668.pem
[root@shwethaws ~]# cat /etc/pki/entitlement/2248460627664321668-key.pem >> /root/cert.pem
[root@shwethaws ~]# subscription-manager clean
All local data removed
[root@shwethaws ~]# subscription-manager import --cert /root/cert.pem
Successfully imported certificate cert.pem
[root@shwethaws ~]# subscription-manager list --consumed
+-------------------------------------------+
Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Red Hat Employee Subscription
Provides: Oracle Java (for RHEL Server)
Red Hat Enterprise Linux Load Balancer (for RHEL Server)
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux High Availability (for RHEL Server)
Red Hat Enterprise Linux Resilient Storage (for RHEL Server)
SKU: SYS0395
Contract: 2596950
Account: 477931
Serial: 2248460627664321668
Pool ID: 8a85f9843affb61f013b19cbdd555ea0
Active: True
Quantity Used: 1
Service Level: None
Service Type: Self-Support
Status Details:
Subscription Type:
Starts: 10/08/2011
Ends: 01/01/2022
System Type: Physical
You have mail in /var/spool/mail/root
[root@shwethaws ~]# subscription-manager remove --all
1 subscriptions removed from this system.
[root@shwethaws ~]# subscription-manager list --consumed
No consumed subscription pools to list
commit b0d32012a56604f3c4062bb8d62d40803ae54ed5
Author: William Poteat <wpoteat>
Date: Thu Aug 13 15:07:49 2015 -0400
1141128: Clean up and correct for style
Created attachment 1063644[details]
Cert sucessfully imported
Marking verified as imported cert feature in the Mysubscriptions list
[root@dhcp35-236 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 2.0.6-1
subscription management rules: 5.16
subscription-manager: 1.15.9-6.el7
python-rhsm: 1.15.4-3.el7
Please ignore comment 11 and 12 as they are supposed to be verifications steps for the other similar bug
Marking verified as imported subscriptions are now removed
[root@dhcp35-236 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 2.0.6-1
subscription management rules: 5.16
subscription-manager: 1.15.9-6.el7
python-rhsm: 1.15.4-3.el7
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://rhn.redhat.com/errata/RHBA-2015-2122.html
Description of problem: Subscription-manager-gui doesnot remove the imported certificate Version-Release number of selected component (if applicable): [root@shwethaws ~]# subscription-manager version server type: This system is currently not registered. subscription management server: 0.9.26-1 subscription management rules: 5.11 subscription-manager: 1.12.14-5.el6 python-rhsm: 1.12.5-2.el6 How reproducible: Steps to Reproduce: 1.register the client to candlepin 2.attach a subscription 3.cat /etc/pki/entitlement/<cert>.pem >> /root/cert.pem 4.cat /etc/pki/entitlement/<key>.pem >> /root/cert.pem 5.subscription-manager clean 6.subscription-manager-gui 7.click on system link on gui and select import certificate 8.import the cert created as above 9.go to mysubscriptions tab try to remove the imported cert Actual results: Cert is not removed Expected results: cert should be removed locally as it happens in cli Additional info: Same process on cli: [root@shwethaws ~]# cat /etc/pki/entitlement/2248460627664321668.pem >> /root/cert.pem [root@shwethaws ~]# cat /etc/pki/entitlement/2248460627664321668 2248460627664321668-key.pem 2248460627664321668.pem [root@shwethaws ~]# cat /etc/pki/entitlement/2248460627664321668-key.pem >> /root/cert.pem [root@shwethaws ~]# subscription-manager clean All local data removed [root@shwethaws ~]# subscription-manager import --cert /root/cert.pem Successfully imported certificate cert.pem [root@shwethaws ~]# subscription-manager list --consumed +-------------------------------------------+ Consumed Subscriptions +-------------------------------------------+ Subscription Name: Red Hat Employee Subscription Provides: Oracle Java (for RHEL Server) Red Hat Enterprise Linux Load Balancer (for RHEL Server) Red Hat Enterprise Linux Workstation Red Hat Enterprise Linux Server Red Hat Enterprise Linux High Availability (for RHEL Server) Red Hat Enterprise Linux Resilient Storage (for RHEL Server) SKU: SYS0395 Contract: 2596950 Account: 477931 Serial: 2248460627664321668 Pool ID: 8a85f9843affb61f013b19cbdd555ea0 Active: True Quantity Used: 1 Service Level: None Service Type: Self-Support Status Details: Subscription Type: Starts: 10/08/2011 Ends: 01/01/2022 System Type: Physical You have mail in /var/spool/mail/root [root@shwethaws ~]# subscription-manager remove --all 1 subscriptions removed from this system. [root@shwethaws ~]# subscription-manager list --consumed No consumed subscription pools to list