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

20 Commits

Author SHA1 Message Date
Sridhar Seshasayee
6158f4a040 Tracing: Implement glustercli command to enable tracing
Implement glustercli command to enable tracing. The rest client performs
basic checks of the tracing options prior to sending the request.

closes #1368

Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
2019-02-12 08:08:00 +05:30
Aravinda VK
66a9b6e308 geo-rep: Fixes for remote authentication and gsyncd path
- gsyncd path defaulted to /usr/libexec/glusterfs/gsyncd
- Fixes remote REST API auth issues
- Workaround to make it work with marker xlator

Signed-off-by: Aravinda VK <avishwan@redhat.com>
2018-11-29 11:40:33 +05:30
Aravinda VK
b974fd12b7 Environment variable support for glustercli endpoints
Endpoints are taken in following order of precedence
(highest to lowest):

- --endpoints
- GD2_ENDPOINTS (environment variable)
- (default value)

Fixes: #1291
Signed-off-by: Aravinda VK <avishwan@redhat.com>
2018-10-24 16:16:27 +05:30
Oshank Kumar
353e236304 cli: warning prompt yes/no before volume deletion
closes: #1163

Signed-off-by: Oshank Kumar <okumar@redhat.com>
2018-08-20 15:07:46 +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
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
Prashanth Pai
c8382f0c83 cli: Add support for reading secret from ENV
With this change, secret is taken by CLI in following order of
precedence (highest to lowest):
--secret
--secret-file
GLUSTERD2_AUTH_SECRET (environment variable)
--secret-file (default path)

The command-line flag '--authfile' has been renamed to '--secret-file'
to be consistent with the flag `--secret`.

Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-07-17 12:03:13 +05:30
Madhu Rajanna
0190411220 Enable Rest Authentication by default
if a restauth key is missing in config
file or if restauth is set to true,
glusterd2 will do token authentication.

Authentication can be disabled by
by setting restauth key in the configuration
to false.

updated test cases to use authentication
if auth file is present

added default rest authentication in glustercli

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-07-10 13:52:48 +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
Rishubh Jain
426065d271 Update root.go
Typo
2018-06-11 12:27:50 +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
Madhu Rajanna
c22ebe363f glustercli fixed review comments
Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-04-25 18:02:01 +05:30
Madhu Rajanna
faa96dc761 add verbose flag to cli to
print error message to stdout

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-04-25 17:15:37 +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
Aravinda VK
09d8905890 bash_completion: Changed Command name from gluster to glustercli
After `make install`, run `source /etc/bash_completion.d/glustercli.sh`

Signed-off-by: Aravinda VK <avishwan@redhat.com>
2018-01-10 17:23:34 +05:30
Prashanth Pai
c6dcfe1869 Add file name, function name and line number to log entries
Signed-off-by: Prashanth Pai <ppai@redhat.com>
2017-12-01 14:39:30 +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
0b9cbd782e Common flags and help for logging 2017-11-17 12:15:49 +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