Open sac opened 6 years ago
@sac, Client should be created as below
client=Client("http://127.0.0.1:24007")
we need to update documentation. and add validation of endpoint in common.py
@Madhu-1 even with that I see:
>>> from glusterapi import Client
>>> client = Client("http://10.70.41.250:24007")
>>> client.peer_add("10.70.43.250")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "glusterapi/peer.py", line 28, in peer_add
json.dumps(req))
File "glusterapi/common.py", line 90, in _handle_request
raise GlusterApiError()
glusterapi.exceptions.GlusterApiError
>>>
@sac host should be of the form ip:port client.peer_add("10.70.43.250:24007")
@Madhu-1 client.peer_add("10.70.43.250) worked, the failure was because one of the nodes was running a different version of glusterd. Thanks for your help.
@sac @Madhu-1 should we keep the issue open? I think we can add the ip validations before executing, to avoid similar issues?
@devyanikota we need to validate endpoint while creating Client.
Unable to add peers to the cluster. When I follow the documenation, I see the below traceback: