Bug 694837

Summary: Can't unsubscribe from imported cert
Product: Red Hat Enterprise Linux 5 Reporter: Adrian Likins <alikins>
Component: subscription-managerAssignee: Chris Duryee <cduryee>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: urgent    
Version: 5.7CC: alikins, jmolet, mkhusid, spandey
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 691784 Environment:
Last Closed: 2011-07-21 08:46:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 691784    
Bug Blocks: 675214    

Comment 1 Adrian Likins 2011-04-08 15:28:07 UTC
commit 1ad23b87c0ad4a33b8a0d9effce297c9ac70684a
Author: Adrian Likins <alikins>
Date:   Fri Apr 8 11:22:48 2011 -0400

    694837: Fix handling of unsubscribing imported certs while unregistered
    
    The core of the bugfix is in mysubstab._on_unsubscribe_prompt_response.
    We don't try to unbindBySerial if we are not registered (via new
    managerGui.Backend.is_registered()). We also try/except around
    the update to catch the Disconnected exception if well, we are
    disconnected. We also change the store serial type to long, so
    the cert lookup works correctly.
    
    we also remove some unused code from certlib/certmgr (the *add) code
    and refactor certlib.delete to expect an array of longs, not a
    var arg.

Comment 2 Adrian Likins 2011-04-12 15:10:55 UTC
commit 79012d05859f6be2f13c8150dd4ebe82fbac6c49
Author: Adrian Likins <alikins>
Date:   Tue Apr 12 11:07:34 2011 -0400

    694837: fix entitlement failure that throws sequence error
    
    This is something of an addendum to f2cd16f571cd2a05f05b7e914c28d5b5d41adef9
    A touch too much was deleted in that commit.

Comment 3 spandey 2011-04-29 13:48:42 UTC
Verified Using following setup : 

on-premises: candlepin 
subscription-manager : 

subscription-manager-firstboot-0.95.5.8-1.git.6.42d8706.el5
subscription-manager-0.95.5.8-1.git.6.42d8706.el5
subscription-manager-gnome-0.95.5.8-1.git.6.42d8706.el5


created a copy of subscribed entitlement cert 
unregister client 
Imported copied entitlement crt.
unsubscribe imported cert using unsubscribe button 

Sucessfully unsubscribed 

Moving defect status from Modified to Verified

Comment 4 errata-xmlrpc 2011-07-21 08:46:54 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2011-1078.html

Comment 5 errata-xmlrpc 2011-07-21 12:29:56 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2011-1078.html