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 629049 - yum doesn't detect groups in the Red Hat Enterprise linux Supplementary category comps data
Summary: yum doesn't detect groups in the Red Hat Enterprise linux Supplementary categ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: PackageKit
Version: 6.0
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Richard Hughes
QA Contact: desktop-bugs@redhat.com
URL:
Whiteboard:
Depends On: 629274
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-31 19:16 UTC by James Laska
Modified: 2015-09-28 02:12 UTC (History)
6 users (show)

Fixed In Version: PackageKit-0.5.8-19.el6
Doc Type: Bug Fix
Doc Text:
Under some circumstances, the Add/Remove Software (gpk-application) graphical user interface does not display Supplementary groups or packages the Supplementary group is chosen. To work around this, use the System > Refresh Package Lists option to refresh the package lists.
Clone Of:
Environment:
Last Closed: 2011-05-19 14:01:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Screenshot - correctly displaying packages in another group (76.17 KB, image/png)
2010-08-31 19:16 UTC, James Laska
no flags Details
creenshot - incorrectly showing the contents of the 'Red Hat Enterprise Supplementary' group (52.88 KB, image/png)
2010-08-31 19:17 UTC, James Laska
no flags Details
simple yum test program (302 bytes, text/plain)
2010-09-08 14:28 UTC, Richard Hughes
no flags Details
output of the simple test program (2.88 KB, text/plain)
2010-09-08 14:30 UTC, Richard Hughes
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0681 0 normal SHIPPED_LIVE PackageKit bug fix update 2011-05-18 18:10:34 UTC

Description James Laska 2010-08-31 19:16:28 UTC
Created attachment 442258 [details]
Screenshot - correctly displaying packages in another group

Description of problem:

gpk-application doesn't seem to display the Supplementary packages when you click on the Supplementary group in the user interface.

Version-Release number of selected component (if applicable):

 * RHEL6.0-Supplementary-20100826.0-Client-i386-DVD1.iso
 * gnome-packagekit-2.28.3-3.el6.i686
 * PackageKit-0.5.8-13.el6.i686

Steps to Reproduce:
1. Update RHEL6-Client/i386 system to the latest nightly packages
2. Burn RHEL6.0-Supplementary-20100826.0-Client-i386-DVD1.iso to optical CD-R media
3. Insert media into system
4. Start gpk-application
5. Select 'Red Hat Enterprise Linux Supplementary' group (see screenshot)

Actual results:

No packages listed in the group 'Red Hat Enterprise Linux Supplementary'

Expected results:

Click any other group and you see packages that below to that group.  I expected to see the packages included on the Supplementary CD.  See attached screenshot for example.

Additional info:

Comment 1 James Laska 2010-08-31 19:17:09 UTC
Created attachment 442259 [details]
creenshot - incorrectly showing the contents of the 'Red Hat Enterprise Supplementary' group

Comment 3 Dennis Gregorovic 2010-08-31 19:43:55 UTC
Just to clarify - "Red Hat Enterprise Linux Supplementary" is the category.  Within that category the following groups should be available:

java-base
java-database
java-browser
misc
multimedia
virtualization
zhongyi-song-fonts

The lack of a triangle next to "Red Hat Enterprise Linux Supplementary" in the UI indicates to me that it's not finding any of these groups.

Comment 6 Richard Hughes 2010-09-08 13:58:06 UTC
I can reproduce this bug with your link, thanks. I'll investigate now.

Comment 7 Richard Hughes 2010-09-08 14:28:52 UTC
Created attachment 445995 [details]
simple yum test program

I've traced PackageKit, and it seems to work as expected. I've attached a simple yum script that seems to also fail.

Comment 8 Richard Hughes 2010-09-08 14:30:31 UTC
Created attachment 445996 [details]
output of the simple test program

This shows the missing group information for the 'Supplementary' category.

Comment 9 Richard Hughes 2010-09-08 14:37:16 UTC
Looking at the comps xml manually, it seems to look correct, so I'll re-assign to the yum guys to see if anything is broken when parsing the comps data.

Comment 10 seth vidal 2010-09-08 15:16:13 UTC
Dennis, James
the comps file you reference has

    <grouplist>
      <groupid>java-base</groupid>
      <groupid>java-browser</groupid>
      <groupid>java-database</groupid>
      <groupid>misc</groupid>
      <groupid>multimedia</groupid>
      <groupid>zhongyi-song-fonts</groupid>
    </grouplist>


you'll notice 'virtualization' is absent there.

but in the x86_64 comps file from the same path

virtualization is present.

are the x86_64  and i386 comps files supposed to be different here?

Comment 11 Dennis Gregorovic 2010-09-08 15:42:47 UTC
That is intentional.  The virtualization packages are only delivered in the x86_64 Supplementary tree.  As part of the compose process, we filter out comps groups that are empty for that tree.

