[Gluster-users] geo-rep will not initialize
Karl Kleinpaste
karl at kleinpaste.org
Fri Aug 23 11:58:43 UTC 2024
On 8/22/24 21:54, Gilberto Ferreira wrote:
> Perhaps you can use this tools:
> https://aravindavk.in/blog/gluster-georep-tools/
> I am using it with great success.
I'll try anything once. In fact, I tried twice. It can't set up.
First, the code has port 22 baked in. I mentioned earlier that my sshd
listens on a nonstandard port.
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.
Oddly shortsighted, or maybe I'm missing something.
So second, I tweaked the code to use my nonstandard port as its default,
replacing all "22" with mine, and tried again...nope.
Geo-replication session will be established between j and geoacct at pms::n
root at pms password is required to complete the setup. NOTE: Password will
not be stored.
root at pms's password:
[ OK] pms is Reachable(Port 6247)
Traceback (most recent call last):
File "/usr/local/bin/gluster-georep-setup", line 8, in <module>
sys.exit(main())
^^^^^^
File
"/usr/local/lib/python3.12/site-packages/gluster_georep_tools/setup/cli.py",
line 524, in main
setup_georep()
File
"/usr/local/lib/python3.12/site-packages/gluster_georep_tools/setup/cli.py",
line 461, in setup_georep
ssh = ssh_initialize(secondary_host, args.secondary_user, passwd)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/usr/local/lib/python3.12/site-packages/gluster_georep_tools/setup/cli.py",
line 212, in ssh_initialize
ssh.connect(secondary_host, username=username, password=passwd)
File "/usr/lib/python3.12/site-packages/paramiko/client.py", line
409, in connect
raise NoValidConnectionsError(errors)
paramiko.ssh_exception.NoValidConnectionsError: [Errno None] Unable to
connect to port 22 on 172.17.4.3
It seems that paramiko is either still using 22 under the hood somewhere
(cf. last line error), 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.
I'm open to other suggestions.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20240823/0f431a78/attachment.html>
More information about the Gluster-users
mailing list