Bug 697908 - regression in subscription-manager unregister
Summary: regression in subscription-manager unregister
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.7
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Chris Duryee
QA Contact: J.C. Molet
URL:
Whiteboard:
Depends On:
Blocks: 675214
TreeView+ depends on / blocked
 
Reported: 2011-04-19 15:53 UTC by John Sefler
Modified: 2011-07-21 12:30 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-21 08:45:47 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:1078 0 normal SHIPPED_LIVE new package: subscription-manager 2011-07-21 08:45:07 UTC

Description John Sefler 2011-04-19 15:53:02 UTC
Description of problem:
On rhel6, running subscription-manager unregister returns an exit code of 0 when the system is previously registered and 1 when the system is already unregistered.  In today's build of sm on rhel57, an exit code of 255 is being returned.  This is causing many automated tests to fail.


Version-Release number of selected component (if applicable):
subscription-manager-0.95.5.8-1.git.0.356db80.el5


How reproducible:


Steps to Reproduce:
1. subscription-manager unregister
2.
3.
  
Actual results:
exit code = 255

Expected results:
exit code of 0 or 1

Additional info:

Comment 1 Chris Duryee 2011-04-19 20:38:47 UTC
Fixed on RHEL5.7 branch in 3d40137a03af85ca22f4271ebbe6f97c3715b9a0, version 0.95.5.9

Comment 2 Chris Duryee 2011-04-19 20:39:20 UTC
Fixed on master branch in af8b8a734321bf1f95054b5dbe566a81fedfc450, version 0.96.2

Comment 3 J.C. Molet 2011-04-20 13:58:26 UTC
[root@jmolet-57server scratch]# subscription-manager register 
WARNING

You have already registered with RHN using RHN Classic technology. This tool requires registration using RHN Certificate-Based Entitlement technology.

Except for a few cases, Red Hat recommends customers only register with RHN once.

For more information, including alternate tools, consult this Knowledge Base Article: https://access.redhat.com/kb/docs/DOC-45563

Username: testuser1
Password: 
4800b95e-4443-4b37-a6c1-7abe229f3802 jmolet-57server.usersys.redhat.com
[root@jmolet-57server scratch]# echo $?
0
[root@jmolet-57server scratch]# subscription-manager unregister
System has been un-registered.
[root@jmolet-57server scratch]# echo $?
0
[root@jmolet-57server scratch]# subscription-manager unregister
This system is currently not registered.
[root@jmolet-57server scratch]# echo $?
1
[root@jmolet-57server scratch]# rpm -qa | grep subscription
subscription-manager-gnome-0.95.5.8-1.git.2.3d40137.el5
subscription-manager-firstboot-0.95.5.8-1.git.2.3d40137.el5
subscription-manager-0.95.5.8-1.git.2.3d40137.el5

This is tested as working.  Marking VERIFIED.

Comment 4 errata-xmlrpc 2011-07-21 08:45:47 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:30:14 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


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