Bug 90912

Summary: PackageKit does not respect private mirrors, seems to jump mirrors after every package download
Product: PackageKit Reporter: Kamil Páral <kparal>
Component: backend-yumAssignee: Richard Hughes <richard>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: metalink.xml

Description Kamil Páral 2015-06-09 07:41:13 UTC
Created attachment 116388 [details]
metalink.xml

PackageKit doesn't seem to respect private mirrors. When I access Fedora repository metalink at this address:

https://mirrors.fedoraproject.org/metalink?repo=fedora-22&arch=x86_64

I see this:

      <resources maxconnections="1">
        <url protocol="http" type="http" location="CZ" preference="100" mm0:private="True">http://download.eng.brq.redhat.com/pub/fedora/linux/development/22/x86_64/os/repodata/repomd.xml</url>

yum and dnf respect this and use solely this mirror to download packages, therefore everything uses our internal 1Gbit network.

However, packagekit (used through gnome-software) does not. When looking into iptraf-ng, it seems that it is contacting a different mirror for every package download, probably picking in random or cycling through the list. The download speeds jump from 100kB/s to 100MB/s (when it randomly downloads a single package from our internal mirror).

The overall experience is that downloading updates with packagekit is extremely slow (I use pkmon to monitor progress). And I have a feeling that it is not just related to private mirrors. Even when I'm at home, packagekit feels an order of magnitude slower than yum/dnf. My theory is that by jumping the mirrors after each package download, it needs to open a new connection every time, so it does not allow for download pipelining, as you can do when downloading from a single host. (But that would be a different issue, I'm mentioning it just in case it was important.)

Please make PackageKit respect private mirrors. And ideally make the download logic synchronized with dnf (could it be somehow shared between the projects?). Thank you.

PackageKit-1.0.6-6.fc22.x86_64
Comment 1 Kamil Páral 2016-07-18 09:34:48 UTC
This has been fixed in https://bugzilla.redhat.com/show_bug.cgi?id=1336404

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.