1
0
mirror of https://github.com/gluster/glusterd2.git synced 2026-02-05 12:45:38 +01:00

12 Commits

Author SHA1 Message Date
Oshank Kumar
38d20ee280 restclient: refactor some of the rest client code .
added separate method to create http.Request.
Initializing underlying http.Client while initializing
GlusterD rest client

Signed-off-by: Oshank Kumar <okumar@redhat.com>
2018-08-14 18:28:18 +05:30
Oshank Kumar
02e35a95e0 cli: Refactor some of glustercli code
Signed-off-by: Oshank Kumar <okumar@redhat.com>
2018-08-08 12:38:17 +05:30
Oshank Kumar
85692c7411 Valiate Last Error Response in failure function of GlusterCli
If last Error Response is nil, then calling failure function will cause
segmentation fault error
Fixes #1115

Signed-off-by: Oshank Kumar <okumar@redhat.com>
2018-08-03 09:33:23 +05:30
Prashanth Pai
6088f16d2b CLI: Print request and other IDs in error output
Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-07-30 09:13:19 +05:30
Prashanth Pai
8d5b37d85a cli/restclient: Make client timeout configurable
The client timeout is now configurable at the restclient layer and also
in the CLI. The client timeout defaults to 30 seconds in both restclient
and CLI.

Timeout can be configured in:
  * restclient using SetTimeout() API.
  * CLI using --timeout command line flag.

This client timeout is the overall timeout which includes the time taken
from setting up TCP connection till client finishes reading the response
body from glusterd2.

Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-07-19 12:10:27 +05:30
Madhu Rajanna
0e014fae05 added endpoints flag to glustercli
to connect to glusterd2

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-06-22 16:54:03 +05:30
Madhu Rajanna
c9d0e4a7e1 added support for JWT token authentication
in glustercli

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-06-08 10:16:58 +05:30
Aravinda VK
75505b562a cli: Added support for Disperse Volume
and fixed issue with pure distribute volume

Signed-off-by: Aravinda VK <avishwan@redhat.com>
2018-05-25 13:09:47 +05:30
Aravinda VK
d574774a70 cli: CLI log and messages improvements
Need some work on handling different error codes and add detailed
messages to users. With this patch, GlusterCLI handles Glusterd down
or not reachable error.

Signed-off-by: Aravinda VK <avishwan@redhat.com>
2018-02-14 11:19:35 +05:30
Prashanth Pai
d7fd95a574 Remove dead code in CLI
Signed-off-by: Prashanth Pai <ppai@redhat.com>
2017-11-23 23:46:05 +05:30
Kaushal M
077511aadc Merge remote-tracking branch 'origin/master' into refactor-pkgs 2017-11-17 11:52:51 +05:30
Kaushal M
d30e587841 Move bin/glustercli to top-level glustercli package 2017-11-14 18:18:13 +05:30