Bug 1847124 - Packagekit console client cannot refresh repo data due to undefined repo vars [NEEDINFO]
Summary: Packagekit console client cannot refresh repo data due to undefined repo vars
Keywords:
Status: ASSIGNED
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: PackageKit
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.4
Assignee: Richard Hughes
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-15 18:02 UTC by Neal Gompa
Modified: 2020-09-21 14:35 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
tpelka: needinfo? (bmilar)


Attachments (Terms of Use)
Backport fix to make dnf vars load properly (6.25 KB, patch)
2020-07-09 21:25 UTC, Carl George 🤠
carl: review? (rhughes)
Details | Diff


Links
System ID Priority Status Summary Last Updated
CentOS 16446 None None None 2020-06-15 18:02:51 UTC

Description Neal Gompa 2020-06-15 18:02:51 UTC
Description of problem:
When installing and configuring CentOS, the system is configured with repositories that PackageKit is unable to refresh. This is because PackageKit does not necessarily load all repository variable definitions before fetching repository metadata.

I'm unsure of how pervasively problematic this would be for RHEL, but it's a huge problem for CentOS.

Version-Release number of selected component (if applicable):
1.1.12-6.el8

How reproducible:
Always

Steps to Reproduce:
1. pkcon refresh force

Actual results:
Fatal error: cannot update repo 'BaseOS': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried; Last error: Status code: 404 for http://mirror.internode.on.net/pub/$contentdir/8/BaseOS/x86_64/os/repodata/repomd.xml


Expected results:
Refresh should be successful.

Additional info:
I've made a fix in upstream PackageKit for this some time ago: https://github.com/hughsie/PackageKit/commit/ed73aa6317595d2c2f1bda7990cbd64efb133f84

Comment 1 Neal Gompa 2020-06-15 18:08:31 UTC
Note: I manually cloned this from the CentOS MantisBT (linked as an external bug) so that it can be properly tracked, and added information about the fix to make this easier to resolve.

Comment 2 Neal Gompa 2020-07-08 01:30:35 UTC
I've submitted this as a pull request to CentOS Stream: https://git.centos.org/rpms/PackageKit/pull-request/1

Comment 3 Carl George 🤠 2020-07-09 21:25:49 UTC
Created attachment 1700492 [details]
Backport fix to make dnf vars load properly

I've attached Neal's pull request here in patch form.  Because CentOS is still using the rpmbuild layout (SPECS and SOURCES directories), you'll need to use `patch -p2` to apply it to a flat tree (i.e. RHEL's dist-git).

Comment 4 Neal Gompa 2020-07-10 01:15:53 UTC
"git am -p2" will also work using the commit straight from the PR. :)


Note You need to log in before you can comment on or make changes to this bug.