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 895052

Summary: Got traceback while migrating from rhn to katello with servicelevel option .
Product: Red Hat Enterprise Linux 6 Reporter: spandey
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED DUPLICATE QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: awood, jmolet, jsefler, kbanerje, omaciel, 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: Environment:
Last Closed: 2013-01-16 20:18:33 UTC Type: Bug
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: 771481    
Attachments:
Description Flags
production.log
none
catalina.out none

Description spandey 2013-01-14 11:59:48 UTC
Description of problem:


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


How reproducible:
3/3

Prerequisites:
Rhel6.4 with following subscription-manager rpm.
subscription-manager-1.1.21-1.el6.x86_64
subscription-manager-migration-1.1.21-1.el6.x86_64
subscription-manager-firstboot-1.1.21-1.el6.x86_64
subscription-manager-gui-1.1.21-1.el6.x86_64
subscription-manager-migration-data-1.12.2.6-1.el6.noarch

Steps to Repro : 
Register client to rhn classic. 
Migrate from rhn to katello with servicelevel option. 

Expected Result : 
Migration should successfully completed no error message should display on console.

Actual Result : 
[root@dhcp201-149 ~]# rhn-migrate-classic-to-rhsm --serverurl dhcp201-125.englab.pnq.redhat.com:443/katello/api --servicelevel standard
Red Hat account: qa
Password: 
System Engine Username: admin
Password: 
Org: redhat
Environment: test

Retrieving existing RHN Classic subscription information ...

+-----------------------------------------------------+ 
System is currently subscribed to these RHN Classic Channels:
+-----------------------------------------------------+
rhel-x86_64-server-6

+-----------------------------------------------------+ 
Installing product certificates for these RHN Classic channels:
+-----------------------------------------------------+
rhel-x86_64-server-6

Product certificates installed successfully to /etc/pki/product.

Preparing to unregister system from RHN Classic ...
System successfully unregistered from RHN Classic.

Attempting to register system to Red Hat Subscription Management ...
The system has been registered with id: 04e92e16-71da-4d93-b01f-065fd2fe7971 
System 'dhcp201-149.englab.pnq.redhat.com' successfully registered to Red Hat Subscription Management.

Traceback (most recent call last):
  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 732, in <module>
    main()
  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 723, in main
    servicelevel = selectServiceLevel(cp, consumer, options.servicelevel)
  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 308, in selectServiceLevel
    raise e
rhsm.connection.RestlibException: User admin is not allowed to access api/candlepin_proxies/get

Comment 2 Alex Wood 2013-01-15 14:55:06 UTC
Sachin,

I was unable to reproduce this error using the Katello instance you provided in the initial report.  Can you try again and if you are able to reproduce the issue, attach /var/log/katello/production.log and /var/log/tomcat6/catalina.out

Thanks.

Comment 3 spandey 2013-01-16 11:06:31 UTC
Hi Alex again i am able to repro this using following subscription-manager rpm 


subscription-manager-migration-1.1.22-1.el6.x86_64
subscription-manager-gui-1.1.22-1.el6.x86_64
subscription-manager-1.1.22-1.el6.x86_64
subscription-manager-migration-data-1.12.2.6-1.el6.noarch
subscription-manager-firstboot-1.1.22-1.el6.x86_64



[root@dhcp201-149 ~]# rhn-migrate-classic-to-rhsm --servicelevel standard
Red Hat account: qa
Password: 
System Engine Username: admin
Password: 
Org: redhat
Environment: test

Retrieving existing RHN Classic subscription information ...

+-----------------------------------------------------+ 
System is currently subscribed to these RHN Classic Channels:
+-----------------------------------------------------+
rhel-x86_64-server-6

+-----------------------------------------------------+ 
Installing product certificates for these RHN Classic channels:
+-----------------------------------------------------+
rhel-x86_64-server-6

Product certificates installed successfully to /etc/pki/product.

Preparing to unregister system from RHN Classic ...
System successfully unregistered from RHN Classic.

Attempting to register system to Red Hat Subscription Management ...
The system has been registered with id: 5e00d086-4980-4208-88e1-8cbc8b22eff3 
System 'dhcp201-149.englab.pnq.redhat.com' successfully registered to Red Hat Subscription Management.

Traceback (most recent call last):
  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 732, in <module>
    main()
  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 723, in main
    servicelevel = selectServiceLevel(cp, consumer, options.servicelevel)
  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 308, in selectServiceLevel
    raise e
rhsm.connection.RestlibException: User admin is not allowed to access api/candlepin_proxies/get


attached production.log and catalina.out

Comment 4 spandey 2013-01-16 11:09:55 UTC
Created attachment 679468 [details]
production.log

Comment 5 spandey 2013-01-16 11:10:19 UTC
Created attachment 679469 [details]
catalina.out

Comment 6 Alex Wood 2013-01-16 20:18:33 UTC

*** This bug has been marked as a duplicate of bug 885964 ***