On Wed, May 2, 2012 at 12:44 PM, Wes Hardin <[email protected]> wrote:
> On 05/02/2012 11:58 AM, Russ Lavoy wrote:
>> Hello,
>>
>> I have a question regarding keeping the repos clean...  for some
>> reason my repositories on my main cobbler server (the one that has
>> internet access) are smaller in size than my other downstream cobbler
>> servers.  is this because the rsync --delete flag is not used so it
>> cleans up the RPMs that are no longer there?
>>
>> Not sure why this is happening.
>
> That is an issue I brought up on IRC a few weeks back.

I actually think it's opposite of what you were mentioning. Since it's
not using --delete, it shouldn't be removing anything. I think the
issue could be that it's only replicating the most recent version of
the packages, but I'm not 100% sure.

> [Tuesday, April 10, 2012] [14:29:14] <Authority> Is there an easy way to 
> enable
> "--delete" for my rsync's when replicating repos?  I'm finding that my remote
> cobblers are ending up with a lot of cruft after I remove packages from the
> master repo and they remain in the remote repos.
>
> [Tuesday, April 10, 2012] [14:30:39] <Authority> I'm using Cobbler 2.0.11
>
> [Tuesday, April 10, 2012] [17:01:08] <jimi_c>   @Authority: no, it doesn't 
> look
> like there is. Looking in action_reposync.py, the command is pretty much
> hard-coded, and doesn't allow extra options. You can open an issue for that, 
> if
> you like, and in the meantime you could edit that file to include the --delete
> option
>
> [Tuesday, April 10, 2012] [17:21:32] <jimi_c>   replicate is, in my opinion,
> very broken. I'm considering doing a major rewrite on it
>
>
> I did not open a bug/feature request since it's already seemed to be a sore 
> spot
> and instead just worked around it by running a separate "rsync --delete" on 
> each
> repo on the remote side after my replicate.

Sorry if I left you with that impression, I don't think it's a sore
spot with others I was just having issues trying to use it myself and
after digging into it I thought it could be improved via a major
overhaul of the process. I'd be completely willing to accept a feature
request to specify additional rsync flags for replicate (we just did
something similar for mkisofs through the buildiso command). That
would be something useful going forward whether there was a major
rewrite of replicate or not.
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to