<div dir="ltr">Sorry my bad, had put the print line to debug, i am using gluster 4.1.7, will remove the print line.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 25, 2019 at 10:52 AM Aravinda <<a href="mailto:avishwan@redhat.com">avishwan@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Below print statement looks wrong. Latest Glusterfs code doesn't have<br>
this print statement. Please let us know which version of glusterfs you<br>
are using.<br>
<br>
<br>
```<br>
File "/usr/libexec/glusterfs/python/syncdaemon/syncdutils.py", line<br>
860, in __init__<br>
print "debug varible " %vix<br>
```<br>
<br>
As a workaround, edit that file and comment the print line and test the<br>
geo-rep config command.<br>
<br>
<br>
On Mon, 2019-03-25 at 09:46 +0530, Maurya M wrote:<br>
> hi Aravinda,<br>
> had the session created using : create ssh-port 2222 push-pem and<br>
> also the :<br>
> <br>
> gluster volume geo-replication vol_75a5fd373d88ba687f591f3353fa05cf<br>
> 172.16.201.35::vol_e783a730578e45ed9d51b9a80df6c33f config ssh-port<br>
> 2222<br>
> <br>
> hitting this message:<br>
> geo-replication config-set failed for<br>
> vol_75a5fd373d88ba687f591f3353fa05cf<br>
> 172.16.201.35::vol_e783a730578e45ed9d51b9a80df6c33f<br>
> geo-replication command failed<br>
> <br>
> Below is snap of status:<br>
> <br>
> [root@k8s-agentpool1-24779565-1<br>
> vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vol_e783a730578e45ed9d51b9a80df6c33f]# gluster volume geo-replication vol_75a5fd373d88ba687f591f3353fa05cf 172.16.201.35::vol_e783a730578e45ed9d51b9a80df6c33f status<br>
> <br>
> MASTER NODE MASTER VOL MASTER<br>
> BRICK <br>
> SLAVE USER SLAVE <br>
> SLAVE NODE STATUS CRAWL STATUS <br>
> LAST_SYNCED<br>
> -------------------------------------------------------------------<br>
> -------------------------------------------------------------------<br>
> -------------------------------------------------------------------<br>
> -------------------------------------------------------------------<br>
> ----------------<br>
> 172.16.189.4 vol_75a5fd373d88ba687f591f3353fa05cf <br>
> /var/lib/heketi/mounts/vg_aee3df7b0bb2451bc00a73358c5196a2/brick_116f<br>
> b9427fb26f752d9ba8e45e183cb1/brick root <br>
> 172.16.201.35::vol_e783a730578e45ed9d51b9a80df6c33f N/A <br>
> Created N/A N/A<br>
> 172.16.189.35 vol_75a5fd373d88ba687f591f3353fa05cf <br>
> /var/lib/heketi/mounts/vg_05708751110fe60b3e7da15bdcf6d4d4/brick_266b<br>
> b08f0d466d346f8c0b19569736fb/brick root <br>
> 172.16.201.35::vol_e783a730578e45ed9d51b9a80df6c33f N/A <br>
> Created N/A N/A<br>
> 172.16.189.66 vol_75a5fd373d88ba687f591f3353fa05cf <br>
> /var/lib/heketi/mounts/vg_4b92a2b687e59b7311055d3809b77c06/brick_dfa4<br>
> 4c9380cdedac708e27e2c2a443a0/brick root <br>
> 172.16.201.35::vol_e783a730578e45ed9d51b9a80df6c33f N/A <br>
> Created N/A N/A<br>
> <br>
> any ideas ? where can find logs for the failed commands check in<br>
> gysncd.log , the trace is as below:<br>
> <br>
> [2019-03-25 04:04:42.295043] I [gsyncd(monitor):297:main] <top>:<br>
> Using session config file path=/var/lib/glusterd/geo-<br>
> replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vol_e7<br>
> 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
> [2019-03-25 04:04:42.387192] E<br>
> [syncdutils(monitor):332:log_raise_exception] <top>: FAIL:<br>
> Traceback (most recent call last):<br>
> File "/usr/libexec/glusterfs/python/syncdaemon/gsyncd.py", line<br>
> 311, in main<br>
> func(args)<br>
> File "/usr/libexec/glusterfs/python/syncdaemon/subcmds.py", line<br>
> 50, in subcmd_monitor<br>
> return monitor.monitor(local, remote)<br>
> File "/usr/libexec/glusterfs/python/syncdaemon/monitor.py", line<br>
> 427, in monitor<br>
> return Monitor().multiplex(*distribute(local, remote))<br>
> File "/usr/libexec/glusterfs/python/syncdaemon/monitor.py", line<br>
> 370, in distribute<br>
> mvol = Volinfo(master.volume, master.host)<br>
> File "/usr/libexec/glusterfs/python/syncdaemon/syncdutils.py", line<br>
> 860, in __init__<br>
> print "debug varible " %vix<br>
> TypeError: not all arguments converted during string formatting<br>
> [2019-03-25 04:04:48.997519] I [gsyncd(config-get):297:main] <top>:<br>
> Using session config file path=/var/lib/glusterd/geo-<br>
> replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vol_e7<br>
> 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
> [2019-03-25 04:04:49.93528] I [gsyncd(status):297:main] <top>: Using<br>
> session config file path=/var/lib/glusterd/geo-<br>
> replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vol_e7<br>
> 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
> [2019-03-25 04:08:07.194348] I [gsyncd(config-get):297:main] <top>:<br>
> Using session config file path=/var/lib/glusterd/geo-<br>
> replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vol_e7<br>
> 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
> [2019-03-25 04:08:07.262588] I [gsyncd(config-get):297:main] <top>:<br>
> Using session config file path=/var/lib/glusterd/geo-<br>
> replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vol_e7<br>
> 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
> [2019-03-25 04:08:07.550080] I [gsyncd(config-get):297:main] <top>:<br>
> Using session config file path=/var/lib/glusterd/geo-<br>
> replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vol_e7<br>
> 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
> [2019-03-25 04:08:18.933028] I [gsyncd(config-get):297:main] <top>:<br>
> Using session config file path=/var/lib/glusterd/geo-<br>
> replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vol_e7<br>
> 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
> [2019-03-25 04:08:19.25285] I [gsyncd(status):297:main] <top>: Using<br>
> session config file path=/var/lib/glusterd/geo-<br>
> replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vol_e7<br>
> 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
> [2019-03-25 04:09:15.766882] I [gsyncd(config-get):297:main] <top>:<br>
> Using session config file path=/var/lib/glusterd/geo-<br>
> replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vol_e7<br>
> 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
> [2019-03-25 04:09:16.30267] I [gsyncd(config-get):297:main] <top>:<br>
> Using session config file path=/var/lib/glusterd/geo-<br>
> replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vol_e7<br>
> 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
> [2019-03-25 04:09:16.89006] I [gsyncd(config-set):297:main] <top>:<br>
> Using session config file path=/var/lib/glusterd/geo-<br>
> replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vol_e7<br>
> 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
> <br>
> regards,<br>
> Maurya<br>
> <br>
> On Mon, Mar 25, 2019 at 9:08 AM Aravinda <<a href="mailto:avishwan@redhat.com" target="_blank">avishwan@redhat.com</a>> wrote:<br>
> > Use `ssh-port <port>` while creating the Geo-rep session<br>
> > <br>
> > Ref: <br>
> > <a href="https://docs.gluster.org/en/latest/Administrator%20Guide/Geo%20Replication/#creating-the-session" rel="noreferrer" target="_blank">https://docs.gluster.org/en/latest/Administrator%20Guide/Geo%20Replication/#creating-the-session</a><br>
> > <br>
> > And set the ssh-port option before start.<br>
> > <br>
> > ```<br>
> > gluster volume geo-replication <master_volume> \<br>
> > [<slave_user>@]<slave_host>::<slave_volume> config<br>
> > ssh-port 2222<br>
> > ```<br>
> > <br>
-- <br>
regards<br>
Aravinda<br>
<br>
</blockquote></div>