On Tuesday 19 June 2012 15:55:31 Martin Vidner wrote:
Hi,
(proposed) short version: in the future (not including SLE11-SP2) repo services will be cached, so if you expect a service to change (SP migration?), call "zypper refs".
Discussion, please comment (Wagon, SUSE Manager, hello):
SP migration is quite an easy case as it is our code and we know when the service will change. Not a big deal to add the 'zypper refs'. More interesting are the plugin services (Spacewalk / SUSE Manager) where the client does not know when the channels at the server side are reassigned. Scripts we provide can be adapted (action scripts, bootstrap).
With the service cache, those use cases would need an explicit service cache invalidation AKA zypper service-refresh (refs). I think that should be done in the long term, and in the short term (SLE11 SP2) the service cache would be disabled by default.
In the first place it would not be implemented for SLE11-SP2. It is targeting SLE12, isn't it?
Regarding how to control the service cache: a) zypp.conf has an option repo.refresh.delay, so we could add service.refresh.delay b) a CLI option '--allow-service-cache <sec>' I prefer (a) for symmetry and it seems that (b) per-run config is not needed, otherwise users would request --allow-repo-cache already.
Well --allow-repo-cache isn't needed because we already have repo.refresh.delay. A CLI option would make sense if we are looking for a quick zypper-only solution which may even be portable to SP2. While a) is a real feature. -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres SUSE LINUX Products GmbH, Development, ma@suse.de GF:Jeff Hawn,Jennifer Guild,Felix Imendörffer, HRB16746(AG Nürnberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org