Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1141128 - Subscription-manager-gui doesnot remove the imported certificate
Summary: Subscription-manager-gui doesnot remove the imported certificate
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: alpha
: 7.2
Assignee: William Poteat
QA Contact: John Sefler
URL:
Whiteboard:
: 1142400 (view as bug list)
Depends On:
Blocks: rhsm-rhel72
TreeView+ depends on / blocked
 
Reported: 2014-09-12 09:29 UTC by Shwetha Kallesh
Modified: 2015-11-24 14:44 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 11:48:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Cert sucessfully imported (111.54 KB, image/png)
2015-08-17 07:12 UTC, Shwetha Kallesh
no flags Details
Imported cert being listed in Mysubscriptions tab (80.09 KB, image/png)
2015-08-17 07:13 UTC, Shwetha Kallesh
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2122 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2015-11-19 10:31:14 UTC

Description Shwetha 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

Comment 2 Bryan Kearney 2014-09-29 17:24:45 UTC
Moving bugs to 6.7

Comment 3 Bryan Kearney 2014-11-03 19:48:39 UTC
Moving bugs to 6.7

Comment 4 Bryan Kearney 2014-11-03 19:49:32 UTC
Moving bugs to 6.7

Comment 5 Bryan Kearney 2014-11-03 19:54:31 UTC
Moving bugs to 6.7

Comment 6 William Poteat 2015-08-10 18:08:42 UTC
*** Bug 1142400 has been marked as a duplicate of this bug. ***

Comment 7 Chris "Ceiu" Rog 2015-08-12 16:57:27 UTC
commit 4f4bcf84e805fbcbf5b98511b2457575f84632e0
Author: William Poteat <wpoteat>
Date:   Mon Aug 10 13:54:22 2015 -0400

    1141128: Imported certificate in detatched scenario not getting deleted

Comment 8 Chris "Ceiu" Rog 2015-08-14 18:28:05 UTC
commit b0d32012a56604f3c4062bb8d62d40803ae54ed5
Author: William Poteat <wpoteat>
Date:   Thu Aug 13 15:07:49 2015 -0400

    1141128: Clean up and correct for style

Comment 9 Chris "Ceiu" Rog 2015-08-14 18:43:29 UTC
commit 9170694dd938611865502ad69ba2fc8e50ca1022
Author: William Poteat <wpoteat>
Date:   Fri Aug 14 08:45:01 2015 -0400

    1141128: Subscriptions need refresh after imported cert removed

Comment 11 Shwetha Kallesh 2015-08-17 07:12:47 UTC
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

Comment 12 Shwetha Kallesh 2015-08-17 07:13:53 UTC
Created attachment 1063645 [details]
Imported cert being listed in Mysubscriptions tab

Comment 13 Shwetha Kallesh 2015-08-17 13:33:53 UTC
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

Comment 14 errata-xmlrpc 2015-11-19 11:48:09 UTC
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


Note You need to log in before you can comment on or make changes to this bug.