Bug 1475466 - [geo-rep]: Scheduler help needs correction for description of --no-color
Summary: [geo-rep]: Scheduler help needs correction for description of --no-color
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: geo-replication
Version: rhgs-3.3
Hardware: x86_64
OS: Linux
Target Milestone: ---
: RHGS 3.4.0
Assignee: Kotresh HR
QA Contact: Rahul Hinduja
Whiteboard: rebase
Depends On:
Blocks: 1495436 1496238 1503134
TreeView+ depends on / blocked
Reported: 2017-07-26 18:17 UTC by Rahul Hinduja
Modified: 2018-09-14 06:11 UTC (History)
6 users (show)

Fixed In Version: glusterfs-3.12.2-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1495436 (view as bug list)
Last Closed: 2018-09-04 06:34:19 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:2607 None None None 2018-09-04 06:36:23 UTC

Description Rahul Hinduja 2017-07-26 18:17:21 UTC
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


[root@dhcp42-79 MASTER]#  python /usr/share/glusterfs/scripts/schedule_georep.py --h
usage: schedule_georep.py [-h] [--interval INTERVAL] [--timeout TIMEOUT]
                          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


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

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
  --no-color           Use Color in CLI output
[root@dhcp42-79 MASTER]# 

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


Comment 3 Kotresh HR 2017-09-26 03:58:37 UTC
Upstream Patch:

https://review.gluster.org/18388 (master)

Comment 6 Rahul Hinduja 2018-04-18 08:42:41 UTC
Verified this bug with build: glusterfs-geo-replication-3.12.2-7.el7rhgs.x86_64

It now correctly reflects the description of "--no-color" as

[root@dhcp41-226 scripts]#  python /usr/share/glusterfs/scripts/schedule_georep.py --h | grep "no-color"
      --no-color gv1 fvm1 gv2 >> /var/log/glusterfs/schedule_georep.log 2>&1
  --no-color           Don't use Color in CLI output
[root@dhcp41-226 scripts]# 

Moving bug to verified state.

Comment 7 errata-xmlrpc 2018-09-04 06:34:19 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.


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