<div dir="ltr"><div dir="ltr">some addtion logs from gverify-mastermnt.log & gverify-slavemnt.log: <div><br></div><div><div>[2019-03-25 12:13:23.819665] W [rpc-clnt.c:1753:rpc_clnt_submit] 0-vol_75a5fd373d88ba687f591f3353fa05cf-client-2: error returned while attempting to connect to host:(null), port:0</div><div>[2019-03-25 12:13:23.819814] W [dict.c:923:str_to_data] (-->/usr/lib64/glusterfs/4.1.7/xlator/protocol/client.so(+0x40c0a) [0x7f3eb4d86c0a] -->/lib64/libglusterfs.so.0(dict_set_str+0x16) [0x7f3ebc334266] -->/lib64/libglusterfs.so.0(str_to_data+0x91) [0x7f3ebc330ea1] ) 0-dict: <b>value is NULL [Invalid argument]</b></div></div><div><b><br></b></div><div><b><br></b></div><div> any idea how to fix this ? any patch file i can try with please share.</div><div><br></div><div>thanks,</div><div>Maurya</div><div><b><br></b></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 25, 2019 at 3:37 PM Maurya M <<a href="mailto:mauryam@gmail.com">mauryam@gmail.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"><div dir="ltr"><div dir="ltr">ran this command : ssh -p 2222 -i /var/lib/glusterd/geo-replication/secret.pem root@<slave node>gluster volume info --xml </div><div dir="ltr"><br></div><div dir="ltr">attaching the output.<br><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 25, 2019 at 2:13 PM Aravinda <<a href="mailto:avishwan@redhat.com" target="_blank">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">Geo-rep is running `ssh -i /var/lib/glusterd/geo-replication/secret.pem <br>
root@<slavenode> gluster volume info --xml` and parsing its output.<br>
Please try to to run the command from the same node and let us know the<br>
output.<br>
<br>
<br>
On Mon, 2019-03-25 at 11:43 +0530, Maurya M wrote:<br>
> Now the error is on the same line 860 : as highlighted below:<br>
> <br>
> [2019-03-25 06:11:52.376238] 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>
> 386, in distribute<br>
> svol = Volinfo(slave.volume, "localhost", prelude)<br>
> File "/usr/libexec/glusterfs/python/syncdaemon/syncdutils.py", line<br>
> 860, in __init__<br>
> vi = XET.fromstring(vix)<br>
> File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1300, in<br>
> XML<br>
> parser.feed(text)<br>
> File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1642, in<br>
> feed<br>
> self._raiseerror(v)<br>
> File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1506, in<br>
> _raiseerror<br>
> raise err<br>
> ParseError: syntax error: line 1, column 0<br>
> <br>
> <br>
> On Mon, Mar 25, 2019 at 11:29 AM Maurya M <<a href="mailto:mauryam@gmail.com" target="_blank">mauryam@gmail.com</a>> wrote:<br>
> > Sorry my bad, had put the print line to debug, i am using gluster<br>
> > 4.1.7, will remove the print line.<br>
> > <br>
> > On Mon, Mar 25, 2019 at 10:52 AM Aravinda <<a href="mailto:avishwan@redhat.com" target="_blank">avishwan@redhat.com</a>><br>
> > wrote:<br>
> > > Below print statement looks wrong. Latest Glusterfs code doesn't<br>
> > > have<br>
> > > this print statement. Please let us know which version of<br>
> > > glusterfs you<br>
> > > are using.<br>
> > > <br>
> > > <br>
> > > ```<br>
> > > File "/usr/libexec/glusterfs/python/syncdaemon/syncdutils.py",<br>
> > > 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<br>
> > > 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<br>
> > > and<br>
> > > > also the :<br>
> > > > <br>
> > > > gluster volume geo-replication<br>
> > > vol_75a5fd373d88ba687f591f3353fa05cf<br>
> > > > 172.16.201.35::vol_e783a730578e45ed9d51b9a80df6c33f config ssh-<br>
> > > 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>
> > > ><br>
> > > vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vol_e783a73057<br>
> > > 8e45ed9d51b9a80df6c33f]# gluster volume geo-replication<br>
> > > vol_75a5fd373d88ba687f591f3353fa05cf<br>
> > > 172.16.201.35::vol_e783a730578e45ed9d51b9a80df6c33f status<br>
> > > > <br>
> > > > MASTER NODE MASTER VOL MASTER<br>
> > > > BRICK <br>
> > > <br>
> > > > SLAVE USER SLAVE <br>
> > > <br>
> > > > SLAVE NODE STATUS CRAWL<br>
> > > STATUS <br>
> > > > LAST_SYNCED<br>
> > > > -------------------------------------------------------------<br>
> > > ------<br>
> > > > -------------------------------------------------------------<br>
> > > ------<br>
> > > > -------------------------------------------------------------<br>
> > > ------<br>
> > > > -------------------------------------------------------------<br>
> > > ------<br>
> > > > ----------------<br>
> > > > 172.16.189.4 vol_75a5fd373d88ba687f591f3353fa05cf <br>
> > > ><br>
> > > /var/lib/heketi/mounts/vg_aee3df7b0bb2451bc00a73358c5196a2/brick_<br>
> > > 116f<br>
> > > > b9427fb26f752d9ba8e45e183cb1/brick root <br>
> > > > 172.16.201.35::vol_e783a730578e45ed9d51b9a80df6c33f N/A <br>
> > > <br>
> > > > Created N/A N/A<br>
> > > > 172.16.189.35 vol_75a5fd373d88ba687f591f3353fa05cf <br>
> > > ><br>
> > > /var/lib/heketi/mounts/vg_05708751110fe60b3e7da15bdcf6d4d4/brick_<br>
> > > 266b<br>
> > > > b08f0d466d346f8c0b19569736fb/brick root <br>
> > > > 172.16.201.35::vol_e783a730578e45ed9d51b9a80df6c33f N/A <br>
> > > <br>
> > > > Created N/A N/A<br>
> > > > 172.16.189.66 vol_75a5fd373d88ba687f591f3353fa05cf <br>
> > > ><br>
> > > /var/lib/heketi/mounts/vg_4b92a2b687e59b7311055d3809b77c06/brick_<br>
> > > dfa4<br>
> > > > 4c9380cdedac708e27e2c2a443a0/brick root <br>
> > > > 172.16.201.35::vol_e783a730578e45ed9d51b9a80df6c33f N/A <br>
> > > <br>
> > > > Created N/A N/A<br>
> > > > <br>
> > > > any ideas ? where can find logs for the failed commands check<br>
> > > in<br>
> > > > gysncd.log , the trace is as below:<br>
> > > > <br>
> > > > [2019-03-25 04:04:42.295043] I [gsyncd(monitor):297:main]<br>
> > > <top>:<br>
> > > > Using session config file path=/var/lib/glusterd/geo-<br>
> > > ><br>
> > > replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vo<br>
> > > l_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",<br>
> > > line<br>
> > > > 311, in main<br>
> > > > func(args)<br>
> > > > File "/usr/libexec/glusterfs/python/syncdaemon/subcmds.py",<br>
> > > line<br>
> > > > 50, in subcmd_monitor<br>
> > > > return monitor.monitor(local, remote)<br>
> > > > File "/usr/libexec/glusterfs/python/syncdaemon/monitor.py",<br>
> > > line<br>
> > > > 427, in monitor<br>
> > > > return Monitor().multiplex(*distribute(local, remote))<br>
> > > > File "/usr/libexec/glusterfs/python/syncdaemon/monitor.py",<br>
> > > line<br>
> > > > 370, in distribute<br>
> > > > mvol = Volinfo(master.volume, master.host)<br>
> > > > File<br>
> > > "/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]<br>
> > > <top>:<br>
> > > > Using session config file path=/var/lib/glusterd/geo-<br>
> > > ><br>
> > > replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vo<br>
> > > l_e7<br>
> > > > 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
> > > > [2019-03-25 04:04:49.93528] I [gsyncd(status):297:main] <top>:<br>
> > > Using<br>
> > > > session config file path=/var/lib/glusterd/geo-<br>
> > > ><br>
> > > replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vo<br>
> > > l_e7<br>
> > > > 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
> > > > [2019-03-25 04:08:07.194348] I [gsyncd(config-get):297:main]<br>
> > > <top>:<br>
> > > > Using session config file path=/var/lib/glusterd/geo-<br>
> > > ><br>
> > > replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vo<br>
> > > l_e7<br>
> > > > 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
> > > > [2019-03-25 04:08:07.262588] I [gsyncd(config-get):297:main]<br>
> > > <top>:<br>
> > > > Using session config file path=/var/lib/glusterd/geo-<br>
> > > ><br>
> > > replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vo<br>
> > > l_e7<br>
> > > > 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
> > > > [2019-03-25 04:08:07.550080] I [gsyncd(config-get):297:main]<br>
> > > <top>:<br>
> > > > Using session config file path=/var/lib/glusterd/geo-<br>
> > > ><br>
> > > replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vo<br>
> > > l_e7<br>
> > > > 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
> > > > [2019-03-25 04:08:18.933028] I [gsyncd(config-get):297:main]<br>
> > > <top>:<br>
> > > > Using session config file path=/var/lib/glusterd/geo-<br>
> > > ><br>
> > > replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vo<br>
> > > l_e7<br>
> > > > 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
> > > > [2019-03-25 04:08:19.25285] I [gsyncd(status):297:main] <top>:<br>
> > > Using<br>
> > > > session config file path=/var/lib/glusterd/geo-<br>
> > > ><br>
> > > replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vo<br>
> > > l_e7<br>
> > > > 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
> > > > [2019-03-25 04:09:15.766882] I [gsyncd(config-get):297:main]<br>
> > > <top>:<br>
> > > > Using session config file path=/var/lib/glusterd/geo-<br>
> > > ><br>
> > > replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vo<br>
> > > l_e7<br>
> > > > 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
> > > > [2019-03-25 04:09:16.30267] I [gsyncd(config-get):297:main]<br>
> > > <top>:<br>
> > > > Using session config file path=/var/lib/glusterd/geo-<br>
> > > ><br>
> > > replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vo<br>
> > > l_e7<br>
> > > > 83a730578e45ed9d51b9a80df6c33f/gsyncd.conf<br>
> > > > [2019-03-25 04:09:16.89006] I [gsyncd(config-set):297:main]<br>
> > > <top>:<br>
> > > > Using session config file path=/var/lib/glusterd/geo-<br>
> > > ><br>
> > > replication/vol_75a5fd373d88ba687f591f3353fa05cf_172.16.201.35_vo<br>
> > > l_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>><br>
> > > wrote:<br>
> > > > > Use `ssh-port <port>` while creating the Geo-rep session<br>
> > > > > <br>
> > > > > Ref: <br>
> > > > > <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>
</blockquote></div>