Bug 1507866

Summary: some new RHN Tools channels do not have product_* fields set in mappings
Product: Red Hat Satellite 5 Reporter: Jan Hutař <jhutar>
Component: Satellite SynchronizationAssignee: Jan Dobes <jdobes>
Status: CLOSED ERRATA QA Contact: Ales Dujicek <adujicek>
Severity: low Docs Contact:
Priority: unspecified    
Version: 580CC: adujicek, tkasparek, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Release Note
Doc Text:
An issue was observed that some channels were missing part of the channel information in the cdn-sync-mappings, thus channel information was presented incomplete. cdn-sync-mappings package has been updated and contains all necessary information.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-26 12:43:09 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: 1450111    

Description Jan Hutař 2017-10-31 10:54:09 UTC
Description of problem:
some new RHN Tools channels do not have product_* fields set in mappings


Version-Release number of selected component (if applicable):
cdn-sync-mappings-2.5-1.el6sat.noarch


How reproducible:
always


Steps to Reproduce:
1. Sync some of these channels and check its product* info
rhn-tools-rhel-s390x-server-7.4.eus-debuginfo
rhn-tools-rhel-x86_64-server-7.4.aus
rhn-tools-rhel-x86_64-server-7.4.aus-debuginfo
rhn-tools-rhel-x86_64-server-7.4.eus-debuginfo
rhn-tools-rhel-x86_64-hpc-node-7.4.eus-debuginfo
rhn-tools-rhel-x86_64-hpc-node-7.4.eus
rhn-tools-rhel-ppc64-server-7.4.eus-debuginfo
rhn-tools-rhel-s390x-server-7.4.eus
rhn-tools-rhel-ppc64le-server-7.4.eus-debuginfo
rhn-tools-rhel-x86_64-server-7.4.eus
rhn-tools-rhel-ppc64-server-7.4.eus
rhn-tools-rhel-ppc64le-server-7.4.eus
2. Check in the DB:
   =# select rhnchannel.label, rhnchannel.product_name_id, rhnproductname.label, rhnproductname.name from rhnchannel, rhnproductname where rhnchannel.label='rhn-tools-rhel-x86_64-server-7.4.aus' and rhnchannel.product_name_id = rhnproductname.id;


Actual results:
Example for one of channels from mappings:

"rhn-tools-rhel-x86_64-server-7.4.aus": {
 "channel_arch": "channel-x86_64",
 "checksum_type": "sha256",
 "description": "Red Hat Network Tools for Red Hat Enterprise Linux Server AUS (v. 7.4.aus for 64-bit AMD64 / Intel64)",
 "eol": null,
 "gpg_key_url": "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release",
 "name": "RHN Tools for RHEL AUS (v. 7.4.aus for x86_64)",
 "parent_channel": "rhel-x86_64-server-7.4.aus",
 "product_beta": "N",
 "product_label": null,
 "product_name": null,
 "product_version": null,
 "summary": "Red Hat Network Tools for Red Hat Enterprise Linux Server AUS (v. 7.4.aus for 64-bit AMD64 / Intel64)"
 },

and from DB:

spacesatschema=# select rhnchannel.label, rhnchannel.product_name_id, rhnproductname.label, rhnproductname.name from rhnchannel, rhnproductname where rhnchannel.label='rhn-tools-rhel-x86_64-server-7.4.aus' and rhnchannel.product_name_id = rhnproductname.id;
 label | product_name_id | label | name 
-------+-----------------+-------+------
(0 rows)


Expected results:
product_* fields should be set, database should match

Comment 9 errata-xmlrpc 2018-03-26 12:43:09 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.

https://access.redhat.com/errata/RHBA-2018:0590