Comment 12 seth vidal 2010-09-08 15:46:42 UTC
Here's some simple code to see if yum can see the groups in the category:

import yum
my = yum.YumBase()
for cat in my.comps.get_categories():
   if cat.categoryid == 'supplementary':
       print cat.categoryid
       for g in cat.groups:
           print '  %s' % g


when I run it on el6b<mumble> I get

supplementary
  multimedia
  java-base
  java-database
  misc
  java-browser
  virtualization
  zhongyi-song-fonts

that's on x86_64

Comment 13 Richard Hughes 2010-09-09 13:55:15 UTC
Seth,

Using 'comps.get_groups(cat.categoryid)' I get 5 groups for the supplementary category.

Using 'cat.groups' I get 7 groups, the other entries being "misc" and "multimedia".

How come the data is different? Which method should I be using in PackageKit? Thanks.

Comment 14 James Antill 2010-09-09 14:25:21 UTC
> Using 'comps.get_groups(cat.categoryid)' I get 5 groups for the
> supplementary category.

 This is not a yum API. The yum API is:

    def get_groups(self):

...what you are calling comes from:

PackageKit/backends/yum/yumComps.py
[...]
class yumComps:
[...]
    def get_groups(self, cat_id):

...which appears to be an sqlite/caching layer, but (of course) in PK only.

Comment 15 Richard Hughes 2010-09-09 15:55:22 UTC
(In reply to comment #14)
> ...which appears to be an sqlite/caching layer, but (of course) in PK only.

Of course, sorry -- my mistake. The reason for the missing groups was that there were no mandatory, default or optional packages in the "misc" and "multimedia" groups, and so PK ignored them. PK only shows users a simpler kind of meta-package for groups, and hence simplifies things a bit.

I fear the real bug is that PK needs to call comps.refresh() after adding a repo or enabling a repository. You can test this by enabling the supplementary repo, and then doing "pkcon refresh-cache" on the command line.

What's the usual use-case of somebody using the supplementary repo? Do they install a foo-release.rpm file or just add a repo file?

Comment 16 James Laska 2010-09-09 18:11:07 UTC
(In reply to comment #15)
> What's the usual use-case of somebody using the supplementary repo? Do they
> install a foo-release.rpm file or just add a repo file?

My understanding is that the customer either does everything through RHN (meaning they subscribe to the supplementary channel), or they insert a Supplementary CD into the system.  Then they launch gpk-application and install the desired software.

Comment 18 James Laska 2010-09-09 19:42:09 UTC
(In reply to comment #15)

> I fear the real bug is that PK needs to call comps.refresh() after adding a
> repo or enabling a repository. You can test this by enabling the supplementary
> repo, and then doing "pkcon refresh-cache" on the command line.

I just tested this workaround (well, 'pkcon refresh'), but after running that, the Supplementary groups appeared in gpk-application

Comment 20 Denise Dumas 2010-09-16 16:36:12 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Add/Remove Software (gpk-application) sometimes does not display Supplementary groups or packages when you click on the Supplementary group in the user interface.

As a workaround, launch "System->Admin->Add/Remove Software" and then click "System->Refresh Package Lists"

Comment 21 Ryan Lerch 2010-11-04 05:08:49 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,3 +1 @@
-Add/Remove Software (gpk-application) sometimes does not display Supplementary groups or packages when you click on the Supplementary group in the user interface.
+Under some circumstances, the Add/Remove Software (gpk-application) graphical user interface does not display Supplementary groups or packages the Supplementary group is chosen. To work around this, use the System>Refresh Package Lists option to refresh the package lists.-
-As a workaround, launch "System->Admin->Add/Remove Software" and then click "System->Refresh Package Lists"

Comment 23 Richard Hughes 2011-01-25 12:17:43 UTC
commit c8d4cd05cfc9732765f1b5241f6c50927e1dc7ee
Author: Richard Hughes <richard>
Date:   Tue Jan 25 12:18:16 2011 +0000

    yum: Update the cached comps group list when enabling of disabling a repo. Fixes rh#629049

Comment 24 Richard Hughes 2011-01-25 13:13:51 UTC
Built as http://brewweb.devel.redhat.com/brew/taskinfo?taskID=3061459

Comment 28 Laura Bailey 2011-05-05 02:19:59 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-Under some circumstances, the Add/Remove Software (gpk-application) graphical user interface does not display Supplementary groups or packages the Supplementary group is chosen. To work around this, use the System>Refresh Package Lists option to refresh the package lists.+Under some circumstances, the Add/Remove Software (gpk-application) graphical user interface does not display Supplementary groups or packages the Supplementary group is chosen. To work around this, use the System > Refresh Package Lists option to refresh the package lists.

Comment 29 errata-xmlrpc 2011-05-19 14:01:38 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0681.html


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