glusterfs icon indicating copy to clipboard operation
glusterfs copied to clipboard

Glusterfs7.5: geo-replication status show Faulty

Open httaotao opened this issue 6 years ago • 6 comments

Hi everybody, I make some volume both in the same node, but when I make the geo-replication session,it makes error.

[2020-11-04 09:10:22.128411] E [syncdutils(monitor):822:errlog] Popen: command returned error	cmd=ssh -oPasswordAuthentication=no -oStrictHostKeyChecking=no -i /var/lib/glusterd/geo-replication/secret.pem -p 22 10.3.2.33 /usr/sbin/gluster --xml --remote-host=localhost volume info gfs_lvm2_110407	error=255
[2020-11-04 09:10:22.128803] E [syncdutils(monitor):826:logerr] Popen: ssh> [email protected]: Permission denied (publickey,password).

The specific operation is as follows:

# gluster-georep-sshkey generate

# gluster volume create test-none-lvm2-1104-07-3g disperse 3 10.3.2.{31..33}:/glusterfs/cloud/test-none-lvm2-1104-07-3g
volume create: test-none-lvm2-1104-07-3g: success: please start the volume to access data

# gluster volume create gfs_lvm2_110407 disperse 3  10.3.2.{31..33}:/var/lib/glusterfs-thin-lvm-brick/mounts/gfs_lvm2_110407/brick_20201104/brick force
volume create: gfs_lvm2_110407: success: please start the volume to access data

# gluster-mountbroker  setup /var/mountbroker-geo  root
# gluster-mountbroker add  gfs_lvm2_110407 root 

# gluster volume geo-replication test-none-lvm2-1104-07-3g  [email protected]::gfs_lvm2_110407 create no-verify

And then I also want to deal with this problem, so I do that:

# gluster volume geo-replication test-none-lvm2-1104-07-3g [email protected]::gfs_lvm2_110407 stop
# cp /root/.ssh/id_rsa /var/lib/glusterd/geo-replication/secret.pem
# cp /root/.ssh/id_rsa.pub /var/lib/glusterd/geo-replication/secret.pem.pub
# gluster volume geo-replication test-none-lvm2-1104-07-3g [email protected]::gfs_lvm2_110407 start

it also report error in log file, like that:

[2020-11-04 09:18:28.360759] E [syncdutils(worker /glusterfs/cloud/test-none-lvm2-1104-07-3g):312:log_raise_exception] <top>: connection to peer is broken
[2020-11-04 09:18:28.361122] E [syncdutils(worker /glusterfs/cloud/test-none-lvm2-1104-07-3g):316:log_raise_exception] <top>: getting "No such file or directory"errors is most likely due to MISCONFIGURATION, please remove all the public keys added by geo-replication from authorized_keys file in slave nodes and run Geo-replication create command again.
[2020-11-04 09:18:28.361245] E [syncdutils(worker /glusterfs/cloud/test-none-lvm2-1104-07-3g):323:log_raise_exception] <top>: If `gsec_create container` was used, then run `gluster volume geo-replication <MASTERVOL> [<SLAVEUSER>@]<SLAVEHOST>::<SLAVEVOL> config remote-gsyncd <GSYNCD_PATH> (Example GSYNCD_PATH: `/usr/libexec/glusterfs/gsyncd`)
[2020-11-04 09:18:28.361433] E [syncdutils(worker /glusterfs/cloud/test-none-lvm2-1104-07-3g):822:errlog] Popen: command returned error	cmd=ssh -oPasswordAuthentication=no -oStrictHostKeyChecking=no -i /var/lib/glusterd/geo-replication/secret.pem -p 22 -oControlMaster=auto -S /tmp/gsyncd-aux-ssh-p2bji2lt/de97993b61c73b11ab05d4b60fd94508.sock 10.3.2.31 /nonexistent/gsyncd slave test-none-lvm2-1104-07-3g 10.3.2.33::gfs_lvm2_110407 --master-node 10.3.2.33 --master-node-id ac54bb0e-44e6-45ab-9568-29899117b989 --master-brick /glusterfs/cloud/test-none-lvm2-1104-07-3g --local-node 10.3.2.31 --local-node-id 5bbb5fba-594b-4cb8-b313-207432c42b98 --slave-timeout 120 --slave-log-level INFO --slave-gluster-log-level INFO --slave-gluster-command-dir /usr/sbin --master-dist-count 3	error=127
[2020-11-04 09:18:28.361566] E [syncdutils(worker /glusterfs/cloud/test-none-lvm2-1104-07-3g):826:logerr] Popen: ssh> bash: /nonexistent/gsyncd: No such file or directory

I don't konw how to deal with this problem . By the way , I could not understand the param " --no-prefix" function. thanks

httaotao avatar Nov 04 '20 09:11 httaotao

gluster volume geo-replication test-none-lvm2-1104-07-3g [email protected]::gfs_lvm2_110407 create no-verify

Do not use no-verify here, Run create command as below. no-verify will not distribute the required ssh keys.

gluster volume geo-replication test-none-lvm2-1104-07-3g  [email protected]::gfs_lvm2_110407 create push-pem

aravindavk avatar Nov 04 '20 09:11 aravindavk

gluster volume geo-replication test-none-lvm2-1104-07-3g [email protected]::gfs_lvm2_110407 create no-verify

Do not use no-verify here, Run create command as below. no-verify will not distribute the required ssh keys.

gluster volume geo-replication test-none-lvm2-1104-07-3g  [email protected]::gfs_lvm2_110407 create push-pem

thanks, I use root user and not use "no-verify" to deal with this problem.

httaotao avatar Nov 05 '20 07:11 httaotao

@httaotao are you able to setup geo-replication without any issues ?

thisismsreddy avatar Nov 25 '20 06:11 thisismsreddy

@httaotao are you able to setup geo-replication without any issues ?

I setup geo-replication with root, it is ok. but when I use other user,it show some error about sshd.

httaotao avatar Nov 25 '20 06:11 httaotao

@httaotao got it, if you don't mind asking, what version of gluster you are running what is base OS ? I've tried to setup gluster 8.2 on centos 8 without any luck. Thank you.

thisismsreddy avatar Nov 25 '20 07:11 thisismsreddy

@httaotao got it, if you don't mind asking, what version of gluster you are running what is base OS ? I've tried to setup gluster 8.2 on centos 8 without any luck. Thank you.

Glusterfs 7.5,ubuntu18.04

httaotao avatar Nov 25 '20 07:11 httaotao