Bug 987272 - Dist-geo-rep : geo-rep checkpoint works but takes utc time for start time and local time for finish time.
Summary: Dist-geo-rep : geo-rep checkpoint works but takes utc time for start time and...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: geo-replication
Version: 2.1
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: ---
: ---
Assignee: Bug Updates Notification Mailing List
QA Contact: Vijaykumar Koppad
URL:
Whiteboard:
Depends On:
Blocks: 1019515
TreeView+ depends on / blocked
 
Reported: 2013-07-23 06:49 UTC by Vijaykumar Koppad
Modified: 2014-08-25 00:50 UTC (History)
7 users (show)

Fixed In Version: glusterfs-3.4.0.39rhs-1
Doc Type: Bug Fix
Doc Text:
Previously, the geo-replication's 'checkpoint now' option used to set the 'UTC' time in status, where as the CLI output used to be human readable local time. Now, with the current update release, CLI sets the epoch value, and while showing data to user, just logs everything in local time, solving dependency on UTC time.
Clone Of:
Environment:
Last Closed: 2013-11-27 15:29:49 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1769 0 normal SHIPPED_LIVE Red Hat Storage 2.1 enhancement and bug fix update #1 2013-11-27 20:17:39 UTC

Description Vijaykumar Koppad 2013-07-23 06:49:14 UTC
Description of problem: Checkpoint gives correct information about whether it has synced file to slave before checkpoint, but it takes utc time for start time and local time for finish while displaying.



Version-Release number of selected component (if applicable):3.4.0.12rhs.beta5-2.el6rhs.x86_64


How reproducible: Happens every time 


Steps to Reproduce:
1.create and start a geo-rep relationship between master and slave. 
2.create some data on the master.
3.set the checkpoint using geo-rep config and check the status. 

Actual results: It shows utc time for start time and local time for finish time.


Expected results: It should show proper time consistently 


Additional info:

[root@shaktiman ~]# gluster v geo master 10.70.43.23::imaster status
NODE                        MASTER    SLAVE                   HEALTH                                                                              UPTIME
---------------------------------------------------------------------------------------------------------------------------------------------------------------
shaktiman.blr.redhat.com    master    10.70.43.23::imaster    Stable  | checkpoint as of 2013-07-23 06:27:51 completed at 2013-07-23 11:58:23     00:00:54
snow.blr.redhat.com         master    10.70.43.23::imaster    Stable  | checkpoint as of 2013-07-23 06:27:51 not reached yet                      00:01:10
spartacus.blr.redhat.com    master    10.70.43.23::imaster    Stable  | checkpoint as of 2013-07-23 06:27:51 not reached yet                      00:01:10
stark.blr.redhat.com        master    10.70.43.23::imaster    Stable  | checkpoint as of 2013-07-23 06:27:51 completed at 2013-07-23 11:58:16     00:01:01

Comment 2 Amar Tumballi 2013-08-01 10:12:30 UTC
Csaba, can you please have a look on this ASAP. We need to have all the 'time' to be in UTC in the code (so failover-failback should be seemless).

Comment 4 Vijaykumar Koppad 2013-11-05 10:52:16 UTC
It tried it on the build glusterfs-3.4.0.39rhs-1, it shows correct time but, the Bug 1025358 is still there.

Comment 5 Vijaykumar Koppad 2013-11-12 11:01:22 UTC
verified on the build glusterfs-3.4.0.43rhs-1. This is how checkpoint output looks now.

 
MASTER NODE                MASTER VOL    MASTER BRICK      SLAVE                  STATUS     CHECKPOINT STATUS                                                           CRAWL STATUS           
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
redcell.blr.redhat.com     master        /bricks/brick1    10.70.43.174::slave    Active     checkpoint as of 2013-11-12 16:24:17 is completed at 2013-11-12 16:24:38    Changelog Crawl        
redcloak.blr.redhat.com    master        /bricks/brick2    10.70.43.76::slave     Passive    N/A                                                                         N/A                    
redwood.blr.redhat.com     master        /bricks/brick4    10.70.42.151::slave    Passive    N/A                                                                         N/A                    
redlake.blr.redhat.com     master        /bricks/brick3    10.70.43.135::slave    Active     checkpoint as of 2013-11-12 16:24:17 is completed at 2013-11-12 16:24:38    Changelog Crawl

Comment 7 errata-xmlrpc 2013-11-27 15:29:49 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-1769.html


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