<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 8/22/24 21:54, Gilberto Ferreira
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAOKSTBuUeW=CuD7_HeA186+RC+sVtRJE7=g4t02wOB5WX7y=Eg@mail.gmail.com">
<div>Perhaps you can use this tools:<br>
<a href="https://aravindavk.in/blog/gluster-georep-tools/"
moz-do-not-send="true" class="moz-txt-link-freetext">https://aravindavk.in/blog/gluster-georep-tools/</a><br>
</div>
<div>I am using it with great success.</div>
</blockquote>
<br>
<font face="FreeSerif">I'll try anything once. In fact, I tried
twice. It can't set up.<br>
<br>
First, the code has port 22 baked in. I mentioned earlier that my
sshd listens on a nonstandard port.<br>
Looking at the code (gluster_georep_tools/setup/cli.py,
glustercli/cli/georep.py), there is provision within functions for
a different port, but there is no way that I see to use that in
command line args.<br>
Oddly shortsighted, or maybe I'm missing something.<br>
<br>
So second, I tweaked the code to use my nonstandard port as its
default, replacing all "22" with mine, and tried again...nope.</font><br>
<br>
<font face="monospace">Geo-replication session will be established
between j and geoacct@pms::n<br>
root@pms password is required to complete the setup. NOTE:
Password will not be stored.<br>
root@pms's password: <br>
[ OK] pms is Reachable(Port </font><font face="monospace">6247</font><font
face="monospace">)<br>
Traceback (most recent call last):<br>
File "/usr/local/bin/gluster-georep-setup", line 8, in
<module><br>
sys.exit(main())<br>
^^^^^^<br>
File
"/usr/local/lib/python3.12/site-packages/gluster_georep_tools/setup/cli.py",
line 524, in main<br>
setup_georep()<br>
File
"/usr/local/lib/python3.12/site-packages/gluster_georep_tools/setup/cli.py",
line 461, in setup_georep<br>
ssh = ssh_initialize(secondary_host, args.secondary_user,
passwd)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File
"/usr/local/lib/python3.12/site-packages/gluster_georep_tools/setup/cli.py",
line 212, in ssh_initialize<br>
ssh.connect(secondary_host, username=username,
password=passwd)<br>
File "/usr/lib/python3.12/site-packages/paramiko/client.py",
line 409, in connect<br>
raise NoValidConnectionsError(errors)<br>
paramiko.ssh_exception.NoValidConnectionsError: [Errno None]
Unable to connect to port 22 on 172.17.4.3</font><br>
<br>
<font face="FreeSerif">It seems that paramiko is either still using
22 under the hood somewhere (</font><font face="FreeSerif">cf.
last line error)</font><font face="FreeSerif">, or 22 is misinfo
but it's insisting on connection using a password, but my
(otherwise pretty standard) sshd configuration requires keys-only
root login, no password, which is already in place among all these
machines.<br>
<br>
I'm open to other suggestions.</font><br>
</body>
</html>