Bug 830193 - Improve yum plugin output across RHN and Subscription Management
Summary: Improve yum plugin output across RHN and Subscription Management
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: 5.9
Assignee: Bryan Kearney
QA Contact: Entitlement Bugs
URL:
Whiteboard:
: 826616 (view as bug list)
Depends On:
Blocks: 771748 830194 830219 842396
TreeView+ depends on / blocked
 
Reported: 2012-06-08 13:56 UTC by Bryan Kearney
Modified: 2013-01-08 03:54 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 830194 (view as bug list)
Environment:
Last Closed: 2013-01-08 03:54:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0033 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2013-01-08 08:38:27 UTC

Description Bryan Kearney 2012-06-08 13:56:12 UTC
The following are output which is desired from the RHN and Subscription Managment yum plugins. This bug is for the Subscription Management side of the changes:

Registered to Neither
----------------------------
RHN: This system is not registered to RHN classic. You can can use rhn_reg_ks to register.
SM: This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Registered to RHN Classic (Or Satellite)
----------------------------------------------------
RHN: This system is receiving updates from RHN Classic
SM: This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Registered to Customer Portal (Or SAM or CFSE)
---------------------------------------------------------------
RHN: This system is not registered to RHN classic. You can can use rhn_reg_ks to register.
SM: This system is receiving updates from Red Hat Subscription Management.
-- OR --
SM: This system is registered to Red Hat Subscription Management, but not recieving updates. You can use subscription-manager to assign subscriptions.

Registered to both
------------------------
RHN: This system is receiving updates from RHN Classic
SM: This system is receiving updates from Red Hat Subscription Management.
-- OR --
SM: This system is registered to Red Hat Subscription Management, but not recieving updates. You can use subscription-manager to assign subscriptions.

Comment 1 RHEL Program Management 2012-06-08 14:08:54 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 2 Bryan Kearney 2012-06-13 23:37:09 UTC
fixed in master at e1293521a66afd6f9ca93f33d2fad706b56056b8

