[opensuse] zypper: trying the mirrorlist feature
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, In this post: http://lists.opensuse.org/opensuse/2014-10/msg00096.html, it was mentioned a feature to locally define a list of alternative mirrors for repositories, in the .repo file: #baseurl=http://direct/url/to/specific/site mirrorlist=url://server/path/to/mirrorlist.file This feature is not documented, AFAIK. So, with the current problems with packman, which doesn't use mirrorbrain or some other balancing or failover mechanism, I decided to try it. In the packman .repo file, I wrote: #baseurl=http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_13.1/ mirrorlist=file:///etc/zypp/repos.d/packmanmirrorlist.file And I created "/etc/zypp/repos.d/packmanmirrorlist.file": http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_13.1/ http://mirror.karneval.cz/pub/linux/packman/suse/openSUSE_13.1/ Then tried: Telcontar:~ # zypper --verbose ref EXT_Packman Verbosity: 1 Non-option program arguments: 'EXT_Packman' Initializing Target Specified repositories: EXT_Packman Checking whether to refresh metadata for EXT: Packman Repository Error retrieving metadata for 'EXT: Packman Repository': Url scheme requires path name <=============== Skipping repository 'EXT: Packman Repository' because of the above error. Could not refresh the repositories because of errors. Telcontar:~ # Ideas? - -- Cheers Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlV60DYACgkQtTMYHG2NR9W+iQCfXbCG3s7j6SXpOwjBgZo395tL w18An0vlu7rAWHtgIwLPksewgw6DpPv+ =qv/Z -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Carlos E. R. wrote:
In this post: http://lists.opensuse.org/opensuse/2014-10/msg00096.html, it was mentioned a feature to locally define a list of alternative mirrors for repositories, in the .repo file:
#baseurl=http://direct/url/to/specific/site mirrorlist=url://server/path/to/mirrorlist.file
This feature is not documented, AFAIK.
So, with the current problems with packman, which doesn't use mirrorbrain or some other balancing or failover mechanism, I decided to try it.
In the packman .repo file, I wrote:
#baseurl=http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_13.1/ mirrorlist=file:///etc/zypp/repos.d/packmanmirrorlist.file
And I created "/etc/zypp/repos.d/packmanmirrorlist.file":
http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_13.1/ http://mirror.karneval.cz/pub/linux/packman/suse/openSUSE_13.1/
Then tried:
Telcontar:~ # zypper --verbose ref EXT_Packman Verbosity: 1 Non-option program arguments: 'EXT_Packman' Initializing Target Specified repositories: EXT_Packman Checking whether to refresh metadata for EXT: Packman Repository Error retrieving metadata for 'EXT: Packman Repository': Url scheme requires path name <=============== Skipping repository 'EXT: Packman Repository' because of the above error. Could not refresh the repositories because of errors. Telcontar:~ #
Ideas?
Maybe - in the posting you qouted above, it also says: 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 -- Per Jessen, Zürich (28.1°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2015-06-12 14:56, Per Jessen wrote:
Carlos E. R. wrote:
Ideas?
Maybe - in the posting you qouted above, it also says:
a quick check reveals that a local file can't be used as mirrorlist (file:/localpath/to/mirrorlist.file)
Ah. That's a nuisance. But I happen to have an apache running, so that I can use it - but not on the laptop if I'm not at home. I'll try that later. It would be best if the list could be a local file, or a list inside the .repo file itself. Feature request, perhaps?
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
Another nuisance... Thanks! - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlV64PAACgkQja8UbcUWM1zZqgEAibcMvz/qkXqif+wOeqUUDv/B jRowaMTRyWekq76fx8IBAITZPmTYFBRm6cD6BeN/0S8mXolI8XvaBzyuayx82SqF =dnpR -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2015-06-12 15:38, Carlos E. R. wrote:
On 2015-06-12 14:56, Per Jessen wrote:
Carlos E. R. wrote:
Ideas?
Maybe - in the posting you qouted above, it also says:
a quick check reveals that a local file can't be used as mirrorlist (file:/localpath/to/mirrorlist.file)
Ah. That's a nuisance. But I happen to have an apache running, so that I can use it - but not on the laptop if I'm not at home. I'll try that later.
Yes, this works: mirrorlist=http://localhost/packmanmirrorlist.file But partially. If the first line in the file fails, it does not switch over to the second, neither automatically nor manually: Telcontar:~ # cat /srv/www/htdocs/packmanmirrorlist.file http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_13.4/ http://mirror.karneval.cz/pub/linux/packman/suse/openSUSE_13.1/ Telcontar:~ # zypper --verbose ref EXT_Packman Verbosity: 1 Non-option program arguments: 'EXT_Packman' Initializing Target Specified repositories: EXT_Packman Checking whether to refresh metadata for EXT: Packman Repository Retrieving: repomd.xml ...........................................................................................................................................[error] File '/repodata/repomd.xml' not found on medium 'http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_13.4/' Abort, retry, ignore? [a/r/i/? shows all options] (a): ? a - Skip retrieval of the file and abort current operation. r - Try to retrieve the file again. i - Skip retrieval of the file and try to continue with the operation without the file. u - Change current base URI and try retrieving the file again. [a/r/i/? shows all options] (a): a Retrieving: repomd.xml ............................................................................................................................................[done] Repository 'EXT: Packman Repository' is up to date. Specified repositories have been refreshed. Telcontar:~ # Thus the feature seem pointless... except for an external server, that would supply a different file on each request, to balance load on mirrors. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2015-06-12 17:41, Carlos E. R. wrote:
On 2015-06-12 15:38, Carlos E. R. wrote:
Thus the feature seem pointless... except for an external server, that would supply a different file on each request, to balance load on mirrors.
The bugzilla mentions a new syntax, but requires libzypp-14.30.0. I have version 13.10: baseurl=http://software.opensuse.org/download/ruby/openSUSE_10.2/ http://some.opensuse.mirror/ruby/openSUSE_10.2/ which doesn't work. - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlV7FMcACgkQtTMYHG2NR9VzOACbB+vJNK+/BbV4pWA5P4A4lHzY vzYAnRd9R0aaw6H0gvA1rVkpG7zq43Hl =QbCB -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2015-06-12 17:41, Carlos E. R. wrote:
Thus the feature seem pointless... except for an external server, that would supply a different file on each request, to balance load on mirrors.
"abort" appears to switch to the next mirror. I haven't tried an actual install, yet. It will be a pain to install/update a dozen packages and having to click abort on each one... I have to check that. I have created a bugzilla entry for 13.1, https://bugzilla.opensuse.org/show_bug.cgi?id=934612 YaST (qt) appears to switch over automatically. I installed 3 packages with no prompt, with the first mirror "failing". - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlV7HZQACgkQtTMYHG2NR9WfoACeNISWBBdr13uiY6UYxsRyMMvf /fQAoJg63QnA5IISJV79/oW1v/eF4yek =1S9U -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Yes, this works:
mirrorlist=http://localhost/packmanmirrorlist.file
But partially. If the first line in the file fails, it does not switch over to the second, neither automatically nor manually: Actually it works. Use -vvv to see that it downloads the repomd.xml from
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, On Fri, 12 Jun 2015, Carlos E. R. wrote: the second URL (http://mirror.karneval.cz/pub/linux/packman/suse/openSUSE_13.1/) when the first one fails.
Telcontar:~ # cat /srv/www/htdocs/packmanmirrorlist.file http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_13.4/ http://mirror.karneval.cz/pub/linux/packman/suse/openSUSE_13.1/ Telcontar:~ # zypper --verbose ref EXT_Packman Verbosity: 1 Non-option program arguments: 'EXT_Packman' Initializing Target Specified repositories: EXT_Packman Checking whether to refresh metadata for EXT: Packman Repository Retrieving: repomd.xml ...........................................................................................................................................[error] File '/repodata/repomd.xml' not found on medium 'http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_13.4/'
Abort, retry, ignore? [a/r/i/? shows all options] (a): ?
a - Skip retrieval of the file and abort current operation. r - Try to retrieve the file again. i - Skip retrieval of the file and try to continue with the operation without the file. u - Change current base URI and try retrieving the file again.
[a/r/i/? shows all options] (a): a Retrieving: repomd.xml ............................................................................................................................................[done] Repository 'EXT: Packman Repository' is up to date. Specified repositories have been refreshed. Telcontar:~ #
Thank you for pointing this option though. It was unknown for me. Regards, I. Petrov -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Signed by Topal iQIcBAEBAgAGBQJVex5rAAoJEH8sJoKRFRU55xMP/09hEDSE9BRJ08pQBQhTGYcy OdxChUf4hDoNrY2uGH+jJXXgx2/UWnlo0vewKoJ3YfdS6/wLXMnyw3BJGaq9z+SE BDtj56snouvA24PcP3gp9usVvUk8KckwZQyN0A+kfodpvkOCD4Cnpq87sONDqZPv Vxk+6YhJkro9SI57ITmQUbJfzuAClQDIlzUciowoLDVuWe3jQAHCwBmQADohuqjP Mv/vDcXz43Wir23U9t+jI+nr5DMe5Jfg8PGPjSKNNuJQHUC4avDtJjO+egrqE/p1 pTqNtvefm1lrhXopKjYkqZ8COaye8mH2QHywBJk2foWITqbvWHLEmEjBd+TESP+t WsRCj2B3PuZDKZXfrs19Al7ZQ2hmWcu7yypmPfcGBScwW69Vdmf02NZvbmMSTsTG 2li0to/buq1dWSVfnqqWNj3r+Z5R1vqpXSx5dVYXgyWdNxX4uLVccc7I0Z57SoL5 9qZVc5o2XYGYVmiouevO7bvNFkoHK+s/s8HK3wAt/8hDapfWz2RUBGVx6ah505N4 s4iE3U9H86ZhxPFI9likMZTN/9arluwN/FVyFt2AB0zWjaXyajgT3CQFncOuzXx/ 6w+w7U69p1jyb65qU+erULlAAzos5Du9xtRajWBXlBCOdNTlk6YlTQ15DvKzCV4Z 872wlvkVygnKF+CT/bGE =VQ2R -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2015-06-12 20:01, I. Petrov wrote:
Hello,
On Fri, 12 Jun 2015, Carlos E. R. wrote:
Yes, this works:
mirrorlist=http://localhost/packmanmirrorlist.file
But partially. If the first line in the file fails, it does not switch over to the second, neither automatically nor manually: Actually it works. Use -vvv to see that it downloads the repomd.xml from the second URL (http://mirror.karneval.cz/pub/linux/packman/suse/openSUSE_13.1/) when the first one fails.
But you have to enter (a)bort so that it continues. YaST, on the other hand, appears to failover silently.
Thank you for pointing this option though. It was unknown for me.
nobody knows... it is undocumented. I was just told about this link on the packman mail list: https://en.opensuse.org/openSUSE:Standards_RepoInfo were it is mentioned its existence, just one line: Instead of yum's mirrorlist plaintext file, the next release of libzypp will use Metalinks for failover handling of URLs. (details ...) However, the details link is dead, nobody filled it. - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlV7ItcACgkQtTMYHG2NR9VurgCfZ4UiABU6phZ50Lyihheu0Xrk pcMAnj1qwTSbekyn58Jgx1t6JT46u7UD =+Glr -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 12/06/2015 20:20, Carlos E. R. a écrit :
ibzypp will use Metalinks for failover handling of URLs
google this and https://en.opensuse.org/openSUSE:Standards_RepoInfo http://www.metalinker.org/ jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2015-06-12 20:29, jdd wrote:
Le 12/06/2015 20:20, Carlos E. R. a écrit :
ibzypp will use Metalinks for failover handling of URLs
google this and
That's the one I posted.
Yes, that's one of the links in the above link. But the one of interest would be under the "details..." link of the wiki, but it is in red and points to an empty page. It is the "details" link which would be of interest, in order to make use of the feature, if possible. - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlV7KzEACgkQtTMYHG2NR9X9/wCeKTv9H3FU55bJ7H8sFwXGp8yT v/IAmQF6Tr7UPFRBo/lQ8LEGRseoZFSD =c+nZ -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen composed on 2015-06-12 14:56 (UTC+0200):
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
This is an opensuse mailing list, not SLE: https://bugzilla.opensuse.org/show_bug.cgi?id=899510 https://bugzilla.opensuse.org/show_bug.cgi?id=863582 -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Felix Miata wrote:
Per Jessen composed on 2015-06-12 14:56 (UTC+0200):
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
This is an opensuse mailing list, not SLE: https://bugzilla.opensuse.org/show_bug.cgi?id=899510 https://bugzilla.opensuse.org/show_bug.cgi?id=863582
I'm sorry, I don't get your point Felix? Both bugreports are for openSUSE. That the URL is different, well, I was quoting from the opensuse list. -- Per Jessen, Zürich (28.6°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen composed on 2015-06-12 17:41 (UTC+0200):
Felix Miata wrote:
Per Jessen composed on 2015-06-12 14:56 (UTC+0200):
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
This is an opensuse mailing list, not SLE: https://bugzilla.opensuse.org/show_bug.cgi?id=899510 https://bugzilla.opensuse.org/show_bug.cgi?id=863582
I'm sorry, I don't get your point Felix?
Either you didn't read the latter URL, or you don't agree with it. Otherwise I don't know how you could have missed my point.
That the URL is different, well, I was quoting from the opensuse list.
Good mailing list etiquette requires quoting be relevant. This is an openSUSE list, not a suse list. To that end, openSUSE users should be using bugzilla.opensuse.org rather than bugzilla.suse.com. True they're the same underneath, but the point is the faces *are* different, with good reason, and consistency is good, while multiple URLs for the same content is bad. -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Felix Miata wrote:
Good mailing list etiquette requires quoting be relevant. This is an openSUSE list, not a suse list. To that end, openSUSE users should be using bugzilla.opensuse.org rather than bugzilla.suse.com. True they're the same underneath, but the point is the faces *are* different, with good reason, and consistency is good, while multiple URLs for the same content is bad.
Oh please. You're whining about the hostname in a URL .... -- Per Jessen, Zürich (17.8°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2015-06-12 17:08, Felix Miata wrote:
Per Jessen composed on 2015-06-12 14:56 (UTC+0200):
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
This is an opensuse mailing list, not SLE: https://bugzilla.opensuse.org/show_bug.cgi?id=899510 https://bugzilla.opensuse.org/show_bug.cgi?id=863582
Sigh... 1) It is the same bugzilla service. 2) It is a quote from the mail I posted the link to, which had that text. Altering the text from a mail posted by someone else, months ago, is incorrect, bad form. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Carlos E. R. composed on 2015-06-12 17:47 (UTC+0200):
Altering the text from a mail posted by someone else, months ago, is incorrect, bad form.
So then don't quote it at all. Quoting is not required when relevance is debatable or missing. Trimming is good, required even. IOW, leave out the bad part of the post you're quoting from, compose in good as your own. Skipping the poor URL and putting in the good reduces the pain of using the most gratingly annoying of FOSS bug trackers, Novell^H^H^H^H^H^HMicrofocus's. -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2015-06-12 21:56, Felix Miata wrote:
Carlos E. R. composed on 2015-06-12 17:47 (UTC+0200):
Altering the text from a mail posted by someone else, months ago, is incorrect, bad form.
So then don't quote it at all. Quoting is not required when relevance is debatable or missing.
The quoting was absolutely relevant. I needed to notice there was a bugzilla and where. And no, editing the URL is bad form. - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlV7ZNwACgkQja8UbcUWM1yBUgEAgBL0cqkdC8hkPHzYWW+4DCbz atO7pnIa4/IxWixyUJQBAJCmk2vVGiZFcUIbcNlc+xHEUyNJAVj12s4022B6kMf1 =gYT3 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 2015-06-12 21:56, Felix Miata wrote:
Carlos E. R. composed on 2015-06-12 17:47 (UTC+0200):
Altering the text from a mail posted by someone else, months ago, is incorrect, bad form.
So then don't quote it at all. Quoting is not required when relevance is debatable or missing.
The quoting was absolutely relevant. I needed to notice there was a bugzilla and where. And no, editing the URL is bad form.
Yes, when quoting one should not alter the quote. -- Per Jessen, Zürich (17.4°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (6)
-
Carlos E. R.
-
Carlos E. R.
-
Felix Miata
-
I. Petrov
-
jdd
-
Per Jessen