Description of problem: pulp yum repo syncs download the metadata as the first step. Which sets up the stage for rest of the content fetch. For resyncs and pulling updates, the new metadata will need to be stored in a temp directory until the entire sync is complete before serving the new updated metadata.
commit a57565861fd35502ca63a49978efa942a0800fd6 Author: Pradeep Kilambi <pkilambi> Date: Mon Feb 7 13:46:50 2011 -0500 fix in grinder 0.0.79-1 or higher
Fixed in 0.136.
Test plan <prad> basically when you do a resync .. do a watch on /var/lib/pulp/repos/<repo-path>/ <preethi> ok <prad> you'll see a repodata.new for a while and it will disappear <prad> and the repodata directory will hvae that new info upon completion <prad> ideally this is how you would test: <prad> 1. subscribe your client to that repo <prad> 2. perform yum operations on packages that are in source repo but not on pulp repo <prad> so basically you need an update or a new package when you do resync <preethi> ok <prad> this should not succeed until the sync fails <prad> as the new metadata is still in temp location
verified [root@preethi ~]# rpm -q pulp pulp-0.0.213-1.fc14.noarch [root@preethi ~]# root@preethi ~]# pulp-admin repo sync --id=f14 -F Sync for repository f14 started Sync: Finished 1/2773 new items downloaded 2772/2773 existing items processed [root@preethi ~]# ls -l /var/lib/pulp/repos/released/F-14/GOLD/Fedora/x86_64/os/ total 212 drwxr-sr-x. 3 apache apache 4096 Jul 25 09:05 images drwxr-sr-x. 2 apache apache 200704 Jul 25 09:05 Packages drwxr-sr-x. 2 apache apache 4096 Jul 26 15:26 repodata drwxr-sr-x. 2 apache apache 4096 Jul 26 15:28 repodata.new
Closing with Community Release 15 pulp-0.0.223-4.