Comment 4 John Sefler 2012-08-24 20:14:44 UTC
(In reply to comment #0)

> Registered to RHN Classic (Or Satellite)
> ----------------------------------------------------
> RHN: This system is receiving updates from RHN Classic
> SM: This system is not registered to Red Hat Subscription Management. You
> can use subscription-manager to register.
> 

> Registered to both
> ------------------------
> RHN: This system is receiving updates from RHN Classic
> SM: This system is receiving updates from Red Hat Subscription Management.
> -- OR --
> SM: This system is registered to Red Hat Subscription Management, but not
> recieving updates. You can use subscription-manager to assign subscriptions.

Bryan,
The original bug 818383 that spawned these yum plugin improvement messaging called for silence from subscription-manager yum plugin when already registered classically.  Current implementation still honors this silence.  Do you wish to revise the two cases above for SM ?  If not, then this bug fails qa.

Comment 5 Bryan Kearney 2012-09-19 20:45:11 UTC
Jeff, this bug takes precendence and represents how Lars woud like to see things work.

Comment 6 John Sefler 2012-09-20 13:36:12 UTC
(In reply to comment #5)
> John, this bug takes precedence and represents how Lars woud like to see
> things work.

If this bug takes precedence over bug 818383, then as stated in comment 4 this new bug FailsQA since the subscription-manager yum plugin still remains silent when already registered classically.

Moving status back to ASSIGNED/FailsQA.

Comment 7 John Sefler 2012-09-20 15:02:04 UTC
*** Bug 826616 has been marked as a duplicate of this bug. ***

Comment 8 Bryan Kearney 2012-09-20 17:51:05 UTC
This should only occur if you are running as non-root. Is that how the test is occuring?

Comment 9 Bryan Kearney 2012-09-20 18:29:47 UTC
nm.. found it...

Comment 10 Bryan Kearney 2012-09-20 20:19:01 UTC
fixed in master a 5a87c72b2cb83ae73875c586b4e4c2215a9b0760.

Comment 12 John Sefler 2012-10-12 16:27:26 UTC
Verifying Version...
[root@rhsm-accept-rhel5 ~]# rpm -q --whatprovides /etc/yum/pluginconf.d/subscription-manager.conf
subscription-manager-1.0.22-1.el5
[root@rhsm-accept-rhel5 ~]# rpm -q --whatprovides /etc/yum/pluginconf.d/rhnplugin.conf 
yum-rhn-plugin-0.5.4-29.el5


> Registered to Neither
> ----------------------------
> RHN: This system is not registered to RHN classic. You can can use rhn_reg_ks to register.
> SM: This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
> 
[root@rhsm-accept-rhel5 ~]# subscription-manager clean
All local data removed
[root@rhsm-accept-rhel5 ~]# rm -f /etc/sysconfig/rhn/systemid
[root@rhsm-accept-rhel5 ~]# yum info foo
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system may not be registered to RHN Classic or RHN Satellite. SystemId could not be acquired.
You can use rhn_register to register.
RHN Satellite or RHN Classic support will be disabled.
Error: No matching Packages to list

SM:  Verified yum plugin messages from subscription-manager
RHN: See bug 830194 for verification of yum plugin messages from rhnplugin




> Registered to RHN Classic (Or Satellite)
> ----------------------------------------------------
> RHN: This system is receiving updates from RHN Classic
> SM: This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
> 
[root@rhsm-accept-rhel5 ~]# rhnreg_ks --serverUrl=https://xmlrpc.rhn.code.stage.redhat.com/XMLRPC --username=qa --password=*** --profilename=rhsm-automation --force --norhnsd --nohardware --nopackages --novirtinfo
[root@rhsm-accept-rhel5 ~]# yum info foo
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
Error: No matching Packages to list

SM:  Verified yum plugin messages from subscription-manager
RHN: See bug 830194 for verification of yum plugin messages from rhnplugin




> Registered to Customer Portal (Or SAM or CFSE)
> ---------------------------------------------------------------
> RHN: This system is not registered to RHN classic. You can can use rhn_reg_ks to register.
> SM: This system is receiving updates from Red Hat Subscription Management.
> -- OR --
> SM: This system is registered to Red Hat Subscription Management, but not recieving updates. You can use subscription-manager to assign subscriptions.
> 
[root@rhsm-accept-rhel5 ~]# rhn-migrate-classic-to-rhsm --no-auto
Red Hat account: qa 
Password: 

Retrieving existing RHN Classic subscription information ...
+----------------------------------+
System is currently subscribed to these RHN Classic Channels:
+----------------------------------+
rhel-x86_64-server-5

+-----------------------------------------------------+ 
Installing product certificates for these RHN Classic channels:
+-----------------------------------------------------+
rhel-x86_64-server-5

Product certificates installed successfully to /etc/pki/product.

Preparing to unregister system from RHN Classic ...
System successfully unregistered from RHN Classic.

Attempting to register system to Red Hat Subscription Management ...
The system has been registered with id: 7cff22ad-b7e0-4435-ab8f-89356e658302 
System 'rhsm-accept-rhel5.usersys.redhat.com' successfully registered to Red Hat Subscription Management.

[root@rhsm-accept-rhel5 ~]# yum info foo
Loaded plugins: product-id, security, subscription-manager
This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions.
Error: No matching Packages to list
[root@rhsm-accept-rhel5 ~]# 
^^^ NOTICE THAT THE MIGRATION TOOL ACTUALLY DISABLES rhnplugin
[root@rhsm-accept-rhel5 ~]# yum info foo --enableplugin=rhnplugin
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions.
This system may not be registered to RHN Classic or RHN Satellite. SystemId could not be acquired.
You can use rhn_register to register.
RHN Satellite or RHN Classic support will be disabled.
Error: No matching Packages to list
[root@rhsm-accept-rhel5 ~]# 
[root@rhsm-accept-rhel5 ~]# subscription-manager subscribe --auto
Installed Product Current Status:
Product Name:         	Red Hat Enterprise Linux Server
Status:               	Subscribed

[root@rhsm-accept-rhel5 ~]# yum info foo --enableplugin=rhnplugin
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is receiving updates from Red Hat Subscription Management.
This system may not be registered to RHN Classic or RHN Satellite. SystemId could not be acquired.
You can use rhn_register to register.
RHN Satellite or RHN Classic support will be disabled.
rhel-5-server-cf-tools-1-rpms                           | 2.8 kB     00:00     
rhel-5-server-rpms                                      | 3.7 kB     00:00     
rhel-ha-for-rhel-5-server-rpms                          | 3.7 kB     00:00     
rhel-rs-for-rhel-5-server-rpms                          | 3.7 kB     00:00     
rhel-scalefs-for-rhel-5-server-rpms                     | 2.8 kB     00:00     
Error: No matching Packages to list

SM:  Verified yum plugin messages from subscription-manager
RHN: See bug 830194 for verification of yum plugin messages from rhnplugin




> Registered to both
> ------------------------
> RHN: This system is receiving updates from RHN Classic
> SM: This system is receiving updates from Red Hat Subscription Management.
> -- OR --
> SM: This system is registered to Red Hat Subscription Management, but not recieving updates. You can use subscription-manager to assign subscriptions.
>
[root@rhsm-accept-rhel5 ~]# rhnreg_ks --serverUrl=https://xmlrpc.rhn.code.stage.redhat.com/XMLRPC --username=qa --password=*** --profilename=rhsm-automation --force --norhnsd --nohardware --nopackages --novirtinfo
[root@rhsm-accept-rhel5 ~]# yum info foo
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is receiving updates from Red Hat Subscription Management.
This system is receiving updates from RHN Classic or RHN Satellite.
rhel-5-server-cf-tools-1-rpms                           | 2.8 kB     00:00     
rhel-5-server-rpms                                      | 3.7 kB     00:00     
rhel-ha-for-rhel-5-server-rpms                          | 3.7 kB     00:00     
rhel-rs-for-rhel-5-server-rpms                          | 3.7 kB     00:00     
rhel-scalefs-for-rhel-5-server-rpms                     | 2.8 kB     00:00     
Error: No matching Packages to list
[root@rhsm-accept-rhel5 ~]# subscription-manager unsubscribe --all
This machine has been unsubscribed from 1 subscriptions
[root@rhsm-accept-rhel5 ~]# yum info foo
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions.
This system is receiving updates from RHN Classic or RHN Satellite.
Error: No matching Packages to list

SM:  Verified yum plugin messages from subscription-manager
RHN: See bug 830194 for verification of yum plugin messages from rhnplugin


Moving to VERIFIED

Comment 14 errata-xmlrpc 2013-01-08 03:54:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-0033.html


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