Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1714439

Summary: PackageKit (pkcon / through Cockpit) fails if no releasever set on the Satellite side
Product: Red Hat Enterprise Linux 8 Reporter: Maxim Burgerhout <mburgerh>
Component: PackageKitAssignee: Richard Hughes <rhughes>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.1CC: cdonnell, fgarciad, janarula, klember, molasaga, tpelka, vmeghana
Target Milestone: rcKeywords: OtherQA
Target Release: 8.1Flags: pm-rhel: mirror+
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: PackageKit-1.1.12-3.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-05 21:00:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1678350    

Description Maxim Burgerhout 2019-05-28 06:43:30 UTC
Description of problem:
When trying to install a package through pkcon or to update a system through Cockpit, I get the following error:


sudo pkcon install zsh -v
08:25:12	PackageKit          Verbose debugging enabled (on console 1)
08:25:12	PackageKit          filter=(null), filters=0
08:25:12	PackageKit          resolving 1 packages
08:25:12	PackageKit          role now resolve
Resolving                     [                         ] (3%)  Command failed: This tool could not find any available package: cannot update repo 'codeready-builder-for-rhel-8-x86_64-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried; Last error: Status code: 404 for https://sat6cast.deployment6.lan/pulp/repos/Red_Hat/dev/CCV_RHEL8_GENERIC/content/dist/rhel8/8.0/x86_64/codeready-builder/os/repodata/repomd.xml


This can be mitigated by setting the Release Version in the system's content host page in Satellite, and running 'subscription-manager refresh'.

Before setting the releasever, Satellite's foreman-ssl_access_ssl.log shows this:

192.168.101.126 - - [28/May/2019:08:29:44 +0200] "GET /pulp/repos/Red_Hat/dev/CCV_RHEL8_GENERIC/content/dist/rhel8/8.0/x86_64/codeready-builder/os/repodata/repomd.xml HTTP/1.1" 404 224 "-" "libdnf/0.22.4"

After setting the releasever and running s-m refresh, the foreman-ssl_access_ssl.log shows this:

192.168.101.126 - - [28/May/2019:08:30:24 +0200] "GET 
 pulp/repos/Red_Hat/dev/CCV_RHEL8_GENERIC/content/dist/rhel8/8/x86_64/codeready-builder/os/repodata/repomd.xml HTTP/1.1" 200 2809 "-" "libdnf/0.22.4"

Note the different releasever. PackageKit assumes the releasever is "8.0" at first. Yum / dnf correctly sets it to "8" (so yum works fine) and after setting the releasever in Satellite, PackageKit also uses "8".

I have enabled the "8" repositories in my Satellite, not the "8.0" ones. This is what Satellite recommends. 


Version-Release number of selected component (if applicable):
Satellite 6.5
PackageKit-1.1.12-2.el8

How reproducible:


Steps to Reproduce:
1. Sync RHEL8 repos in Satellite, create activation key without setting release version
2. Deploy system
3. Try and use cockpit to update system or pkcon to install a package

Actual results:
Failure with error above


Expected results:
Can install package

Additional info:
I've set high severity as this is an ugly bug from a user PoV

Comment 1 Kalev Lember 2019-05-28 06:51:58 UTC
This might be already fixed upstream by https://github.com/hughsie/PackageKit/commit/be075445cafd370abf1ad3e6e85f2baebef056cb

Comment 2 Maxim Burgerhout 2019-05-28 06:57:09 UTC
Quite possibly. Is that slated for 8.1? Would be happy to test if there's a build somewhere...

Comment 3 Kalev Lember 2019-05-28 08:00:02 UTC
If it works we can definitely try getting it included :)

Here's a scratch build you can test: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=21859888

Comment 4 Maxim Burgerhout 2019-05-29 07:16:22 UTC
Works now:

Before updating PackageKit:
sudo pkcon install zsh
Resolving                     [===                      ] (12%)  Command failed: This tool could not find any available package: cannot update repo 'rhel-8-for-x86_64-baseos-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried; Last error: Status code: 404 for https://sat6cast.deployment6.lan/pulp/repos/Red_Hat/dev/CCV_RHEL8_GENERIC/content/dist/rhel8/8.0/x86_64/baseos/os/repodata/repomd.xml

After updating PackageKit:
sudo pkcon install zsh
Resolving                     [=========================]         
Querying                      [=========================]         
Testing changes               [=========================]         
Finished                      [                         ] (0%)  
The following packages have to be installed:
 zsh-5.5.1-6.el8.x86_64	Powerful interactive shell
Proceed with changes? [N/y] y

                              [=========================]         
Installing                    [=========================]         
Downloading packages          [=========================]         
Testing changes               [=========================]         
Installing packages           [=========================]         
Finished                      [=========================]  


Would be great to get this out of the door asap.

Comment 10 errata-xmlrpc 2019-11-05 21:00:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:3402