jbappplatform-7.2-x86_64-server-7-rpm' channel not available in Satellite 5.8 cdn-syn-mappings file

Solution Verified - Updated -

Environment

  • Red Hat Satellite 5.8
  • Red Hat Virtualization Manager 4.2

Issue

  • The cdn-syn-mappings file satellite 5 utilizes doesn't have the JBoss Enterprise Application Platform 7.2 channel ('jbappplatform-7.2-x86_64-server-7-rpm') mapped to the jb-eap-7.2 cdn repository. The channel is not visible via cdn-sync -l nor in /usr/share/rhn/cdn-sync/rhn_cdn_mappings.json file.

  • This affects RHV-m upgrades from version 4.1 up to 4.2 since version 4.2 needs to count with the repository 'jbappplatform-7.2-x86_64-server-7-rpm' enabled in order the upgrade may finish successful.

Upgrading the Manager from 4.1 to 4.2

Resolution

  • The channel is now available in satellite 5.8 with latest cdn-sync-mappings package.
  • Update below package on satellite to the latest version:
# yum update cdn-sync-mappings
# cdn-sync -l | grep jbappplatform-7.2

Note: package version should be cdn-sync-mappings-2.39-1.el6sat.noarch or later.

Root Cause

  • The cdn-sync-mappings file is used by satellite 5 to matches the relative URL from the RHN channel naming to the CDN repository name, all the metadata in satellite 5 still uses RHN servers and APIs in order to get all the rpms from the cdn repositories. The latest file *cdn-sync-mappings-2.30-1.el6sat.noarch doesn't have the jbappplatform-7.2-x86_64-server-7-rpm channel mapping the relative URL for the cdn repository name jb-eap-7.2-for-rhel-7-server-rpms hence RHV-M cannot be upgraded from version 4.1 up to 4.2 because of the missing channel.

Diagnostic Steps

  • Sample outputs:
# rpm -qa cdn-sync-mappings
cdn-sync-mappings-2.39-1.el6sat.noarch

# cdn-sync -l | grep -i jbappplatform-7
21:46:52     . jbappplatform-7.0-i386-server-6-rpm                    934 packages    (1.5G)
21:46:52     . jbappplatform-7.0-i386-server-6-rpm-debuginfo            0 packages    (0.0B)
21:46:52     . jbappplatform-7.1-i386-server-6-rpm                   1674 packages    (2.4G)
21:46:52     . jbappplatform-7.1-i386-server-6-rpm-debuginfo            3 packages  (226.7K)
21:46:54     . jbappplatform-7.0-x86_64-server-6-rpm                  947 packages    (1.5G)
21:46:54     . jbappplatform-7.0-x86_64-server-6-rpm-debuginfo          0 packages    (0.0B)
21:46:54     . jbappplatform-7.1-x86_64-server-6-rpm                 1699 packages    (2.4G)
21:46:54     . jbappplatform-7.1-x86_64-server-6-rpm-debuginfo          3 packages  (234.0K)
21:46:54     . jbappplatform-7.2-x86_64-server-6-rpm                    ? packages      (?B)
21:46:54     . jbappplatform-7.2-x86_64-server-6-rpm-debuginfo          ? packages      (?B)
21:46:55     . jbappplatform-7.0-x86_64-server-7-rpm                  947 packages    (1.4G)
21:46:55     . jbappplatform-7.0-x86_64-server-7-rpm-debuginfo          0 packages    (0.0B)
21:46:55     . jbappplatform-7.1-x86_64-server-7-rpm                 1699 packages    (2.3G)
21:46:55     . jbappplatform-7.1-x86_64-server-7-rpm-debuginfo          3 packages  (211.7K)
21:46:55     . jbappplatform-7.2-x86_64-server-7-rpm                    ? packages      (?B)
21:46:55     . jbappplatform-7.2-x86_64-server-7-rpm-debuginfo          ? packages      (?B)

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

4 Comments

Hi, it is fixed in cdn-sync-mappings-2.39-1.el6sat.noarch.rpm. Available at 2019-03-06. CU Jens

rpm -qa | grep cdn
spacewalk-backend-cdn-2.5.3-173.el6sat.noarch
cdn-sync-mappings-2.39-1.el6sat.noarch

I'm still seeing

cdn-sync -l | grep jbappplatform-7
10:43:58     . jbappplatform-7.0-i386-server-6-rpm                     ? packages      (?B)
10:43:58     . jbappplatform-7.0-i386-server-6-rpm-debuginfo           ? packages      (?B)
10:43:58     . jbappplatform-7.1-i386-server-6-rpm                     ? packages      (?B)
10:43:58     . jbappplatform-7.1-i386-server-6-rpm-debuginfo           ? packages      (?B)
10:43:58     . jbappplatform-7.0-x86_64-server-6-rpm                   ? packages      (?B)
10:43:58     . jbappplatform-7.0-x86_64-server-6-rpm-debuginfo         ? packages      (?B)
10:43:58     . jbappplatform-7.1-x86_64-server-6-rpm                   ? packages      (?B)
10:43:58     . jbappplatform-7.1-x86_64-server-6-rpm-debuginfo         ? packages      (?B)
10:43:58     p jbappplatform-7.0-x86_64-server-7-rpm                   ? packages      (?B)
10:43:58     . jbappplatform-7.0-x86_64-server-7-rpm-debuginfo         ? packages      (?B)
10:43:58     p jbappplatform-7.1-x86_64-server-7-rpm                   ? packages      (?B)
10:43:58     . jbappplatform-7.1-x86_64-server-7-rpm-debuginfo         ? packages      (?B)
cdn-sync -c jbappplatform-7.2-x86_64-server-7-rpm
10:44:09 ERROR: Channel 'jbappplatform-7.2-x86_64-server-7-rpm' repositories are not available.
10:44:09 Total time: 0:00:00
ERROR: these channels either do not exist or are not available for synchronization:
  jbappplatform-7.2-x86_64-server-7-rpm

Try:

rhn-satellite-activate --manifest-reconcile-request && rhn-satellite-activate --manifest-refresh

And:

cdn-sync -l | grep jbappplatform-7

Works now, thank you