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 790205

Summary: rhel-instnum package is needed by subscription-manager-migration package in rhel63
Product: Red Hat Enterprise Linux 6 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: Chris Duryee <cduryee>
Status: CLOSED ERRATA QA Contact: Entitlement Bugs <entitlement-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3CC: cduryee, mkhusid, skallesh
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 13:05:42 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    

Description John Sefler 2012-02-13 22:26:20 UTC
Description of problem:
When the subscription-manager-migration package was first released with rhel58, the new install-num-migrate-to-rhsm tool depends on instnum.py which was provided by rhel-instnum-1.0.9-1.el5.  Now in rhel63, there is no install (nor brew build) of rhel-instnum package and therefore we get a traceback when we try to run install-num-migrate-to-rhsm as shown in the steps to reproduce below.


Version-Release number of selected component (if applicable):
[root@jsefler-r63-server ~]# rpm -q subscription-manager-migration
subscription-manager-migration-0.99.7-1.el6.x86_64


How reproducible:


Steps to Reproduce:
[root@jsefler-r63-server ~]# install-num-migrate-to-rhsm --dryrun --instnumber 123
Traceback (most recent call last):
  File "/usr/sbin/install-num-migrate-to-rhsm", line 26, in <module>
    from instnum import InstallationNumber, InstallationNumberError
ImportError: No module named instnum

  
Actual results: ^^


Expected results:
Could not parse the installation number: Unsupported string length

Additional info:

Comment 2 Mike Khusid 2012-02-14 15:03:50 UTC
There is no installation number in RHEL6.

https://access.redhat.com/kb/docs/DOC-42509

Comment 3 Chris Duryee 2012-02-14 15:08:39 UTC
reopening, we need to ensure the script is not installed on el6 systems.

Comment 4 Chris Duryee 2012-02-20 13:41:46 UTC
*** Bug 795294 has been marked as a duplicate of this bug. ***

Comment 5 Chris Duryee 2012-02-22 15:47:08 UTC
7b4cb1a 0.99.7+ master

Comment 8 Shwetha Kallesh 2012-03-06 14:20:25 UTC
moving to verified

RPM used:
[root@dhcp201-162 ~]# rpm -qa | grep subscription-manager
subscription-manager-migration-0.99.8-1.git.22.c4b5c6a.el6.x86_64
subscription-manager-gnome-0.99.8-1.git.22.c4b5c6a.el6.x86_64
subscription-manager-firstboot-0.99.8-1.git.22.c4b5c6a.el6.x86_64
subscription-manager-debuginfo-0.99.8-1.el6.x86_64
subscription-manager-0.99.8-1.git.22.c4b5c6a.el6.x86_64
subscription-manager-migration-data-1.12.1-1.git.5.4a24dad.el6.noarch


[root@dhcp201-162 ~]# rpm -ql subscription-manager-migration
/usr/sbin/rhn-migrate-classic-to-rhsm
/usr/share/doc/subscription-manager-migration-0.99.8
/usr/share/doc/subscription-manager-migration-0.99.8/LICENSE
/usr/share/man/man8/rhn-migrate-classic-to-rhsm.8.gz

Comment 10 errata-xmlrpc 2012-06-20 13:05:42 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