Description of problem: No rpms available in a custom repository -- "custom" -- even though single package has been uploaded in rhui-manager. Moreover, "custom" repodata primary.sqlite file doesn't contain any records either on RHUA or CDS nodes. Version-Release number of selected component (if applicable): rhui 2.0.2; RHEL-6.2-RHUI-2.0.2-20120215.0-Server-x86_64-DVD1.iso; RHEL 6.2 How reproducible: Always Steps to Reproduce: # rhua steps 1. create custom repository accessible via entitlement 2. upload a rpm to the custom repository 3. synchronize CDSes with RHUA 4. create client entitlements and configuration rpm 5. check that /var/lib/pulp/repos/custom_1/i386/repodata/primary.sqlite.bz2 doesn't contain the custom repository rpm # client steps 6. deploy the client configuration rpm on a suitable client 7. check yum repolist for correct repositories ( generates error here, CDS httpd: password mismatch -- see screenlog) 8. check yum list available does provide no output ( for some custom repositories, the above succeeds and then no available packages are displayed) Actual results: Error getting the list of repositories (no available packages in custom repository) Expected results: uploaded package available in client repository Additional info: # # Screenlog -- RHUA # ========== ------------------------------------------------------------------------------ -= Red Hat Update Infrastructure Management Tool =- -= Repository Management =- l list repositories currently managed by the RHUI i display detailed information on a repository a add a new Red Hat content repository c create a new custom repository d delete a repository from the RHUI u upload content to a custom repository p list packages in a repository logout removes stored authentication credentials and exits < move to the previous screen ^, home move to the home screen /, clear clears the screen ?, help display help q, quit, exit exit Connected: ip-10-49-107-196.eu-west-1.compute.internal ------------------------------------------------------------------------------ rhui (repo) => c Unique ID for the custom repository (alphanumerics, _, and - only): custom_1 Display name for the custom repository [custom_1]: Path at which the repository will be served [custom_1]: custom_1/i386 Algorithm to use when calculating the checksum values for repository metadata: 1 - sha256 2 - sha1 Enter value (1-2) or 'b' to abort: 1 Should the repository require an entitlement certificate to access? (y/n) y Based on the repository's relative path, the suggested entitlement path is: custom_1/$basearch Path that should be used when granting an entitlement for this repository. This may use yum variable substitutions (e.g. $basearch) to group this together with other repositories that share the entitlement [custom_1/$basearch]: The following repository will be created: ID: custom_1 Name: custom_1 Path: custom_1/i386 Entitlement: custom_1/$basearch Proceed? (y/n) y Successfully created repository custom_1 ------------------------------------------------------------------------------ rhui (repo) => u Select the repositories to upload the package into: - 1 : test_01 - 2 : test_02 - 3 : test_03 - 4 : custom - 5 : custom_1 Enter value (1-5) to toggle selection, 'c' to confirm selections, or '?' for more commands: 5 Select the repositories to upload the package into: - 1 : test_01 - 2 : test_02 - 3 : test_03 - 4 : custom x 5 : custom_1 Enter value (1-5) to toggle selection, 'c' to confirm selections, or '?' for more commands: c Enter the location of the packages to upload. If the location is an RPM, the file will be uploaded. If the location is a directory, all RPMs in that directory will be uploaded: /root/X11R6-contrib-3.3.2-11.i386.rpm The following RPMs will be uploaded: X11R6-contrib-3.3.2-11.i386.rpm Proceed? (y/n) y Uploading X11R6-contrib-3.3.2-11.i386.rpm... ------------------------------------------------------------------------------ rhui (repo) => p Choose a repository: 1 - Red Hat Enterprise Linux 6 Server (RPMs) from RHUI (6Server-i386) 2 - Red Hat Enterprise Linux 6 Server (RPMs) from RHUI (6Server-x86_64) 3 - Red Hat Enterprise Linux 6 Server - Optional (RPMs) from RHUI (6Server-i386) 4 - Red Hat Enterprise Linux 6 Server - Optional (RPMs) from RHUI (6Server-x86_64) 5 - custom 6 - custom_1 7 - test_01 8 - test_02 9 - test_03 Enter value (1-9) or 'b' to abort: 6 Enter the first few characters (case insensitive) of an RPM to filter the results (blank line for no filter): Only filtered results that contain less than 100 packages will have their contents displayed. Results with more than 100 packages will display a package count only. Packages: X11R6-contrib-3.3.2-11.i386.rpm ------------------------------------------------------------------------------ rhui (repo) => ------------------------------------------------------------------------------ rhui (repo) => < ------------------------------------------------------------------------------ -= Red Hat Update Infrastructure Management Tool =- -= Home =- r manage repositories c manage content delivery servers (CDS) s synchronization status and scheduling e create entitlement certificates and client configuration RPMs n manage Red Hat entitlement certificates u manage users i manage identity certificate Connected: ip-10-49-107-196.eu-west-1.compute.internal ------------------------------------------------------------------------------ rhui (home) => s ------------------------------------------------------------------------------ -= Red Hat Update Infrastructure Management Tool =- -= Synchronization Status =- dr display repo sync summary vr view the details of the last repository sync sr sync an individual repository immediately dc display CDS sync summary vc view the details of the last CDS sync sc sync an individual CDS immediately Connected: ip-10-49-107-196.eu-west-1.compute.internal ------------------------------------------------------------------------------ rhui (sync) => sc Select one or more CDS instances to schedule to be synchronized before its scheduled time. The sync will happen as soon as possible depending on other tasks that may be executing in the RHUI. Only CDS instances that are not currently synchronizing are displayed. Last Result Next Sync CDS ------------------------------------------ - 1 : Success 02-20-2012 14:20 ip-10-49-10-93.eu-west-1.compute.internal - 2 : Success 02-20-2012 14:19 ip-10-54-247-104.eu-west-1.compute.internal Enter value (1-2) to toggle selection, 'c' to confirm selections, or '?' for more commands: 1 Select one or more CDS instances to schedule to be synchronized before its scheduled time. The sync will happen as soon as possible depending on other tasks that may be executing in the RHUI. Only CDS instances that are not currently synchronizing are displayed. Last Result Next Sync CDS ------------------------------------------ x 1 : Success 02-20-2012 14:20 ip-10-49-10-93.eu-west-1.compute.internal - 2 : Success 02-20-2012 14:19 ip-10-54-247-104.eu-west-1.compute.internal Enter value (1-2) to toggle selection, 'c' to confirm selections, or '?' for more commands: 2 Select one or more CDS instances to schedule to be synchronized before its scheduled time. The sync will happen as soon as possible depending on other tasks that may be executing in the RHUI. Only CDS instances that are not currently synchronizing are displayed. Last Result Next Sync CDS ------------------------------------------ x 1 : Success 02-20-2012 14:20 ip-10-49-10-93.eu-west-1.compute.internal x 2 : Success 02-20-2012 14:19 ip-10-54-247-104.eu-west-1.compute.internal Enter value (1-2) to toggle selection, 'c' to confirm selections, or '?' for more commands: c The following CDS instances will be scheduled for synchronization: ip-10-49-10-93.eu-west-1.compute.internal ip-10-54-247-104.eu-west-1.compute.internal Proceed? (y/n) y Scheduling sync for ip-10-49-10-93.eu-west-1.compute.internal... ... successfully scheduled for the next available timeslot. Scheduling sync for ip-10-54-247-104.eu-west-1.compute.internal... ... successfully scheduled for the next available timeslot. ------------------------------------------------------------------------------ rhui (sync) => < ------------------------------------------------------------------------------ -= Red Hat Update Infrastructure Management Tool =- -= Home =- r manage repositories c manage content delivery servers (CDS) s synchronization status and scheduling e create entitlement certificates and client configuration RPMs n manage Red Hat entitlement certificates u manage users i manage identity certificate Connected: ip-10-49-107-196.eu-west-1.compute.internal ------------------------------------------------------------------------------ rhui (home) => e ------------------------------------------------------------------------------ -= Red Hat Update Infrastructure Management Tool =- -= Client Entitlement Management =- e generate an entitlement certificate c create a client configuration RPM from an entitlement certificate Connected: ip-10-49-107-196.eu-west-1.compute.internal ------------------------------------------------------------------------------ rhui (client) => e Select one or more repositories to include in the entitlement certificate: (an * next to a Red Hat repository indicates it is deployed in the RHUI) Custom Repositories - 1 : /test/02/$basearch test_02 - 2 : custom_1/$basearch custom_1 - 3 : custom/$basearch custom - 4 : test_01 test_01 - 5 : test/03/ test_03 Red Hat Repositories [54/95801] - 6 : Red Hat Enterprise Linux 5 Server - Optional Productivity Applications (Debug RPMs) from RHUI - 7 : Red Hat Enterprise Linux 5 Server - Optional Productivity Applications (RPMs) from RHUI - 8 : Red Hat Enterprise Linux 5 Server - Optional Productivity Applications (Source RPMs) from RHUI - 9 : Red Hat Enterprise Linux 5 Server - Supplementary (Debug RPMs) from RHUI - 10: Red Hat Enterprise Linux 5 Server - Supplementary (RPMs) from RHUI - 11: Red Hat Enterprise Linux 5 Server - Supplementary (Source RPMs) from RHUI - 12: Red Hat Enterprise Linux 5 Server - Supplementary Beta (Debug RPMs) from RHUI - 13: Red Hat Enterprise Linux 5 Server - Supplementary Beta (RPMs) from RHUI - 14: Red Hat Enterprise Linux 5 Server - Supplementary Beta (Source RPMs) from RHUI - 15: Red Hat Enterprise Linux 5 Server Beta from RHUI (Debug RPMs) - 16: Red Hat Enterprise Linux 5 Server Beta from RHUI (RPMs) - 17: Red Hat Enterprise Linux 5 Server Beta from RHUI (Source RPMs) - 18: Red Hat Enterprise Linux 5 Server from RHUI (Debug RPMs) - 19: Red Hat Enterprise Linux 5 Server from RHUI (RPMs) - 20: Red Hat Enterprise Linux 5 Server from RHUI (Source RPMs) - 21: Red Hat Enterprise Linux 6 Server (Debug RPMs) from RHUI - 22: Red Hat Enterprise Linux 6 Server (RPMs) from RHUI * - 23: Red Hat Enterprise Linux 6 Server (Source RPMs) from RHUI - 24: Red Hat Enterprise Linux 6 Server - Optional (Debug RPMs) from RHUI - 25: Red Hat Enterprise Linux 6 Server - Optional (RPMs) from RHUI * - 26: Red Hat Enterprise Linux 6 Server - Optional (Source RPMs) from RHUI - 27: Red Hat Enterprise Linux 6 Server - Optional Beta (Source RPMs) from RHUI - 28: Red Hat Enterprise Linux 6 Server - Optional Beta from RHUI (RPMs) - 29: Red Hat Enterprise Linux 6 Server - Optional Beta from RHUI(Debug RPMs) - 30: Red Hat Enterprise Linux 6 Server - Supplementary (Debug RPMs) from RHUI - 31: Red Hat Enterprise Linux 6 Server - Supplementary (RPMs) from RHUI - 32: Red Hat Enterprise Linux 6 Server - Supplementary (Source RPMs) from RHUI - 33: Red Hat Enterprise Linux 6 Server - Supplementary Beta (Debug RPMs) from RHUI - 34: Red Hat Enterprise Linux 6 Server - Supplementary Beta (RPMs) from RHUI - 35: Red Hat Enterprise Linux 6 Server - Supplementary Beta (Source RPMs) from RHUI - 36: Red Hat Enterprise Linux 6 Server Beta (Source RPMs) from RHUI - 37: Red Hat Enterprise Linux 6 Server Beta from RHUI (Debug RPMs) - 38: Red Hat Enterprise Linux 6 Server Beta from RHUI (RPMs) - 39: Red Hat Update Infrastructure 1.2 (Debug RPMs) - 40: Red Hat Update Infrastructure 1.2 (RPMs) - 41: Red Hat Update Infrastructure 1.2 (Source RPMs) - 42: Red Hat Update Infrastructure 2.0 (Debug RPMs) - 43: Red Hat Update Infrastructure 2.0 (RPMs) - 44: Red Hat Update Infrastructure 2.0 (Source RPMs) Enter value (1-44) to toggle selection, 'c' to confirm selections, or '?' for more commands: 2 Select one or more repositories to include in the entitlement certificate: (an * next to a Red Hat repository indicates it is deployed in the RHUI) Custom Repositories - 1 : /test/02/$basearch test_02 x 2 : custom_1/$basearch custom_1 - 3 : custom/$basearch custom - 4 : test_01 test_01 - 5 : test/03/ test_03 Red Hat Repositories - 6 : Red Hat Enterprise Linux 5 Server - Optional Productivity Applications (Debug RPMs) from RHUI - 7 : Red Hat Enterprise Linux 5 Server - Optional Productivity Applications (RPMs) from RHUI - 8 : Red Hat Enterprise Linux 5 Server - Optional Productivity Applications (Source RPMs) from RHUI - 9 : Red Hat Enterprise Linux 5 Server - Supplementary (Debug RPMs) from RHUI - 10: Red Hat Enterprise Linux 5 Server - Supplementary (RPMs) from RHUI - 11: Red Hat Enterprise Linux 5 Server - Supplementary (Source RPMs) from RHUI - 12: Red Hat Enterprise Linux 5 Server - Supplementary Beta (Debug RPMs) from RHUI - 13: Red Hat Enterprise Linux 5 Server - Supplementary Beta (RPMs) from RHUI - 14: Red Hat Enterprise Linux 5 Server - Supplementary Beta (Source RPMs) from RHUI - 15: Red Hat Enterprise Linux 5 Server Beta from RHUI (Debug RPMs) - 16: Red Hat Enterprise Linux 5 Server Beta from RHUI (RPMs) - 17: Red Hat Enterprise Linux 5 Server Beta from RHUI (Source RPMs) - 18: Red Hat Enterprise Linux 5 Server from RHUI (Debug RPMs) - 19: Red Hat Enterprise Linux 5 Server from RHUI (RPMs) - 20: Red Hat Enterprise Linux 5 Server from RHUI (Source RPMs) - 21: Red Hat Enterprise Linux 6 Server (Debug RPMs) from RHUI - 22: Red Hat Enterprise Linux 6 Server (RPMs) from RHUI * - 23: Red Hat Enterprise Linux 6 Server (Source RPMs) from RHUI - 24: Red Hat Enterprise Linux 6 Server - Optional (Debug RPMs) from RHUI - 25: Red Hat Enterprise Linux 6 Server - Optional (RPMs) from RHUI * - 26: Red Hat Enterprise Linux 6 Server - Optional (Source RPMs) from RHUI - 27: Red Hat Enterprise Linux 6 Server - Optional Beta (Source RPMs) from RHUI - 28: Red Hat Enterprise Linux 6 Server - Optional Beta from RHUI (RPMs) - 29: Red Hat Enterprise Linux 6 Server - Optional Beta from RHUI(Debug RPMs) - 30: Red Hat Enterprise Linux 6 Server - Supplementary (Debug RPMs) from RHUI - 31: Red Hat Enterprise Linux 6 Server - Supplementary (RPMs) from RHUI - 32: Red Hat Enterprise Linux 6 Server - Supplementary (Source RPMs) from RHUI - 33: Red Hat Enterprise Linux 6 Server - Supplementary Beta (Debug RPMs) from RHUI - 34: Red Hat Enterprise Linux 6 Server - Supplementary Beta (RPMs) from RHUI - 35: Red Hat Enterprise Linux 6 Server - Supplementary Beta (Source RPMs) from RHUI - 36: Red Hat Enterprise Linux 6 Server Beta (Source RPMs) from RHUI - 37: Red Hat Enterprise Linux 6 Server Beta from RHUI (Debug RPMs) - 38: Red Hat Enterprise Linux 6 Server Beta from RHUI (RPMs) - 39: Red Hat Update Infrastructure 1.2 (Debug RPMs) - 40: Red Hat Update Infrastructure 1.2 (RPMs) - 41: Red Hat Update Infrastructure 1.2 (Source RPMs) - 42: Red Hat Update Infrastructure 2.0 (Debug RPMs) - 43: Red Hat Update Infrastructure 2.0 (RPMs) - 44: Red Hat Update Infrastructure 2.0 (Source RPMs) Enter value (1-44) to toggle selection, 'c' to confirm selections, or '?' for more commands: c Name of the certificate. This will be used as the name of the certificate file (name.crt) and its associated private key (name.key). Choose something that will help identify the products contained with it: custom_1_repo Local directory in which to save the generated certificate [current directory]: custom_1_repo Number of days the certificate should be valid [365]: Repositories to be included in the entitlement certificate: Custom Entitlements custom_1/$basearch Proceed? (y/n) y .....................................................................+++ ...........................+++ Entitlement certificate created at custom_1_repo/custom_1_repo.crt ------------------------------------------------------------------------------ rhui (client) => c Full path to local directory in which the client configuration files generated by this tool should be stored (if this directory does not exist, it will be created): /root/custom_1_repo Name of the RPM: custom_1_repo Version of the configuration RPM [2.0]: Full path to the entitlement certificate authorizing the client to access specific channels: /root/custom_1_repo/custom_1_repo.crt Full path to the private key for the above entitlement certificate: /root/custom_1_repo/custom_1_repo.key Full path to the CA certificate or CA chain used to sign the CDS SSL certificate: /root/gen_certs/ca1.crt Select the CDS instance that should be the primary load balancer for the client. All other CDS instances will be listed as back up load balancers in the client's mirror list: 1 - ip-10-54-247-104.eu-west-1.compute.internal 2 - ip-10-49-10-93.eu-west-1.compute.internal Enter value (1-2) or 'b' to abort: 1 Load Balancer Order: ip-10-54-247-104.eu-west-1.compute.internal ip-10-49-10-93.eu-west-1.compute.internal Successfully created client configuration RPM. RPMs can be found at /root/custom_1_repo ------------------------------------------------------------------------------ rhui (client) => ^Z [2]+ Stopped rhui-manager [root@ip-10-49-107-196 ~]# jobs [1]- Stopped rhui-manager [2]+ Stopped rhui-manager [root@ip-10-49-107-196 ~]# fg - rhui-manager ? ------------------------------------------------------------------------------ -= Red Hat Update Infrastructure Management Tool =- -= Client Entitlement Management =- e generate an entitlement certificate c create a client configuration RPM from an entitlement certificate logout removes stored authentication credentials and exits < move to the previous screen ^, home move to the home screen /, clear clears the screen ?, help display help q, quit, exit exit Connected: ip-10-49-107-196.eu-west-1.compute.internal ------------------------------------------------------------------------------ rhui (client) => q [root@ip-10-49-107-196 ~]# cp -f /var/lib/pulp/repos/ content/ custom/ custom_1/ test/ test_01/ test_02/ [root@ip-10-49-107-196 ~]# cp -f /var/lib/pulp/repos/custom_1/i386/ repodata/ X11R6-contrib-3.3.2-11.i386.rpm [root@ip-10-49-107-196 ~]# cp -f /var/lib/pulp/repos/custom_1/i386/repodata/ filelists.sqlite.bz2 filelists.xml.gz other.sqlite.bz2 other.xml.gz primary.sqlite.bz2 primary.xml.gz repomd.xml [root@ip-10-49-107-196 ~]# cp -f /var/lib/pulp/repos/custom_1/i386/repodata/primary.sqlite.bz2 ./ [root@ip-10-49-107-196 ~]# bunzip2 -f primary.sqlite.bz2 [root@ip-10-49-107-196 ~]# sqlite3 primary.sqlite SQLite version 3.6.20 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> .dump PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; CREATE TABLE db_info (dbversion INTEGER, checksum TEXT); INSERT INTO "db_info" VALUES(10,'c2bef479261c5e9a52552192c3e78aa9214135eb65455e0ab89e559819786923'); CREATE TABLE packages ( pkgKey INTEGER PRIMARY KEY, pkgId TEXT, name TEXT, arch TEXT, version TEXT, epoch TEXT, release TEXT, summary TEXT, description TEXT, url TEXT, time_file INTEGER, time_build INTEGER, rpm_license TEXT, rpm_vendor TEXT, rpm_group TEXT, rpm_buildhost TEXT, rpm_sourcerpm TEXT, rpm_header_start INTEGER, rpm_header_end INTEGER, rpm_packager TEXT, size_package INTEGER, size_installed INTEGER, size_archive INTEGER, location_href TEXT, location_base TEXT, checksum_type TEXT); CREATE TABLE files ( name TEXT, type TEXT, pkgKey INTEGER); CREATE TABLE requires ( name TEXT, flags TEXT, epoch TEXT, version TEXT, release TEXT, pkgKey INTEGER , pre BOOLEAN DEFAULT FALSE); CREATE TABLE provides ( name TEXT, flags TEXT, epoch TEXT, version TEXT, release TEXT, pkgKey INTEGER ); CREATE TABLE conflicts ( name TEXT, flags TEXT, epoch TEXT, version TEXT, release TEXT, pkgKey INTEGER ); CREATE TABLE obsoletes ( name TEXT, flags TEXT, epoch TEXT, version TEXT, release TEXT, pkgKey INTEGER ); CREATE TRIGGER removals AFTER DELETE ON packages BEGIN DELETE FROM files WHERE pkgKey = old.pkgKey; DELETE FROM requires WHERE pkgKey = old.pkgKey; DELETE FROM provides WHERE pkgKey = old.pkgKey; DELETE FROM conflicts WHERE pkgKey = old.pkgKey; DELETE FROM obsoletes WHERE pkgKey = old.pkgKey; END; CREATE INDEX packagename ON packages (name); CREATE INDEX packageId ON packages (pkgId); CREATE INDEX filenames ON files (name); CREATE INDEX pkgrequires on requires (pkgKey); CREATE INDEX requiresname ON requires (name); CREATE INDEX pkgprovides on provides (pkgKey); CREATE INDEX providesname ON provides (name); CREATE INDEX pkgconflicts on conflicts (pkgKey); CREATE INDEX pkgobsoletes on obsoletes (pkgKey); COMMIT; sqlite> [root@ip-10-49-107-196 ~]# # Screenlog client # ================ [root@ip-10-59-53-28 ~]# yum repolist Loaded plugins: rhui-lb, security https://ip-10-49-10-93.eu-west-1.compute.internal/pulp/repos//custom_1/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401" Trying other mirror. https://ip-10-54-247-104.eu-west-1.compute.internal/pulp/repos//custom_1/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401" Trying other mirror. repo id repo name status rhui-custom-10001 Custom Repositories - 10001 0 repolist: 0 [root@ip-10-59-53-28 ~]# # Screenlog CDS # ============= [root@ip-10-49-10-93 ~]# cd /var/log/httpd/ [Mon Feb 20 10:52:16 2012] [error] [client 10.48.6.255] Request denied to destination [/pulp/repos//custom/i386/repodata/repomd.xml] [Mon Feb 20 10:52:16 2012] [error] [client 10.48.6.255] user /CN=Red Hat Update Infrastructure: authentication failure for "/pulp/repos//custom/i386/repodata/repomd.xml": Password Mismatch [Mon Feb 20 10:52:20 2012] [error] [client 10.48.6.255] Request denied to destination [/pulp/repos//custom/i386/repodata/repomd.xml] [Mon Feb 20 10:52:20 2012] [error] [client 10.48.6.255] user /CN=Red Hat Update Infrastructure: authentication failure for "/pulp/repos//custom/i386/repodata/repomd.xml": Password Mismatch [Mon Feb 20 10:52:22 2012] [error] [client 10.48.6.255] Request denied to destination [/pulp/repos//custom/i386/repodata/repomd.xml] [Mon Feb 20 10:52:22 2012] [error] [client 10.48.6.255] user /CN=Red Hat Update Infrastructure: authentication failure for "/pulp/repos//custom/i386/repodata/repomd.xml": Password Mismatch [Mon Feb 20 11:07:44 2012] [error] [client 10.48.6.255] Request denied to destination [/pulp/repos//custom/i386/repodata/repomd.xml] [Mon Feb 20 11:07:44 2012] [error] [client 10.48.6.255] user /CN=Red Hat Update Infrastructure: authentication failure for "/pulp/repos//custom/i386/repodata/repomd.xml": Password Mismatch [Mon Feb 20 11:34:27 2012] [error] [client 10.59.53.28] Request denied to destination [/pulp/repos//custom_1/i386/repodata/repomd.xml] [Mon Feb 20 11:34:27 2012] [error] [client 10.59.53.28] user /CN=Red Hat Update Infrastructure: authentication failure for "/pulp/repos//custom_1/i386/repodata/repomd.xml": Password Mismatch [root@ip-10-49-10-93 httpd]#
I easily reproduced the first part of this bug where the uploaded package was not showing up in the repository metadata. A change was made in pulp to make metadata generation an explicit operation and not happen automatically when you add a package to a repo. That bug is here: https://bugzilla.redhat.com/show_bug.cgi?id=738657 I needed to update rhui tools to generate metadata after a package upload operation. This was committed to cloude master: 482aad5ae1fd800dc3f8b24c3dcf5f206ca99cba
Figured out the 401 error problem as well. It's because the entitlement path for the custom repository ends with one of the yum variables ($basearch in this case) that we substitute out before doing the oid vs requested url comparison. There was a bug in the regex used to do that substitution. I filed and fixed this bug in Pulp, bug #795570.
New rh-rhui-tools build to fix the metadata generation: http://download.devel.redhat.com/brewroot/packages/rh-rhui-tools/2.0.56/1.el6/noarch/rh-rhui-tools-2.0.56-1.el6.noarch.rpm New pulp build to fix the 401 error, you will need pulp-cds and pulp-common if you want to install these on your CDS to test: http://download.devel.redhat.com/brewroot/packages/pulp/0.0.263/8.el6/noarch/pulp-cds-0.0.263-8.el6.noarch.rpm http://download.devel.redhat.com/brewroot/packages/pulp/0.0.263/8.el6/noarch/pulp-common-0.0.263-8.el6.noarch.rpm I will get a new iso built tomorrow.
Checked that with http://download.devel.redhat.com/brewroot/packages/rh-rhui-tools/2.0.56/1.el6/noarch/rh-rhui-tools-2.0.56-1.el6.noarch.rpm the repodata contains uploaded package
Checked that with the http://download.devel.redhat.com/brewroot/packages/pulp/0.0.263/8.el6/noarch/pulp-cds-0.0.263-8.el6.noarch.rpm and http://download.devel.redhat.com/brewroot/packages/pulp/0.0.263/8.el6/noarch/pulp-common-0.0.263-8.el6.noarch.rpm the 401 error got fixed
Altogether, the three packages make the E2E custom repository scenario pass...
These builds included in the iso build at http://download.lab.bos.redhat.com/devel/candidates/RHEL-6.2-RHUI-2.0.2-20120221.0/2.0.2/Server/x86_64/iso/RHEL-6.2-RHUI-2.0.2-20120221.0-Server-x86_64-DVD1.iso
[root@ip-10-36-119-102 tmp]# yum repolist Loaded plugins: pulp-profile-update, rhui-lb, security repo id repo name status rhui-custom-10001 Custom Repositories - 10001 4 repolist: 4 verified with 20120221 ISO succeessfully
Released in RHUI 2.0.2