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 2019313

Summary: pkcon show package as 'Available' although it is installed
Product: Red Hat Enterprise Linux 9 Reporter: Sumit Bose <sbose>
Component: PackageKitAssignee: Richard Hughes <rhughes>
Status: CLOSED WONTFIX QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: klember, sgadekar
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-02 07:28:19 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:

Description Sumit Bose 2021-11-02 08:12:15 UTC
Description of problem:
rpm show that both oddjob and oddjob-mkhomedir are installed:

# rpm -qa  |grep -i oddjob
oddjob-0.34.7-4.el9.x86_64
oddjob-mkhomedir-0.34.7-4.el9.x86_64

but pkcon shows:

# pkcon search name oddjob
Searching by name             [=========================]         
Finished                      [=========================]         
Available   	oddjob-0.34.7-4.el9.x86_64 (rhel-AppStream)                 	A D-Bus service which runs odd jobs on behalf of client applications
Installed   	oddjob-mkhomedir-0.34.7-4.el9.x86_64 (installed:AppStream)  	An oddjob helper which creates and populates home directories


We found this while testing the realmd feature to install missing components with the help of PackageKit. Since the 'oddjob' package is reported as not installed realmd asks PackageKit to install it but this fails since the package is already installed:

Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: holding daemon: current-invocation
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]:  * Couldn't find file: /usr/sbin/winbindd
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]:  * Couldn't find file: /usr/sbin/winbindd
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]:  * Required files: /usr/sbin/oddjobd, /usr/libexec/oddjob/mkhomedir, /usr/sbin/winbindd, /usr/bin/wbinfo, /usr/bin/net
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]:  * Required files: /usr/sbin/oddjobd, /usr/libexec/oddjob/mkhomedir, /usr/sbin/winbindd, /usr/bin/wbinfo, /usr/bin/net
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]:  * Resolving required packages
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]:  * Resolving required packages
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: CreateTransaction call
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: SetHints call
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: call Resolve (327680, ['oddjob', 'oddjob-mkhomedir', 'samba-winbind', 'samba-winbind-clients', 'samba-common-tools'])
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: call Resolve completed
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: signal: Package (1, 'oddjob-mkhomedir;0.34.7-4.el9;x86_64;installed:AppStream', 'An oddjob helper which creates and populates home directories')
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: signal: Package (1, 'samba-common-tools;4.14.5-102.el9;x86_64;installed:@System', 'Tools for Samba servers and clients')
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: signal: Package (2, 'samba-winbind;4.14.5-102.el9;x86_64;rhel', 'Samba winbind')
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: signal: Package (2, 'oddjob;0.34.7-4.el9;x86_64;rhel-AppStream', 'A D-Bus service which runs odd jobs on behalf of client applications')
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: signal: Package (2, 'samba-winbind-clients;4.14.5-102.el9;x86_64;rhel-AppStream', 'Samba winbind clients')
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe PackageKit[8655]: resolve transaction /11_caccbace from uid 0 finished with success after 5ms
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: signal: Finished (1, 5)
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]:  * Installing necessary packages: oddjob samba-winbind samba-winbind-clients
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]:  * Installing necessary packages: oddjob samba-winbind samba-winbind-clients
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: CreateTransaction call
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: freeing transtaction
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: SetHints call
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: call InstallPackages (1, ['oddjob;0.34.7-4.el9;x86_64;rhel-AppStream', 'samba-winbind;4.14.5-102.el9;x86_64;rhel', 'samba-winbind-clients;4.14.5-102.el9;x86_64;rhel-AppStream'])
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe PackageKit[8655]: uid 0 is trying to obtain org.freedesktop.packagekit.package-install-untrusted auth (only_trusted:0)
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: call InstallPackages completed
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe PackageKit[8655]: new install-packages transaction /12_baccceca scheduled from uid 0
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe PackageKit[8655]: uid 0 obtained auth for org.freedesktop.packagekit.package-install-untrusted
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe PackageKit[8655]: install-packages transaction /12_baccceca from uid 0 finished with failed after 7ms
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: signal: ErrorCode (9, 'oddjob-0.34.7-4.el9.x86_64 is already installed')
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: signal: Finished (2, 7)
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]:  ! oddjob-0.34.7-4.el9.x86_64 is already installed
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]:  ! oddjob-0.34.7-4.el9.x86_64 is already installed
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: released daemon: current-invocation
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: packages: freeing transtaction
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: client gone away: :1.99
Nov 02 01:55:32 ci-vm-10-0-138-7.ad.baseos.qe realmd[10470]: released daemon: :1.99





Version-Release number of selected component (if applicable):
PackageKit-1.2.4-2.el9.x86_64

Comment 2 RHEL Program Management 2023-05-02 07:28:19 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.