<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 &lt;<a href="mailto:avishwan@redhat.com">avishwan@redhat.com</a>&gt; 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&#39;t have<br>
this print statement. Please let us know which version of glusterfs you<br>
are using.<br>
<br>
<br>
```<br>
  File &quot;/usr/libexec/glusterfs/python/syncdaemon/syncdutils.py&quot;, line<br>
860, in __init__<br>
    print &quot;debug varible &quot; %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>
&gt; hi Aravinda,<br>
&gt;  had the session created using : create ssh-port 2222 push-pem and<br>
&gt; also the :<br>
&gt; <br>
&gt; gluster volume geo-replication vol_75a5fd373d88ba687f591f3353fa05cf<br>
&gt; 172.16.201.35::vol_e783a730578e45ed9d51b9a80df6c33f config ssh-port<br>
&gt; 2222<br>
&gt; <br>
&gt; hitting this message:<br>
&gt; geo-replication config-set failed for<br>
&gt; vol_75a5fd373d88ba687f591f3353fa05cf<br>
&gt; 172.16.201.35::vol_e783a730578e45ed9d51b9a80df6c33f<br>
&gt; geo-replication command failed<br>
&gt; <br>
&gt; Below is snap of status:<br>
&gt; <br>
&gt; [root@k8s-agentpool1-24779565-1<br>
&gt; vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vol_e783a730578e45ed9d51b9a80df6c33f]# gluster volume geo-replication vol_75a5fd373d88ba687f591f3353fa05cf 172.16.201.35::vol_e783a730578e45ed9d51b9a80df6c33f status<br>
&gt; <br>
&gt; MASTER NODE      MASTER VOL                              MASTER<br>
&gt; BRICK                                                               <br>
&gt;                                SLAVE USER    SLAVE                   <br>
&gt;                               SLAVE NODE    STATUS     CRAWL STATUS <br>
&gt;   LAST_SYNCED<br>
&gt; -------------------------------------------------------------------<br>
&gt; -------------------------------------------------------------------<br>
&gt; -------------------------------------------------------------------<br>
&gt; -------------------------------------------------------------------<br>
&gt; ----------------<br>
&gt; 172.16.189.4     vol_75a5fd373d88ba687f591f3353fa05cf   <br>
&gt; /var/lib/heketi/mounts/vg_aee3df7b0bb2451bc00a73358c5196a2/brick_116f<br>
&gt; b9427fb26f752d9ba8e45e183cb1/brick    root         <br>
&gt; 172.16.201.35::vol_e783a730578e45ed9d51b9a80df6c33f    N/A         <br>
&gt;  Created    N/A             N/A<br>
&gt; 172.16.189.35    vol_75a5fd373d88ba687f591f3353fa05cf   <br>
&gt; /var/lib/heketi/mounts/vg_05708751110fe60b3e7da15bdcf6d4d4/brick_266b<br>
&gt; b08f0d466d346f8c0b19569736fb/brick    root         <br>
&gt; 172.16.201.35::vol_e783a730578e45ed9d51b9a80df6c33f    N/A         <br>
&gt;  Created    N/A             N/A<br>
&gt; 172.16.189.66    vol_75a5fd373d88ba687f591f3353fa05cf   <br>
&gt; /var/lib/heketi/mounts/vg_4b92a2b687e59b7311055d3809b77c06/brick_dfa4<br>
&gt; 4c9380cdedac708e27e2c2a443a0/brick    root         <br>
&gt; 172.16.201.35::vol_e783a730578e45ed9d51b9a80df6c33f    N/A         <br>
&gt;  Created    N/A             N/A<br>
&gt; <br>
&gt; any ideas ? where can find logs for the failed commands check in<br>
&gt; gysncd.log , the trace is as below:<br>
&gt; <br>
&gt; [2019-03-25 04:04:42.295043] I [gsyncd(monitor):297:main] &lt;top&gt;:<br>
&gt; Using session config file      path=/var/lib/glusterd/geo-<br>
&gt; replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vol_e7<br>
&gt; 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
&gt; [2019-03-25 04:04:42.387192] E<br>
&gt; [syncdutils(monitor):332:log_raise_exception] &lt;top&gt;: FAIL:<br>
&gt; Traceback (most recent call last):<br>
&gt;   File &quot;/usr/libexec/glusterfs/python/syncdaemon/gsyncd.py&quot;, line<br>
&gt; 311, in main<br>
&gt;     func(args)<br>
&gt;   File &quot;/usr/libexec/glusterfs/python/syncdaemon/subcmds.py&quot;, line<br>
&gt; 50, in subcmd_monitor<br>
&gt;     return monitor.monitor(local, remote)<br>
&gt;   File &quot;/usr/libexec/glusterfs/python/syncdaemon/monitor.py&quot;, line<br>
&gt; 427, in monitor<br>
&gt;     return Monitor().multiplex(*distribute(local, remote))<br>
&gt;   File &quot;/usr/libexec/glusterfs/python/syncdaemon/monitor.py&quot;, line<br>
&gt; 370, in distribute<br>
&gt;     mvol = Volinfo(master.volume, master.host)<br>
&gt;   File &quot;/usr/libexec/glusterfs/python/syncdaemon/syncdutils.py&quot;, line<br>
&gt; 860, in __init__<br>
&gt;     print &quot;debug varible &quot; %vix<br>
&gt; TypeError: not all arguments converted during string formatting<br>
&gt; [2019-03-25 04:04:48.997519] I [gsyncd(config-get):297:main] &lt;top&gt;:<br>
&gt; Using session config file   path=/var/lib/glusterd/geo-<br>
&gt; replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vol_e7<br>
&gt; 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
&gt; [2019-03-25 04:04:49.93528] I [gsyncd(status):297:main] &lt;top&gt;: Using<br>
&gt; session config file        path=/var/lib/glusterd/geo-<br>
&gt; replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vol_e7<br>
&gt; 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
&gt; [2019-03-25 04:08:07.194348] I [gsyncd(config-get):297:main] &lt;top&gt;:<br>
&gt; Using session config file   path=/var/lib/glusterd/geo-<br>
&gt; replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vol_e7<br>
&gt; 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
&gt; [2019-03-25 04:08:07.262588] I [gsyncd(config-get):297:main] &lt;top&gt;:<br>
&gt; Using session config file   path=/var/lib/glusterd/geo-<br>
&gt; replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vol_e7<br>
&gt; 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
&gt; [2019-03-25 04:08:07.550080] I [gsyncd(config-get):297:main] &lt;top&gt;:<br>
&gt; Using session config file   path=/var/lib/glusterd/geo-<br>
&gt; replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vol_e7<br>
&gt; 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
&gt; [2019-03-25 04:08:18.933028] I [gsyncd(config-get):297:main] &lt;top&gt;:<br>
&gt; Using session config file   path=/var/lib/glusterd/geo-<br>
&gt; replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vol_e7<br>
&gt; 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
&gt; [2019-03-25 04:08:19.25285] I [gsyncd(status):297:main] &lt;top&gt;: Using<br>
&gt; session config file        path=/var/lib/glusterd/geo-<br>
&gt; replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vol_e7<br>
&gt; 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
&gt; [2019-03-25 04:09:15.766882] I [gsyncd(config-get):297:main] &lt;top&gt;:<br>
&gt; Using session config file   path=/var/lib/glusterd/geo-<br>
&gt; replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vol_e7<br>
&gt; 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
&gt; [2019-03-25 04:09:16.30267] I [gsyncd(config-get):297:main] &lt;top&gt;:<br>
&gt; Using session config file    path=/var/lib/glusterd/geo-<br>
&gt; replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vol_e7<br>
&gt; 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
&gt; [2019-03-25 04:09:16.89006] I [gsyncd(config-set):297:main] &lt;top&gt;:<br>
&gt; Using session config file    path=/var/lib/glusterd/geo-<br>
&gt; replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vol_e7<br>
&gt; 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
&gt; <br>
&gt; regards,<br>
&gt; Maurya<br>
&gt; <br>
&gt; On Mon, Mar 25, 2019 at 9:08 AM Aravinda &lt;<a href="mailto:avishwan@redhat.com" target="_blank">avishwan@redhat.com</a>&gt; wrote:<br>
&gt; &gt; Use `ssh-port &lt;port&gt;` while creating the Geo-rep session<br>
&gt; &gt; <br>
&gt; &gt; Ref: <br>
&gt; &gt; <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>
&gt; &gt; <br>
&gt; &gt; And set the ssh-port option before start.<br>
&gt; &gt; <br>
&gt; &gt; ```<br>
&gt; &gt; gluster volume geo-replication &lt;master_volume&gt; \<br>
&gt; &gt;     [&lt;slave_user&gt;@]&lt;slave_host&gt;::&lt;slave_volume&gt; config<br>
&gt; &gt;     ssh-port 2222<br>
&gt; &gt; ```<br>
&gt; &gt; <br>
-- <br>
regards<br>
Aravinda<br>
<br>
</blockquote></div>