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>
- 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>
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>
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>
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>
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>
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>