Hey, I’m on Pulp v2.21.

 

Use case is pretty simple. We have multiple, globally positioned pulp servers 
which are setup to replicate the master. We have a GSLB which route requests to 
the closest datacenter. Since each of the Pulp servers publish 
repodata/packages.xml.gz + others in a seemingly random order, the sha hash 
makes a different filename on each regional.  Trying to see if packages can be 
populated in alphabetical order so all the repodata folders are consistent.

 

You can easily replicate this. pulp-admin rpm repo publish run --repo-id 
<some_repo> --force   Each time you’ll get a different set of repodata files 
even though the content doesn’t change.

 

From: Tatiana Tereshchenko <[email protected]>
Date: Monday, February 3, 2020 at 5:34 PM
To: Chris Taylor <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: [Pulp-list] Package list order in repodata files

 

Chris,  

Could you provide a version of pulp you are using and also share your use case?

 

Thank you,

Tanya

 

On Mon, Feb 3, 2020 at 10:44 PM Chris Taylor (chtaylo2) <[email protected]> 
wrote:

We have a Pulp server which acts as a master content provider. Subsequently we 
have global sites, running their own Pulp server which sync directly from the 
master. I’m finding during the publishing, each of the repodata/*XML* files 
have packages in random orders. 

For example:
Site 1:
$ curl 
https://<server1>/repodata/8da5461a50987cce81ca57a4e699edc64815c45024416cb74bdd431fd4748a31-primary.xml.gz
 | gunzip | grep '<name>' | head -n3
  <name>atomic-registries</name>
  <name>ansible</name>
  <name>cockpit-packagekit</name>

Site 2:
$ curl 
https://<server2>/repodata/79524dc840b7c913836ccc44d06ae0c5a3235abfde8d2af6a59bdc0f5a7e6c5b-primary.xml.gz
 | gunzip | grep '<name>' | head -n3
  <name>docker-client</name>
  <name>cockpit-machines</name>
  <name>kubernetes-client</name>


If you do a SORT + md5sum on the above files, they match so the order on the 
publishing is causing this. Is there any way to force consistent/alphabetical 
ordering of packages in these files?

Thanks!
/Chris
_______________________________________________
Pulp-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pulp-list

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Pulp-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pulp-list

Reply via email to