Bug 1028433 - repoquery with "--search" parameter complains system is not registered with RHN Classic or RHN Satellite.
Summary: repoquery with "--search" parameter complains system is not registered with R...
Keywords:
Status: CLOSED DUPLICATE of bug 1057424
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: yum-rhn-plugin
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-08 12:48 UTC by Rui Gouveia
Modified: 2016-01-04 05:10 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-03 14:39:58 UTC
Target Upstream Version:


Attachments (Terms of Use)

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


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