Mailinglist Archive: opensuse-buildservice (105 mails)

< Previous Next >
[opensuse-buildservice] Re: [zypp-devel] a broad appeal to fix opensuse's package-management's repository/redirector failure & recovery mechasnism
On Wednesday 01 October 2014 16:10:32 grantksupport@xxxxxxxxxxxxx wrote:
One idea -- a fallback mechanism *within* a repos' definition would be
useful

For example, allow in a given repo's def'n, having multiple, numbered
baseurls

        baseurl1=http://direct/url/to/specific/site/1/...
        baseurl2=http://direct/url/to/specific/site/2/...
        baseurl3=http://download.opensuse.org/...
        ...
        baseurlN=http://direct/url/to/specific/site/3/...


and add fuction to zypper so that for each repo, the baseurls would be
tried in order for any given failure.

By adding, e.g., a

        failcount2abort=X

to either/both a given repo's defn, or /etc/zypp(er).conf, the overall
process could be terminated if there were "X" # of subsequent fails,
indicating a likely systemic problem requiring further intervention.

This should not be too hard to achieve.


Since libzypp-8.8.0 (openSUSE 11.4) using a 'mirrorlist' url instead
of 'baseurl' within the .repo file is already supported:

#baseurl=http://direct/url/to/specific/site
mirrorlist=url://server/path/to/mirrorlist.file

Defining multiple URLs for a repo this way is possible. I can't remember any
feedback related to mirrorlist, so this feature either works or isn't used.

Probably the later, as a quick check reveals that a local file can't be used
as mirrorlist (file:/localpath/to/mirrorlist.file) and zypper does not switch
non-interactively between the URLs on error. I filed a bugreport to track
this.
[https://bugzilla.suse.com/show_bug.cgi?id=899510]

--

cu,
Michael Andres

+------------------------------------------------------------------+
Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4
+------------------------------------------------------------------+
Michael Andres SUSE LINUX Products GmbH, Development, ma@xxxxxxx
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: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
List Navigation
References