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:
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