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 1028433

Summary: repoquery with "--search" parameter complains system is not registered with RHN Classic or RHN Satellite.
Product: Red Hat Enterprise Linux 6 Reporter: Rui Gouveia <rgouveia>
Component: yum-rhn-pluginAssignee: Michael Mráka <mmraka>
Status: CLOSED DUPLICATE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: cperry, jzeleny, nobody, rgouveia
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: 2014-02-03 14:39:58 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 Rui Gouveia 2013-11-08 12:48:39 UTC
Description of problem:
repoquery with "--search" parameter complains system is not registered with RHN Classic or RHN Satellite.

[root@localhost ~]# yum repolist
Loaded plugins: product-id, rhnplugin, subscription-manager
This system is receiving updates from Red Hat Subscription Management.
This system is not registered with RHN Classic or RHN Satellite.
You can use rhn_register to register.
RHN Satellite or RHN Classic support will be disabled.
...
repo id                             repo name                                                                   status
rhel-6-server-rpms                  Red Hat Enterprise Linux 6 Server (RPMs)                                    11,114
...
repolist: 11,808


[root@localhost ~]# repoquery -a --plugins --search --pkgnarrow=updates
This system is not registered with RHN Classic or RHN Satellite.
You can use rhn_register to register.
RHN Satellite or RHN Classic support will be disabled.

Without "--search" works.

[root@localhost ~]# repoquery -a --plugins --pkgnarrow=updates
This system is not registered with RHN Classic or RHN Satellite.
You can use rhn_register to register.
RHN Satellite or RHN Classic support will be disabled.
bash-0:4.1.2-15.el6_4.x86_64
chkconfig-0:1.3.49.3-2.el6_4.1.x86_64
coreutils-0:8.4-19.el6_4.2.x86_64
...



Version-Release number of selected component (if applicable):
yum-utils-1.1.30-14.el6.noarch


How reproducible:
Always.


Steps to Reproduce:
1. Execute above commands.
2.
3.

Actual results:
See above


Expected results:
See above

Additional info:

Comment 2 Michael Mráka 2013-11-08 13:57:20 UTC
In comment #0 I can see that even without "--search" it reports that "system is not registered with RHN Classic or RHN Satellite" so there's no difference.

What exactly should be fixed there?

Comment 3 Rui Gouveia 2013-11-08 14:38:55 UTC
Hi,

The system *is* registered with Red Hat Subscription Management.

So, I think if a system is registered with one of the system, there should be error.


Thank you

Comment 4 Michael Mráka 2013-11-08 15:41:18 UTC
Unfortunately that isn't the case.
Can't you uninstall yum-rhn-plugin when you don't use it?

Comment 5 Rui Gouveia 2013-11-08 16:03:42 UTC
Hi,

Uninstalling yum-rhn-plugin fixed it.

[root@localhost ~]# yum remove yum-rhn-plugin
[root@localhost ~]# repoquery -a --plugins --search --pkgnarrow=updates
[root@localhost ~]# 

no error.

Sorry if I wasted your time. I'm going to write a knowledge article about this, so this don't happen again.


Thank you.

Comment 6 Clifford Perry 2014-02-03 14:39:58 UTC

*** This bug has been marked as a duplicate of bug 1057424 ***