Hide Forgot
Description of problem: yum update shows "random"? numeric identifier (10000,10002) for custom repo name instead of expected custom repo name. rhui-cloud-rhel5-unprotected | 2.3 kB 00:00 rhui-cloud-rhel5-unprotected/primary_db | 1.2 kB 00:00 rhui-custom-10000 | 2.3 kB 00:00 rhui-custom-10000/primary_db | 1.2 kB 00:00 rhui-custom-10002 | 2.3 kB 00:00 rhui-custom-10002/primary_db | 1.2 kB 00:00 rhui-rhel-5-server-rhui-rpms | 3.7 kB 00:00 Version-Release number of selected component (if applicable): 2.0.2 How reproducible: Create custom repo, build and install an entitlement rpm, in the guest run a yum update. Steps to Reproduce: 1. Create some protected repos on the RHUA rhui (entitlements) => c Custom Repository Entitlements For each entitlement URL listed, the corresponding repositories that are configured with that entitlement are listed. cloud-generic-protected - Name: cloud-generic-protected URL: cloud-generic-protected cloud-rhel6-protected - Name: cloud-rhel6-protected URL: cloud-rhel6-protected cloud-rhel5-protected - Name: cloud-rhel5-protected URL: cloud-rhel5-protected 2. Deploy an entitlement rpm including the protected custom repo 3. Do a yum update, observe "10000" instead of the expected repo name, view yum.repos.d/rh-cloud.repo [root@v-ban1-rh58-64 ~]# yum check-update Loaded plugins: katello, product-id, rhui-lb, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity rhui-cloud-generic-unprotected | 2.3 kB 00:00 rhui-cloud-generic-uprotected/primary_db | 1.2 kB 00:00 rhui-cloud-rhel5-unprotected | 2.3 kB 00:00 rhui-cloud-rhel5-unprotected/primary_db | 1.2 kB 00:00 rhui-custom-10000 | 2.3 kB 00:00 rhui-custom-10000/primary_db | 1.2 kB 00:00 rhui-custom-10002 | 2.3 kB 00:00 rhui-custom-10002/primary_db | 1.2 kB 00:00 rhui-rhel-5-server-rhui-rpms | 3.7 kB 00:00 rhui-rhel-5-server-rhui-rpms/primary_db | 6.6 MB 00:00 Skipping security plugin, no data Actual results: above plus a yum.repos.d/rh-cloud.repo that shows: [rhui-rhel-5-server-rhui-rpms] name=Red Hat Enterprise Linux 5 Server from RHUI (RPMs) mirrorlist=https://v-ban1-cds01.cloud.onx.com/pulp/mirror//content/dist/rhel/rhui/server/5/$releasever/$basearch/os enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release sslverify=1 sslcacert=/etc/pki/entitlement/ca.crt sslclientcert=/etc/pki/entitlement/product/content.crt sslclientkey=/etc/pki/entitlement/key.pem [rhui-custom-10002] name=Custom Repositories - 10002 mirrorlist=https://v-ban1-cds01.cloud.onx.com/pulp/mirror/cloud-rhel5-protected enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release sslverify=1 sslcacert=/etc/pki/entitlement/ca.crt sslclientcert=/etc/pki/entitlement/product/content.crt sslclientkey=/etc/pki/entitlement/key.pem Expected results: in rh-cloud.rep: [rhui-custom-cloud-rhel5-protected] name= Custom Repositories - cloud-rhel5-protected Additional info:
moving to version 2.1.1
commit 4ba710642a2ee655e12b760a3b6740313ba8848a One thing to note, since multiple custom repos might share the same entitlement path (custom repos just different by arch for example), we might not know which repo label to use in the yum config. So, we just go with the first one repo for the entitlement path in question.
# rpm -q rh-rhui-tools rh-rhui-tools-2.1.15-1.el6_3.noarch On client: # yum repolist | grep cp_1 && echo SUCCESS Unable to read consumer identity rhui-custom-cp_1 Custom Repositories - cp_1 0
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-2013-0571.html