RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1094617 - subscription-manager-gui give a wrong end date at "My Installed Products" tab "Status" line
Summary: subscription-manager-gui give a wrong end date at "My Installed Products" tab...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: William Poteat
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel72
TreeView+ depends on / blocked
 
Reported: 2014-05-06 07:13 UTC by xingge
Modified: 2016-09-20 02:28 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-27 20:11:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
wrong date (540.50 KB, image/png)
2014-05-06 07:17 UTC, xingge
no flags Details
End_date (267.85 KB, image/png)
2014-12-02 07:05 UTC, Rehana
no flags Details
End date on GUI Installed tab (75.70 KB, image/png)
2014-12-02 08:36 UTC, Shwetha Kallesh
no flags Details
End date on GUI Installed tab (71.84 KB, image/png)
2015-01-19 07:28 UTC, Shwetha Kallesh
no flags Details

Description xingge 2014-05-06 07:13:21 UTC
Description of problem:
subscription-manager-gui give a wrong end date at "My Installed Products" tab "Status" line

Version-Release number of selected component (if applicable):
subscription-manager-1.10.14-7.el7.x86_64
subscription-manager-firstboot-1.10.14-7.el7.x86_64
subscription-manager-gui-1.10.14-7.el7.x86_64
python-rhsm-1.10.12-2.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1.register the system and auto attach 

[root@localhost ~]# subscription-manager register --username=stage_test_12 --auto-attach
Password: 
The system has been registered with ID: a55bdec0-4bc5-4b47-942e-b8fe292d662c 
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status:       Subscribed

2.list consumed subscription's end date

[root@localhost ~]# subscription-manager list --consumed | grep Ends
Ends:              01/05/2015

3.Open subscription-manager-gui and go to "My Installed Products" tab to see the "Status" that showed at the left of "Auto-Attach" button. (see the attachment)

Actual results:
It shows like below:
"Status: System is properly subscribed through 01/06/2015"


Expected results:
It should show like below:
"Status: System is properly subscribed through 01/05/2015"

Compare with Product's Subscription status shows below the products table
"Status: Covered by contract 10318617 through 01/05/2015"

Additional info:

Comment 1 xingge 2014-05-06 07:17:00 UTC
Created attachment 892794 [details]
wrong date

Comment 3 RHEL Program Management 2014-05-14 05:47:12 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 4 William Poteat 2014-05-15 15:26:29 UTC
Message changed to 'System is properly subscribed until date'.

Comment 5 John Sefler 2014-05-15 16:34:10 UTC
Wait a second...  I vaguely recall discussion with zeus a few years ago concerning this topic.  I think it was all how you interpret the dates and what time zone the client is running versus the timezone that the server is running.

"Ends/End Date"   -  I think this meant that at some clock tick during this date (as seen by the client), the entitlement would be revoked.

"Status: System is properly subscribed through 01/06/2015" - the word "through" was carefully chosen to imply that the system was compliant during every tick of this day and would become invalid at some clock tick during the next day.

I think the descrepancy may now be the result of moving the compliance calculation from the client to the server. I think the problem will exist when your sub-man client and the candlpin server are located on different sides of the Prime Meridian.


Does this sound correct zeus?


In my opinion, 'System is properly subscribed until date' is not the solution,

Comment 6 William Poteat 2014-05-16 17:10:53 UTC
Will correct the date and leave the comment alone.

Comment 7 William Poteat 2014-05-21 14:54:44 UTC
commit c3fbe12532c7f774f877066fde1c9ebdc5a4cf47

Comment 9 Rehana 2014-12-02 07:04:52 UTC
Retested on ,

subscription-manager: 1.13.9-1.el7
python-rhsm: 1.13.8-1.el7

# subscription-manager register --username=stage_test_12 --auto-attach
Password: 
The system has been registered with ID: 1e7cbe3d-2aea-4e92-b27a-cc1a4b12a053 

Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status:       Subscribed

[root@dhcp47-5 ~]# subscription-manager list --consumed | grep Ends
Ends:              12/30/2014


Observed that "End Date" near the "auto-attach" is showing
 "Status: System is properly subscribed through 12/31/2014" (PFA:End_date.png)
                                                   ^^ it should be 30
Additional Info: Test machine is in EST time zone
# date
Tue Dec  2 02:01:16 EST 2014


Moving back to "New"

Comment 10 Rehana 2014-12-02 07:05:28 UTC
Created attachment 963568 [details]
End_date

Comment 11 Shwetha Kallesh 2014-12-02 08:36:59 UTC
Created attachment 963591 [details]
End date on GUI Installed tab

Rehana,

Its working fine on my system,can you please check again?

[root@dhcp35-236 ~]# subscription-manager register --username=stage_test_12 --auto-attach --force
The system with UUID 1010988d-c890-40d8-b869-cc23c0d3eefd has been unregistered
Password: 
The system has been registered with ID: 9408b1f0-9db6-49ca-83f8-1792529a4273 

Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status:       Subscribed

[root@dhcp35-236 ~]# subscription-manager list --consumed | grep Ends
Ends:              12/31/2014

[root@dhcp35-236 ~]# date
Tue Dec  2 14:02:34 IST 2014


[root@dhcp35-236 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.26.4-1
subscription management rules: 5.11
subscription-manager: 1.13.9-1.el7
python-rhsm: 1.13.8-1.el7

Comment 12 Rehana 2014-12-02 09:02:43 UTC
I retested it, so i think this is what is happening...

1) Retested on a machine having EST time zone, still the "End date" mismatch is noticed as mentioned in comment 9

2) Retested on a machine having IST time zone, Correct "End date" is displayed as mentioned in comment 10 

I think as mentioned in comment 5 , "the problem will exist when your sub-man client and the candlpin server are located on different sides of the Prime Meridian"

Comment 13 William Poteat 2015-01-16 16:42:52 UTC
Retested on my machine. Was not able to see the decrepency, even when changing the client timezone to IST while server is in EST.

Comment 14 Shwetha Kallesh 2015-01-19 07:27:48 UTC
Failed qa

Tested on a client with EST timezone, still the decrepency exists

[root@dhcp35-236 etc]# subscription-manager register --force
The system with UUID cd0140b2-e8ef-4238-9631-278d0eb9afa7 has been unregistered
Username: qa
Password: 
The system has been registered with ID: 1d296be0-d5e7-40b6-9294-2fe34991c20d 
[root@dhcp35-236 etc]# subscription-manager attach --auto


Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status:       Subscribed

[root@dhcp35-236 etc]# subscription-manager list --consumed | grep Ends
Ends:                12/31/2021

Comment 15 Shwetha Kallesh 2015-01-19 07:28:36 UTC
Created attachment 981381 [details]
End date on GUI Installed tab

Comment 18 William Poteat 2015-07-27 20:11:03 UTC
Subscription manager does not calculate any of these values. Candlepin takes all of the certs expiration dates, and does the math, and adds one second for the compliantUntil date.

If the cert expires at one second before midnight on the 12th, then the system is compliant until 00:00:00 on the 13th. Unfortunately, the subscription manager gui does not display the seconds needed to descern the correct behavoir.


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