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:

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 ***