Red Hat Bugzilla – Bug 1273119
Updated PackageKit cached metadata for Workstation live media
Last modified: 2015-10-31 22:32:59 EDT
A little bit of background first:
The Workstation images include a package called PackageKit-cached-metadata that ships a snapshot of yum repo metadata. This was done in order to make gnome-software initial experience better, so that it wouldn't have to go and download a huge amount of metadata just to be able to show what's currently installed in the system.
Normally, it's fine if the cached metadata package is a little bit behind, as gnome-software refreshes the metadata daily.
However, this approach had some downsides. First, we normally don't keep the package up to date and only update it before the release. This means that during pre-release testing it is sometimes horribly out of date.
Secondly, shipping it in a subpackage of PackageKit means that whenever PackageKit is updated, post-GA, users also have to download a 100 MB cached metadata package update.
Third, the manual updating is time consuming to do manually and error prone. For example, last release we accidentally shipped x86_64 cached metadata for i686 images ...
These reports all stem from the fact that PackageKit-cached-metadata is out of date:
So, I talked to dgilmore about this today and we came up with a better solution, which is to automatically copy the metadata over from https://kojipkgs.fedoraproject.org/mash/ during image composes. I came up with a spin-kickstarts change, http://paste.fedoraproject.org/281027 that implements this. I would like to switch to the new approach for next TC/RC; as far as my testing goes, it's working as expected and much better than the previous approach. This change would involve:
1) applying http://paste.fedoraproject.org/281027 to spin-kickstarts
2) dropping PackageKit-cached-metadata from comps
3) doing a new PackageKit build that obsoletes and drops the PackageKit-cached-metadata subpackage
A test image that dgilmore built with the patch above is available at http://koji.fedoraproject.org/koji/taskinfo?taskID=11501773 if anyone wants to try booting it and seeing if gnome-software works.
As per the discussion in the blocker review meeting, I've pushed the spin-kickstarts and comps fixes, and new PackageKit build is incoming:
PackageKit-1.0.10-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-f8475df681
Discussed at 2015-10-19 blocker review meeting: https://meetbot.fedoraproject.org/fedora-blocker-review/2015-10-19/f23-blocker-review.2015-10-19-16.00.html .
During the meeting this was approved as an FE (but rejected as a blocker), but AIUI, we do not in fact need to pull PackageKit-1.0.10-2.fc23 through the freeze; 1) and 2) are sufficient to address this for the release images, and both changes have now been applied (and are just waiting on a mash). Thus I'm going to 'unpropose' this, so we don't pull PK through the freeze needlessly.
Please yell if that was wrong and we actually want to include PK in the frozen images.
Seems to be working as intended.
PackageKit-1.0.10-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update PackageKit'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-f8475df681
PackageKit-1.0.10-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.