[zypp-devel] How to restrain/disable mirror's usage

Hi everyone We're using a set of OpenSUSE 11.4 / 12.1 VMs behind a proxy here, and we're having trouble with zypper trying to fetch packages from mirrors which are blocked. We can white list somes for better performance, but not all of them, neither on a dynamic basis if some new one show up. Is there such kind of options ? Couldn't find anything really useful... Thought I'ld ask before screwing with stuff like /usr/share/zypper/xml/xmlout.rnc, commenting repo-element's mirrorlist attribute. Thanks & regards, Rémy -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org

On Friday 10 August 2012 16:08:59 Rémy GARRIGUE wrote:
Hi everyone
We're using a set of OpenSUSE 11.4 / 12.1 VMs behind a proxy here, and we're having trouble with zypper trying to fetch packages from mirrors which are blocked. We can white list somes for better performance, but not all of them, neither on a dynamic basis if some new one show up.
Is there such kind of options ?
Probably not what you are looking for. Zypp has no builtin mirror handling, it simply follows the redirect of download.opensuse.org. You can define multiple 'baseurl' entires or a 'mirrorlist' in a .repo file, but zypp does not measure the quality of service nor does it do any load balancing. It will simply pick the 1st URL that works. So you probably want to use some mirror directly instead of download.opensuse.org. See http://mirrors.opensuse.org/ for a list of mirrors. -- 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

On Monday 27 August 2012 14:42:30 Michael Andres wrote:
On Friday 10 August 2012 16:08:59 Rémy GARRIGUE wrote:
Hi everyone
We're using a set of OpenSUSE 11.4 / 12.1 VMs behind a proxy here, and we're having trouble with zypper trying to fetch packages from mirrors which are blocked. We can white list somes for better performance, but not all of them, neither on a dynamic basis if some new one show up.
Is there such kind of options ?
Probably not what you are looking for. Zypp has no builtin mirror handling, it simply follows the redirect of download.opensuse.org.
You can define multiple 'baseurl' entires or a 'mirrorlist' in a .repo file, but zypp does not measure the quality of service nor does it do any load balancing. It will simply pick the 1st URL that works.
So you probably want to use some mirror directly instead of download.opensuse.org. See http://mirrors.opensuse.org/ for a list of mirrors.
Sorry, I forgot that since 11.4 the multicurl backend, using metalink for downloading from download.opensuse.org, is used as default: Zypp won't be redirected, but the metalink file retrieved from download.opensuse.org contains a prioritized list of mirrors. Unless not all of them are blocked, download should be possible. Check /var/log/zypper.log (look for MediaMultiCurl.cc messages) to see which mirrors it tries to use. If some mirror is not reachable, the backend will ignore the error and try the next one from the list. AFAIK it uses up to 5 mirrors in parallel. But there's no option for you to tell the backend, which mirror to use or omit. So you can't reliably prevent the backend from trying to connect to a blocked site. You can just try to open at least the top-5 mirror sites download.opensuse.org chooses for your location. -- 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
participants (2)
-
Michael Andres
-
Rémy GARRIGUE