Bug 795290

Summary: subscription-manager-migration-data-el6 is not creating "/usr/share/rhsm/product/RHEL-6" folder
Product: Red Hat Enterprise Linux 6 Reporter: Shwetha Kallesh <skallesh>
Component: subscription-manager-migration-dataAssignee: Michael Stead <mstead>
Status: CLOSED ERRATA QA Contact: Entitlement Bugs <entitlement-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3CC: awood, bkearney, borgan, jsefler
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: 2012-06-20 13:37:35 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 Shwetha Kallesh 2012-02-20 06:54:21 UTC
Description of problem:


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

[root@dhcp201-162 ~]# rpm -qa | grep subscription-manager
subscription-manager-0.99.7-1.el6.x86_64
subscription-manager-migration-0.99.7-1.el6.x86_64
subscription-manager-firstboot-0.99.7-1.el6.x86_64
subscription-manager-gnome-0.99.7-1.el6.x86_64
subscription-manager-migration-data-1.12-1.el6.noarch
subscription-manager-debuginfo-0.99.7-1.el6.x86_64


How reproducible:


Steps to Reproduce:
[root@dhcp201-162 ~]# rhn-migrate-classic-to-rhsm 
RHN Username: qa
Password: 

Retrieving existing RHN classic subscription information ...
+----------------------------------+
System is currently subscribed to:
+----------------------------------+
rhel-x86_64-server-6
Traceback (most recent call last):
  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 420, in <module>
    main()
  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 403, in main
    deployProdCertificates(subscribedChannels)
  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 256, in deployProdCertificates
    dic_data = readChannelCertMapping()
  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 209, in readChannelCertMapping
    f = open(mappingfile)
IOError: [Errno 2] No such file or directory: '/usr/share/rhsm/product/RHEL-6/channel-cert-mapping.txt'

  
Actual results:


Expected results:


Additional info:

Comment 2 Alex Wood 2012-03-27 20:34:52 UTC
Fixed in commit 372e597ced3f05721c42df0cb975bdbb02bf4019

Available in subscription-manager-migration-data-1.12.1.2+

Comment 6 Shwetha Kallesh 2012-04-26 07:32:53 UTC
verified!!

Version:
[root@dhcp201-196 RHEL-6]# rpm -qa | grep subscription-manager 
subscription-manager-gnome-1.0.0-1.git.31.2f65bc4.el6_2.x86_64
subscription-manager-1.0.0-1.git.31.2f65bc4.el6_2.x86_64
subscription-manager-firstboot-1.0.0-1.git.31.2f65bc4.el6_2.x86_64
subscription-manager-debuginfo-0.99.13-1.el6.x86_64
subscription-manager-migration-1.0.0-1.git.31.2f65bc4.el6_2.x86_64
subscription-manager-migration-data-1.12.1.5-1.el6.noarch

steps:

[root@dhcp201-196 pki]# rhn-migrate-classic-to-rhsm
RHN Username: qa
Password: 

Retrieving existing RHN Classic subscription information ...
+----------------------------------+
System is currently subscribed to:
+----------------------------------+
rhel-x86_64-server-6

List of channels for which certs are being copied
rhel-x86_64-server-6

Product certificates copied successfully to /etc/pki/product

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

Attempting to register system to Certificate-based RHN ...
The system has been registered with id: 7de1af13-9a8f-4278-a613-e098b925d6c1 
System 'dhcp201-196.englab.pnq.redhat.com' successfully registered to Certificate-based RHN.

Launching the GUI tool to manually subscribe the system ...

Please visit https://access.redhat.com/management/consumers/7de1af13-9a8f-4278-a613-e098b925d6c1 to view the details, and to make changes if necessary.

[root@dhcp201-196 pki]# ll /usr/share/rhsm/product/
total 4
drwxr-xr-x. 2 root root 4096 Apr 26 12:48 RHEL-6

Comment 8 errata-xmlrpc 2012-06-20 13:37:35 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/RHEA-2012-0823.html