If running with "newest=True" and "numOldPackages=2". Grinder will fetch all version of all rpms in the repo. Then it will delete all older rpms that are older than specified versions. This is wasteful, we should modify 'prepareRPMs' to only fetch the rpms we want.
The description for this bug should have read: "newest=False" and "numOldPackages=2". Issue was that grinder would download all available packages, then it would remove the older packages no longer desired. Fix made was to look at the download list of packages and remove the old packages there. This way we don't need to download packages then immediately delete them.
Commit in grinder here: http://git.fedorahosted.org/git/?p=grinder.git;a=commitdiff;h=4baf88f89c0dc72e6e277cf037c3309ae1434777 QE: I added a unit test to address this, you may like to refer to it. cd grinder/test/unit nosetests test_yum_syncs.py::TestYumSync.test_sync_number_old_packages
Fixed in Pulp 0.172, grinder 0.96.
[root@preethi unit]# rpm -q pulp pulp-0.0.172-1.fc14.noarch verified script ran successfully [root@preethi unit]# python test_yum_syncs.py [root@preethi unit]#
Closing with Community Release 15 pulp-0.0.223-4.