Red Hat Bugzilla – Bug 980181
RFE - Publish listing files in exported repositories
Last modified: 2014-03-30 21:40:28 EDT
Red Hat's CDN uses special 'listing' files to indicate, at a product level, what repositories are available underneath, examples include:
1) Published repository directories hosted by Pulp need equivalent listing files
2) Exported (ISO or otherwise) repositories need to preserve the listing files so when copied and synced into another Pulp server these listing files can be used
In order to make Pulp repositories look and act like Red Hat CDN hosted repositories for purposes of export we need to either:
(A) Preserve the listing files hosted at Red Hat's CDN. This may be difficult because when syncing a repository pulp only knows the URL of the repo itself, not the higher level directory structure
(B) Publish new listing files that are just a reflection of the directories contained within the published repositories. This seems more doable since Pulp has access to the file system and could possibly create listing files based on the published structure
but happy to fill out more details here if needed.
*** Bug 867602 has been marked as a duplicate of this bug. ***
The export workflow will not be impacted by this RFE, as Pulp won't make any effort to preserve listing files from an upstream source. Instead, we'll follow solution B and generate listing files at publish time for every yum repo.
When a yum repository is published, pulp will re-generate the "listing" files in each parent directory up to /pulp/repos/ For example:
1) a repo gets published at /pulp/repos/a/b/c/
2) change working directory to the parent directory
3) create or overwrite a file named "listing" which contains the names of each directory in the current working directory, one per line
4) if the current working directory is not /pulp/repos/, GOTO 2
Please confirm that this will be sufficient.
ACK to the above
listing file generation added to repo publish
This ended up in PR https://github.com/pulp/pulp_rpm/pull/293
Correction: not included in 2.2.
[root@pulp-v2-server ~]# rpm -qa |grep pulp-server
listing file exist with repo info
Pulp 2.3 released.