http://bugzilla.opensuse.org/show_bug.cgi?id=934612
Bug ID: 934612
Summary: mirrorlist token in .repo file doesn't work properly.
Classification: openSUSE
Product: openSUSE 13.1
Version: Final
Hardware: Other
OS: openSUSE 13.1
Status: NEW
Severity: Normal
Priority: P5 - None
Component: libzypp
Assignee: zypp-maintainers@forge.provo.novell.com
Reporter: carlos.e.r@opensuse.org
QA Contact: qa-bugs@suse.de
Found By: ---
Blocker: ---
Packman, as you may know, doesn't use mirror brain. When the defined mirror
fails, zypper ref fails, as happened recently (http://packman.inode.at/ is
down). However, since 11.4 there is an undocumented feature to use "mirrorlist"
instead of "baseurl" in the .repo file.
First test fails:
++—-—-—-—-—-—-—-—-—-—-
#baseurl=http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_13.1/
mirrorlist=file:///etc/zypp/repos.d/packmanmirrorlist.file
—-—-—-—-—-—-—-—-—-—-++-
And I created the corresponding "/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:~ #
—-—-—-—-—-—-—-—-—-—-++-
I was told on the mail http://lists.opensuse.org/opensuse/2015-06/msg00281.html> that a file: URL
doesn't work. So I defined an URL in my local apache instead:
mirrorlist=http://localhost/packmanmirrorlist.file
This works, apparently.
However, if I provoke a failure on the first "mirror", there is no failover to
the second, neither manually nor automatically:
+++—-—-—-—-—-—-—-—-—-—-
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: packmanmirrorlist.file
..........................................[done]
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): i
Retrieving: repomd.xml
......................................................[done]
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]
Retrieving: repomd.xml.asc
..................................................[done]
Retrieving: repomd.xml.key
..................................................[done]
Retrieving: repomd.xml
......................................................[done]
Retrieving: primary.xml.gz
..................................................[done]
Retrieving repository 'EXT: Packman Repository' metadata
.............................................................................[done]
Building repository 'EXT: Packman Repository' cache
.............................................................................[done]
Specified repositories have been refreshed.
Telcontar:~ #
—-—-—-—-—-—-—-—-—-—-++-
Unless... Apparently, "Abort" switches over to the next mirror? Well, it is a
sort of kludge, but it should use the next mirror automatically. And accept
"file://" urls.
I understand that this issue has been corrected in factory (Bug 899510).
Can it backported to 13.1 and 13.2?
+++—-—-—-—-—-—-—-—-—-—-
—-—-—-—-—-—-—-—-—-—-++-
--
You are receiving this mail because:
You are on the CC list for the bug.