Bug 706853 - SM Gui “unregister” button deletes “consumer” folder for non network host.
Summary: SM Gui “unregister” button deletes “consumer” folder for non network host.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: 6.2
Assignee: Michael Stead
QA Contact: spandey
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel62 743047
TreeView+ depends on / blocked
 
Reported: 2011-05-23 09:04 UTC by spandey
Modified: 2015-04-23 23:56 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 17:14:25 UTC
Target Upstream Version:


Attachments (Terms of Use)
unsubscribe with no network (334.22 KB, image/png)
2011-09-22 19:07 UTC, J.C. Molet
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1695 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2011-12-06 01:23:29 UTC

Description spandey 2011-05-23 09:04:38 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:
5/5

Prerequisites :
Client : Rhel5.7 with following subscription manager client 
subscription-manager-firstboot-0.95.5.18-1.git.4.364aa10.el5

subscription-manager-0.95.5.18-1.git.4.364aa10.el5

subscription-manager-gnome-0.95.5.18-1.git.4.364aa10.el5


Steps to Repro : 
Register client to candlepin using subsription-manager gui.
disable client network.
Press unregister button.

Expected Result : 
Proper message should display for network error and client should not unregister.

Actual Result : 
Message displayed on console for network error 
But unregister process deletes consumer folder from “/etc/pki “

Comment 1 Chris Duryee 2011-05-23 14:20:43 UTC
This is working as designed. When a user hits "unregister", a number of steps are performed on the client, similar to "subscription-manager clean". These steps should take place regardless of if the network is available or not.

Comment 2 Chris Duryee 2011-05-24 17:39:38 UTC
We can alter this so that the server call is made first, and if it fails, subsequent client-side operations are not performed.

Comment 4 Michael Stead 2011-09-08 17:23:16 UTC
Was it decided to do what Chris suggests above?

Comment 5 Bryan Kearney 2011-09-08 17:58:56 UTC
Seems to make sense.

Comment 6 Michael Stead 2011-09-20 16:05:02 UTC
Fixed in:

master c83cc36f1605ff767a0c39f404b73c5fe9bfaea3
RHEL6.2 cff579792571a79fc8b66a6b0a545441c8737350

Comment 8 J.C. Molet 2011-09-22 19:07:08 UTC
Created attachment 524460 [details]
unsubscribe with no network

This is working as described in comment 2.  All client data remains intact and the unsubscribe did not happen.

python-rhsm-0.96.12-1.git.0.4862863.el6.noarch
subscription-manager-firstboot-0.96.11-1.git.1.945da16.el6.x86_64
subscription-manager-0.96.11-1.git.1.945da16.el6.x86_64
subscription-manager-gnome-0.96.11-1.git.1.945da16.el6.x86_64


Marking VERIFIED.

Comment 9 errata-xmlrpc 2011-12-06 17:14:25 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.

http://rhn.redhat.com/errata/RHBA-2011-1695.html


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