Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 977384

Summary: rhsm-icon does not display any message when the subscription for installed product is about to expire today
Product: Red Hat Enterprise Linux 5 Reporter: Shwetha Kallesh <skallesh>
Component: subscription-managerAssignee: Carter Kozak <ckozak>
Status: CLOSED NOTABUG QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.10CC: bkearney, ckozak
Target Milestone: rc   
Target Release: 5.10   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-10 18:31:23 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 840995    

Description Shwetha Kallesh 2013-06-24 12:28:58 UTC
Description of problem:
rhsm-icon does not display any message when the subscription for installed product is about to expire today

Version-Release number of selected component (if applicable):
[root@shwethahostname ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.8.15-1
subscription-manager: 1.8.10-1.git.34.95627c0.el6
python-rhsm: 1.8.12-1.git.0.d747a65.el6

How reproducible:


Steps to Reproduce:
1.[root@shwethahostname ~]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Awesome OS Instance Server Bits
Product ID:     32060
Version:        6.1
Arch:           ALL
Status:         Subscribed
Status Details: 
Starts:         05/24/2013
Ends:           06/24/2013
                ^^ subscription will end today

[root@shwethahostname ~]# date
Mon Jun 24 17:59:51 IST 2013


[root@shwethahostname ~]# rhsm-icon -c 20

(rhsm-icon:28460): libnotify-CRITICAL **: notify_notification_close: assertion `notification != NULL' failed

(rhsm-icon:28460): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(rhsm-icon:28460): libnotify-CRITICAL **: notify_notification_close: assertion `notification != NULL' failed

(rhsm-icon:28460): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(rhsm-icon:28460): libnotify-CRITICAL **: notify_notification_close: assertion `notification != NULL' failed

(rhsm-icon:28460): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed


Actual results:


Expected results:


Additional info:

Comment 2 Carter Kozak 2013-07-10 18:31:23 UTC
#rct cat-cert /etc/pki/entitlement/7798217476720442582.pem | grep Warning
        Warning Period: 0

The warning period on this entitlement is 0 days, so the icon will never show up.

However this uncovered a bug where subscription-manager gui attached subscriptions would always warn you that they're about to expire 42 days before, without checking the warning_period