Bug 830194 - 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: yum-rhn-plugin
Version: 5.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Stephen Herr
QA Contact: Martin Korbel
URL:
Whiteboard:
Depends On: 830193
Blocks: 771748 830219 842396
TreeView+ depends on / blocked
 
Reported: 2012-06-08 13:57 UTC by Bryan Kearney
Modified: 2013-01-08 07:46 UTC (History)
4 users (show)

Fixed In Version: yum-rhn-plugin-0.5.4-28.el5
Doc Type: Bug Fix
Doc Text:
Clone Of: 830193
: 830219 842396 (view as bug list)
Environment:
Last Closed: 2013-01-08 07:46:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0105 0 normal SHIPPED_LIVE yum-rhn-plugin bug fix and enhancement update 2013-01-07 15:40:58 UTC

Description Bryan Kearney 2012-06-08 13:57:12 UTC
+++ This bug was initially created as a clone of Bug #830193 +++

The following are output which is desired from the RHN and Subscription Managment yum plugins. This bug is for the RHN 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 Clifford Perry 2012-06-08 14:52:51 UTC
(In reply to comment #0)
> +++ This bug was initially created as a clone of Bug #830193 +++
> 

Based on an email thread I have, there is a desire for each plugin to always print something, every time it runs - so that someone knows where they are potentially getting their RHEL content from. 

NOTE: If the yum-rhn-plugin is disabled, we will not print any messages. If it is enabled though, then we will print messages as requested below. *BUT* with small modification.

> The following are output which is desired from the RHN and Subscription
> Managment yum plugins. This bug is for the RHN 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.

Registered to Neither:
RHN: This system is not registered to RHN Classic. You can use rhn_register 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

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.

Registered to Certificate based technologies:
RHN: This system is not registered to RHN Classic. You can use rhn_register 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

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.


This bug is tracking for RHEL 5.9. I will clone to track for RHEL 6.4.

Comment 2 RHEL Program Management 2012-06-08 15:08:41 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 3 Stephen Herr 2012-07-23 18:03:49 UTC
yum-rhn-plugin doesn't care about Subscription Management registration status or errors, so the above can be boiled down to:

If registered to RHN Classic or Satellite display this message:
"This system is receiving updates from RHN Classic."

else display this message:
"This system is not registered to RHN classic. You can can use rhn_reg_ks to register."


The error messages as written above are misleading because they only mention RHN Classic when the user could in fact be registered (or not) to a Satellite. Furthermore, there's actually a couple of ways we could decide that we aren't really registered to Satellite or RHN Classic, so we need to display slightly different error messages in those cases. Also, yum-rhn-plugin has a standard string that it always displays in a variety of error situations that reads "RHN Satellite or RHN classic support will be disabled." I would like to keep that in as-is just in case customers have scripts to parse logs for that string to look for errors. I will implement the fix for this bug so that the messages read as follows:

If never registered to RHN Classic or Satellite:
"This system is not registered to RHN Classic or RHN Satellite.
You can use rhn_register to register.
RHN Satellite or RHN classic support will be disabled."

If previously registered but lost systemid file for whatever reason:
"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."

If you are registered and everything goes smoothly:
"This system is receiving updates from RHN Classic or RHN Satellite."

If someone disagrees with my changes to the messages let me know, but I think it still fulfils the actual requirement.

Comment 11 errata-xmlrpc 2013-01-08 07:46:24 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-0105.html


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