Bug 1380122
Summary: | Labelled geo-rep checkpoints hide geo-replication status | |||
---|---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Chris Blum <cblum> | |
Component: | geo-replication | Assignee: | Aravinda VK <avishwan> | |
Status: | CLOSED ERRATA | QA Contact: | Rahul Hinduja <rhinduja> | |
Severity: | medium | Docs Contact: | ||
Priority: | unspecified | |||
Version: | rhgs-3.1 | CC: | amukherj, avishwan, csaba, rhs-bugs, storage-qa-internal | |
Target Milestone: | --- | |||
Target Release: | RHGS 3.2.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | glusterfs-3.8.4-6 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1388401 (view as bug list) | Environment: | ||
Last Closed: | 2017-03-23 05:50:01 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: | 1351528, 1388401, 1395626, 1395627, 1395628 |
Description
Chris Blum
2016-09-28 17:30:35 UTC
Set the Checkpoint for current time using, gluster volume geo-replication rep01 RHGS3::slave config checkpoint now As mentioned in the description we need to validate for other inputs.(other than now) Added validation for label format. Now Geo-rep checkpoint label will accept only valid date with format "YYYY-MM-DD HH:MM:SS" For example, "2016-10-25 14:30:45" Upstream patch sent to fix the issue http://review.gluster.org/15721 I don't approve with this... A 'label' should be a text string that I can assign (like "pre-prod"), not a very strictly defined date-time-stamp. Why is it not possible to use a string here? (In reply to Chris Blum from comment #4) > I don't approve with this... A 'label' should be a text string that I can > assign (like "pre-prod"), not a very strictly defined date-time-stamp. > Why is it not possible to use a string here? Currently Geo-replication uses checkpoint date to find sync is complete till that time or not. Checkpoint completion means everything created in Master before the checkpoint time is synced to slave. Example usage of Checkpoint: gluster volume geo-replication rep01 RHGS3::slave config checkpoint "2016-10-25 20:00:00" Watch the Checkpoint status using Geo-rep status command, If the status says Checkpoint completed=Yes then it means all the files created/modified in Master Volume before 2016-10-25 20:00:00 are synced to Slave volume. May be I am missing something here. What is the usecase of non date checkpoint? We can enhance Geo-replication to support that usecase. OK that makes more sense then - so the label is then implemented so that I can find out if things 5 days ago have been properly synced to the other side? Will the 'checkpoint completed' timestamp then show me when the files 5 days ago have been synced? Because why else would I be interested in an earlier date other than now if not? (In reply to Chris Blum from comment #6) > OK that makes more sense then - so the label is then implemented so that I > can find out if things 5 days ago have been properly synced to the other > side? > Will the 'checkpoint completed' timestamp then show me when the files 5 days > ago have been synced? Because why else would I be interested in an earlier > date other than now if not? With the "last synced" column in status output, so earlier checkpoint date is not much useful. If last synced time from all Active workers are more than required time then it can be considered as checkpoint completed. Labeled checkpoint is more useful to set future times. For example, checkpoint is required for midnight current day. Instead of setting checkpoint at midnight using now, it can be set using label. Upstream Patches: Mainline: http://review.gluster.org/15721 Release 3.7: http://review.gluster.org/15856 Release 3.8: http://review.gluster.org/15855 Release 3.9: http://review.gluster.org/15854 Downstream Patch: https://code.engineering.redhat.com/gerrit/90316 Verified with the build: glusterfs-geo-replication-3.8.4-17.el7rhgs.x86_64 checkpoint do not accept values other than now and format (Y-m-d H:M:S) 3.1.3: ====== [root@dhcp42-195 scripts]# gluster volume geo-replication master 10.70.43.63::slave status MASTER NODE MASTER VOL MASTER BRICK SLAVE USER SLAVE SLAVE NODE STATUS CRAWL STATUS LAST_SYNCED --------------------------------------------------------------------------------------------------------------------------------------------------- 10.70.42.195 master /rhs/brick1/b1 root 10.70.43.63::slave 10.70.42.54 Active Changelog Crawl 2017-03-05 07:23:15 10.70.42.195 master /rhs/brick2/b4 root 10.70.43.63::slave 10.70.42.54 Active Changelog Crawl 2017-03-05 07:23:15 10.70.43.93 master /rhs/brick1/b3 root 10.70.43.63::slave 10.70.43.178 Active Changelog Crawl 2017-03-05 07:23:15 10.70.43.93 master /rhs/brick2/b6 root 10.70.43.63::slave 10.70.43.178 Active Changelog Crawl 2017-03-05 07:23:15 10.70.43.124 master /rhs/brick1/b2 root 10.70.43.63::slave 10.70.43.63 Active Changelog Crawl 2017-03-05 07:23:23 10.70.43.124 master /rhs/brick2/b5 root 10.70.43.63::slave 10.70.43.63 Active Changelog Crawl 2017-03-05 07:23:15 [root@dhcp42-195 scripts]# gluster volume geo-replication master 10.70.43.63::slave config checkpoint rahul geo-replication config updated successfully [root@dhcp42-195 scripts]# gluster volume geo-replication master 10.70.43.63::slave config checkpoint rahul [root@dhcp42-195 scripts]# gluster volume geo-replication master 10.70.43.63::slave status No active geo-replication sessions between master and 10.70.43.63::slave [root@dhcp42-195 scripts]# 3.2.0: ====== [root@dhcp42-7 scripts]# gluster volume geo-replication master 10.70.43.249::slave config checkpoint rahul Invalid Checkpoint label. Use format "Y-m-d H:M:S", Example: 2016-10-25 15:30:45 Usage: volume geo-replication [<VOLNAME>] [<SLAVE-URL>] {create [[ssh-port n] [[no-verify]|[push-pem]]] [force]|start [force]|stop [force]|pause [force]|resume [force]|config|status [detail]|delete [reset-sync-time]} [options...] [root@dhcp42-7 scripts]# Moving the bug to verified state. 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. https://rhn.redhat.com/errata/RHSA-2017-0486.html |