Bug 682772 - rhsm-compliance-icon does not render for dates "Not Before" an entitlement enters its validity period
Summary: rhsm-compliance-icon does not render for dates "Not Before" an entitlement en...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: beta
: 6.3
Assignee: Bryan Kearney
QA Contact: Entitlement Bugs
URL:
Whiteboard:
Depends On:
Blocks: 738066
TreeView+ depends on / blocked
 
Reported: 2011-03-07 14:52 UTC by John Sefler
Modified: 2013-01-10 10:51 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-20 12:56:12 UTC
Target Upstream Version:


Attachments (Terms of Use)
rhsm-icon now shows when installed product is invalid today despite coverage in future (447.85 KB, image/png)
2012-04-05 16:48 UTC, John Sefler
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0804 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2012-06-19 19:51:31 UTC

Description John Sefler 2011-03-07 14:52:36 UTC
Description of problem:
In response to https://bugzilla.redhat.com/show_bug.cgi?id=629670#c5 I am opening a separate bug to cover the following case:

rhsm-compliance-icon should appear (or should it?) with some message stating the fact that your state of compliance is dependent on a future subscription to which you are currently subscribed.

This case happens when you are subscribing to a pool whose validity period is in the future.

Version-Release number of selected component (if applicable):
[root@jsefler-onprem03 entitlement]# rpm -qa | grep subscription-manager
subscription-manager-0.95.1-1.git.17.4a23267.el6.x86_64
subscription-manager-firstboot-0.95.1-1.git.17.4a23267.el6.x86_64
subscription-manager-gnome-0.95.1-1.git.17.4a23267.el6.x86_64
[root@jsefler-onprem03 entitlement]# rpm -q python-rhsm
python-rhsm-0.95.3-1.git.0.4d0ef8e.el6.noarch


How reproducible:


Steps to Reproduce:
Follow steps in https://bugzilla.redhat.com/show_bug.cgi?id=629670#c4 for the case:
- date before the Not Before date
  
Actual results:
rhsm-compliance-icon disappears

Expected results:
In my opinion it is unclear what rhsm-compliance-icon should do.  Currently the subscription-manager-gui calls this Compliance Status a "Future Subscription" and does not give it a green nor red color.  But it does decrement it from the count of "out of compliance" products.  So what should the rhsm-compliance-icon do at this time?  If it is removed, a user would probably assume that they are in compliance but get angry when they can not access the related content.  If the the rhsm-compliance-icon is displayed, then it should probably tell them that their compliance is dependent upon a future subscription and they will not be able to get content until the validity period begins.

Comment 2 RHEL Program Management 2011-04-04 02:16:31 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 4 James Bowes 2012-03-05 16:09:30 UTC
I'd like to close this bug as worksforme.

In master, the gui displays future dated subscriptions as invalid (though it does show that you have one that is for the future) and not covering a product.

Likewise, the icon and it's matching syslog entry will warn you that you are missing one or more valid entitlement certificates.

So since the behaviour matches, I think this bug is ok to close.

Comment 5 James Bowes 2012-03-05 16:18:34 UTC
Moving to ON_QA for a double-check

Comment 8 John Sefler 2012-04-05 16:48:59 UTC
Created attachment 575496 [details]
rhsm-icon now shows when installed product is invalid today despite coverage in future

Originally when this bug was opened, an installed product that was covered by a future subscription was not considered "red" nor "green" today and therefore the rhsm-icon did not render as being invalid today.

As demonstrated in the attached screenshot, that behavior has changed.  The compliance of the system (and each of the individual installed products) is now decided based on the entitlement coverage TODAY (not future or past).  Hence the rhsm-icon now shows "Invalid or Missing Entitlement Certificates" even though the installed product is covered by a Future Subscription.

[root@jsefler-r63-server ~]# rpm -q subscription-manager
subscription-manager-0.99.13-1.el6.x86_64

Moving to VERIFIED.

Comment 10 errata-xmlrpc 2012-06-20 12:56:12 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-2012-0804.html


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