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.

Bug 789007

Summary: Migrate with normal user (non org admin) user .
Product: Red Hat Enterprise Linux 6 Reporter: spandey
Component: subscription-managerAssignee: Alex Wood <awood>
Status: CLOSED ERRATA QA Contact: Entitlement Bugs <entitlement-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3CC: awood, jmolet, jsefler, kbanerje, mstead, skallesh, spandey
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 805611 (view as bug list) Environment:
Last Closed: 2012-06-20 13:05:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 738066, 805611    

Description spandey 2012-02-09 15:07:34 UTC
Description of problem:


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


How reproducible:
3/3

Prerequisite:
Rhel5.8 with following rpm 
subscription-manager-migration-0.98.14-1.el5
subscription-manager-0.98.14-1.el5
subscription-manager-migration-data-1.11-1.el5

Steps to Repro   : 

Register client to rhn_classic using normal user account.
Migrate from classic to rhsm.

Expected Result : 
It should not display traceback .
Proper Message should display like “User do not have premission to migrate from rhn_classic to rhsm”.
Migration facts should not generated for incomplete migration process .

Comment 1 Alex Wood 2012-03-16 19:21:08 UTC
Could you paste in the traceback?

I'm not able to duplicate this issue.  For me, the script outputs "Must be root user to execute" and exits.

Comment 2 spandey 2012-03-19 11:08:31 UTC
# /usr/sbin/rhn-migrate-classic-to-rhsm 
RHN Username: rhn-support-bmumbaik
Password: 
Retrieving existing RHN classic subscription information ...
+----------------------------------+
System is currently subscribed to:
+----------------------------------+
rhel-i386-server-5
List of channels for which certs are being copied
rhel-i386-server-5
Product Certificates copied successfully to /tmp/rhsm !!
Preparing to unregister system from RHN classic ...
Problem encountered unregistering system from RHN Classic.  Exiting
Following traceback found in /var/log/rhsm/rhsm.log:
2012-02-09 00:34:38,206 [INFO]  @rhn-migrate-classic-to-rhsm:161 - Deleting system 1021946626 from RHN Classic...
2012-02-09 00:34:41,268 [ERROR]  @rhn-migrate-classic-to-rhsm:176 - Traceback (most recent call last):
  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 167, in unRegisterSystemFromRhnClassic
    result = sc.system.deleteSystems(sk, systemId)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1096, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1383, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.4/xmlrpclib.py", line 1147, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1286, in _parse_response
    return u.close()
  File "/usr/lib/python2.4/xmlrpclib.py", line 744, in close
    raise Fault(**self._stack[0])
Fault: <Fault 1003: 'The following systems were NOT deleted: \n1021946626'>

Comment 3 spandey 2012-03-19 11:09:24 UTC
Above is the traceback we find while testing

Comment 4 Alex Wood 2012-03-20 19:36:53 UTC
Committed bb4dfbb5479adeba5b9ca48e5077bf261d6c8e81

subscription-manager-0.99.11+

Comment 6 spandey 2012-03-22 09:26:48 UTC
verified Using following rpm :
 
subscription-manager-gnome-0.99.10-1.git.91.da82449.el6.x86_64
subscription-manager-migration-0.99.10-1.git.91.da82449.el6.x86_64
subscription-manager-migration-data-1.12.1.1-1.git.6.ea6813e.el6.noarch
subscription-manager-firstboot-0.99.10-1.git.91.da82449.el6.x86_64
subscription-manager-0.99.10-1.git.91.da82449.el6.x86_64


Migrate using non admin user got following message on console  

"You must be an org admin to successfully run this script."

Resolving defect as verified.

Comment 8 errata-xmlrpc 2012-06-20 13:05:31 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-2012-0804.html