When a repo is sync'd from a source where the packages are not stored directly in the root of the repository, Pulp's published repo will be incorrect. The XML snippets that get formed into primary.xml have the original <location/> tags with a relative path like: <location href="Packages/c/ConsoleKit-0.4.5-3.fc18.x86_64.rpm" /> but Pulp doesn't actually generate that directory structure. Instead Pulp puts everything in ./, which means anyone trying to use the published repo will get 404 errors when downloading RPMs. For the moment, it's probably easiest for us to strip off the leading part of the path in every location tag.
https://github.com/pulp/pulp_rpm/pull/228
build: 2.2.0-0.3.beta
Preethi, this is a bug you found where you got errors trying to sync from a repo that had been published by pulp 2.2. You can verify this by trying that again.
verified [root@hp-dl360g6-01 ~]# rpm -q pulp-server pulp-server-2.2.0-0.3.beta.fc18.noarch [root@hp-dl360g6-01 ~]# pulp-admin rpm repo sync run --repo-id f18 +----------------------------------------------------------------------+ Synchronizing Repository [f18] +----------------------------------------------------------------------+ This command may be exited by pressing ctrl+c without affecting the actual operation on the server. Downloading metadata... [-] ... completed Downloading repository content... [==================================================] 100% RPMs: 4165/4165 items Delta RPMs: 0/0 items ... completed Downloading distribution files... [==================================================] 100% Distributions: 8/8 items ... completed Importing errata... [-] ... completed Importing package groups/categories... [\] ... completed Publishing packages... [==================================================] 100% Packages: 4165/4165 items ... completed Publishing distributions... [==================================================] 100% Distributions: 8/8 items ... completed Generating metadata [/] ... completed Publishing repository over HTTPS [-] ... completed [root@hp-dl360g6-01 ~]# pulp-admin rpm repo create --repo-id f18-local --feed file:///var/lib/pulp/published/https/repos/f18/ Successfully created repository [f18-local] [root@hp-dl360g6-01 ~]# pulp-admin rpm repo sync run --repo-id f18-local+----------------------------------------------------------------------+ Synchronizing Repository [f18-local] +----------------------------------------------------------------------+ This command may be exited by pressing ctrl+c without affecting the actual operation on the server. Downloading metadata... [/] ... completed Downloading repository content... [==================================================] 100% RPMs: 4165/4165 items Delta RPMs: 0/0 items ... completed Downloading distribution files... [==================================================] 100% Distributions: 8/8 items ... completed Importing errata... [-] ... completed Importing package groups/categories... [-] ... completed Publishing packages... [==================================================] 100% Packages: 4165/4165 items ... completed Publishing distributions... [==================================================] 100% Distributions: 8/8 items ... completed Generating metadata [|] ... completed Publishing repository over HTTPS [-] ... completed [root@hp-dl360g6-01 ~]#
2.2 released http://repos.fedorapeople.org/repos/pulp/pulp/stable/2.2/