Bug 1475466 - [geo-rep]: Scheduler help needs correction for description of --no-color
[geo-rep]: Scheduler help needs correction for description of --no-color
Status: POST
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: geo-replication (Show other bugs)
x86_64 Linux
unspecified Severity low
: ---
: ---
Assigned To: Kotresh HR
Rahul Hinduja
Depends On:
Blocks: 1495436 1496238
  Show dependency treegraph
Reported: 2017-07-26 14:17 EDT by Rahul Hinduja
Modified: 2017-10-17 10:12 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1495436 (view as bug list)
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Rahul Hinduja 2017-07-26 14:17:21 EDT
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-25 23:58:37 EDT
Upstream Patch:

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

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