Bug 746255

Summary: Cannot disable base channel from rhn when issuing yum grouplist
Product: Red Hat Enterprise Linux 6 Reporter: Šimon Lukašík <slukasik>
Component: yum-rhn-pluginAssignee: Miroslav Suchý <msuchy>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2CC: jpazdziora
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-24 13:54:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Šimon Lukašík 2011-10-14 14:48:31 UTC
Description of problem:


Version-Release number of selected component (if applicable):
yum-rhn-plugin-0.9.1-26.el6_1.1.noarch

How reproducible:
Non-deterministic. Strange, 2 in 3 tries fail.

Steps to Reproduce:
1. Register machine to rhel-x86_64-server-6 (either to RHN or RHNS)
2. Add some child channels
3. # yum repolist
4. # yum --disablerepo=rhel-x86_64-server-6 grouplist
5. # yum --disablerepo=rhel-x86_64-server-6 grouplist
  
Actual results:
# yum repolist
Loaded plugins: product-id, rhnplugin, subscription-manager
Updating Red Hat repositories.
repo id                                     repo name                    status
rhel-x86_64-server-6                        Red Hat Enterprise Linux Ser 5,423
rhel-x86_64-server-hpn-fastrack-6           RHEL High Performance Networ     0
rhel-x86_64-server-hpn-fastrack-6-debuginfo RHEL HPN FasTrack Debuginfo      0
rhel-x86_64-server-sjis-6                   RHEL SJIS (v. 6 for 64-bit x     6
rhel-x86_64-server-sjis-6-debuginfo         RHEL SJIS Debuginfo (v.6 for     4
repolist: 5,433
# yum --disablerepo=rhel-x86_64-server-6 grouplist
Loaded plugins: product-id, rhnplugin, subscription-manager
Updating Red Hat repositories.
Setting up Group Process
Error: No group data available for configured repositories
# yum --disablerepo=rhel-x86_64-server-6 grouplist
Loaded plugins: product-id, rhnplugin, subscription-manager
Updating Red Hat repositories.


Error getting repository data for rhel-x86_64-server-6, repository not found


Expected results:
Should always be the same:
Error: No group data available for configured repositories

Additional info:

Comment 2 Šimon Lukašík 2011-10-14 15:06:33 UTC
Not a regression, will not likely get to rhel6.2. Setting for rhel6.3.0.

Comment 3 Jan Pazdziora 2011-11-24 10:45:21 UTC
I was unable to reproduce the issue with RHEL 6.2 (to be) installation:

# rpm -q yum-rhn-plugin
yum-rhn-plugin-0.9.1-36.el6.noarch
# yum repolist
Loaded plugins: rhnplugin
repo id                              repo name                            status
rhel-i386-server-6                   Red Hat Enterprise Linux Server (v.  5,047
rhel-i386-server-optional-6          RHEL Server Optional (v. 6 for 32-bi 2,970
rhel-i386-server-optional-fastrack-6 RHEL Server Optional FasTrack (v. 6     79
rhn-tools-rhel-i386-server-6         RHN Tools for RHEL (v. 6 for 32-bit     51
repolist: 8,147
# yum --disablerepo=rhel-i386-server-6 grouplist
Loaded plugins: rhnplugin
Setting up Group Process
Available Groups:
   Internet Applications
   Office Suite and Productivity
Done
# yum --disablerepo=rhel-i386-server-6 grouplist
Loaded plugins: rhnplugin
Setting up Group Process
Available Groups:
   Internet Applications
   Office Suite and Productivity
Done
# yum grouplist
Loaded plugins: rhnplugin
Setting up Group Process
Installed Groups:
   Base
   E-mail server
   Graphical Administration Tools
   Hardware monitoring utilities
   Legacy UNIX compatibility
   Networking Tools
   Performance Tools
   Perl Support
Available Groups:
   Additional Development
   Backup Client
   Backup Server
   CIFS file server
[...]

Is the problem still present on your machine when you upgrade to RHEL 6.2?

Comment 4 Šimon Lukašík 2011-11-24 13:47:05 UTC
I can reproduce the bug with:
    yum-rhn-plugin   0.9.1-26.el6_1.1
    rhn-client-tools 1.0.0-61.el6

I cannot reproduce the bug with latest RHEL6.2 packages:
    yum-rhn-plugin   0.9.1-36.el6
    rhn-client-tools 1.0.0-73.el6

Thus, the bugzilla can be closed as current release once the rhel6.2 is released.