Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1094617
Summary: | subscription-manager-gui give a wrong end date at "My Installed Products" tab "Status" line | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | xingge <gxing> | ||||||||||
Component: | subscription-manager | Assignee: | William Poteat <wpoteat> | ||||||||||
Status: | CLOSED NOTABUG | QA Contact: | John Sefler <jsefler> | ||||||||||
Severity: | unspecified | Docs Contact: | |||||||||||
Priority: | unspecified | ||||||||||||
Version: | 7.0 | CC: | bkearney, jesusr, ldai, liliu, lmiksik, qianzhan, redakkan, skallesh, wpoteat | ||||||||||
Target Milestone: | rc | ||||||||||||
Target Release: | --- | ||||||||||||
Hardware: | Unspecified | ||||||||||||
OS: | Unspecified | ||||||||||||
Whiteboard: | |||||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||||
Doc Text: | Story Points: | --- | |||||||||||
Clone Of: | Environment: | ||||||||||||
Last Closed: | 2015-07-27 20:11:03 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: | 1121117 | ||||||||||||
Attachments: |
|
Description
xingge
2014-05-06 07:13:21 UTC
Created attachment 892794 [details]
wrong date
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. Message changed to 'System is properly subscribed until date'. 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, Will correct the date and leave the comment alone. commit c3fbe12532c7f774f877066fde1c9ebdc5a4cf47 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" Created attachment 963568 [details]
End_date
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
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" Retested on my machine. Was not able to see the decrepency, even when changing the client timezone to IST while server is in EST. 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 Created attachment 981381 [details]
End date on GUI Installed tab
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. |