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 795290 - subscription-manager-migration-data-el6 is not creating "/usr/share/rhsm/product/RHEL-6" folder
Summary: subscription-manager-migration-data-el6 is not creating "/usr/share/rhsm/pr...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager-migration-data
Version: 6.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Michael Stead
QA Contact: Entitlement Bugs
URL:
Whiteboard:
Depends On:
Blocks: 738066
TreeView+ depends on / blocked
 
Reported: 2012-02-20 06:54 UTC by Shwetha Kallesh
Modified: 2012-06-20 13:37 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-20 13:37:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2012:0823 0 normal SHIPPED_LIVE new package: subscription-manager-migration-data 2012-06-19 20:34:09 UTC

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


Note You need to log in before you can comment on or make changes to this bug.