Bug 1496238 - [geo-rep]: Scheduler help needs correction for description of --no-color
Summary: [geo-rep]: Scheduler help needs correction for description of --no-color
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: geo-replication
Version: 3.12
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Kotresh HR
QA Contact:
URL:
Whiteboard:
Depends On: 1475466 1495436
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-26 18:32 UTC by Kotresh HR
Modified: 2017-10-13 12:46 UTC (History)
6 users (show)

Fixed In Version: glusterfs-glusterfs-3.12.2
Clone Of: 1495436
Environment:
Last Closed: 2017-10-13 12:46:54 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Kotresh HR 2017-09-26 18:32:31 UTC
+++ This bug was initially created as a clone of Bug #1495436 +++

Description of problem:
-----------------------

Currently the description of --no-color in the help of schedule_georep is "Use Color in CLI output". Whereas the default is with color, and if user provides this option, that means no color will be seen in the output and hence the description should be:

--no-color           Do not Use Color in CLI output

Output:
-------

[root@dhcp42-79 MASTER]#  python /usr/share/glusterfs/scripts/schedule_georep.py --h
usage: schedule_georep.py [-h] [--interval INTERVAL] [--timeout TIMEOUT]
                          [--no-color]
                          mastervol SLAVE slavevol

Schedule Geo-replication
------------------------
A tool to run Geo-replication when required. This can be used to
schedule the Geo-replication to run once in a day using

   # Run daily at 08:30pm
   30 20 * * * root python /usr/share/glusterfs/scripts/schedule_georep.py \
      --no-color gv1 fvm1 gv2 >> /var/log/glusterfs/schedule_georep.log 2>&1

This tool does the following,

1. Stop Geo-replication if Started
2. Start Geo-replication
3. Set Checkpoint
4. Check the Status and see Checkpoint is Complete.(LOOP)
5. If checkpoint complete, Stop Geo-replication

Usage:

    python /usr/share/glusterfs/scripts/schedule_georep.py <MASTERVOL> \
         <SLAVEHOST> <SLAVEVOL>

For example,

    python /usr/share/glusterfs/scripts/schedule_georep.py gv1 fvm1 gv2

positional arguments:
  mastervol            Master Volume Name
  SLAVE                SLAVEHOST or root@SLAVEHOST or user@SLAVEHOST
  slavevol             Slave Volume Name

optional arguments:
  -h, --help           show this help message and exit
  --interval INTERVAL  Interval in Seconds. Wait time before each status check
  --timeout TIMEOUT    Timeout in minutes. Script will stop Geo-replication if
                       Checkpoint is not complete in the specified timeout
                       time
  --no-color           Use Color in CLI output
[root@dhcp42-79 MASTER]# 


Version-Release number of selected component (if applicable):
=============================================================

mainline

--- Additional comment from Worker Ant on 2017-09-25 23:56:09 EDT ---

REVIEW: https://review.gluster.org/18388 (geo-rep/scheduler: Fix '--no-color' help msg) posted (#1) for review on master by Kotresh HR (khiremat)

--- Additional comment from Worker Ant on 2017-09-26 05:28:49 EDT ---

COMMIT: https://review.gluster.org/18388 committed in master by Aravinda VK (avishwan) 
------
commit 8855ebcfecde2a21e0a9ba725e9738708e03904a
Author: Kotresh HR <khiremat>
Date:   Mon Sep 25 23:34:55 2017 -0400

    geo-rep/scheduler: Fix '--no-color' help msg
    
    Change-Id: I0f51558083e0b11a6563b8a2ef62ec07fe2a9ca9
    BUG: 1495436
    Signed-off-by: Kotresh HR <khiremat>

Comment 1 Worker Ant 2017-09-26 18:38:26 UTC
REVIEW: https://review.gluster.org/18398 (geo-rep/scheduler: Fix '--no-color' help msg) posted (#1) for review on release-3.12 by Kotresh HR (khiremat)

Comment 2 Worker Ant 2017-10-06 06:31:07 UTC
COMMIT: https://review.gluster.org/18398 committed in release-3.12 by jiffin tony Thottan (jthottan) 
------
commit 0a1792901df2b9804e5ac20102a2c2e4a28bdfc0
Author: Kotresh HR <khiremat>
Date:   Mon Sep 25 23:34:55 2017 -0400

    geo-rep/scheduler: Fix '--no-color' help msg
    
    > Change-Id: I0f51558083e0b11a6563b8a2ef62ec07fe2a9ca9
    > BUG: 1495436
    > Signed-off-by: Kotresh HR <khiremat>
    (cherry picked from commit 8855ebcfecde2a21e0a9ba725e9738708e03904a)
    
    Change-Id: I0f51558083e0b11a6563b8a2ef62ec07fe2a9ca9
    BUG: 1496238
    Signed-off-by: Kotresh HR <khiremat>

Comment 3 Jiffin 2017-10-13 12:46:54 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-glusterfs-3.12.2, please open a new bug report.

glusterfs-glusterfs-3.12.2 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://lists.gluster.org/pipermail/gluster-users/2017-October/032684.html
[2] https://www.gluster.org/pipermail/gluster-users/


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