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

157 Commits

Author SHA1 Message Date
Mohammed Rafi KC
e22c0e07dc snapshot:clone Implement snapshot clone
This PR includes functional changes, client api changes,
Test cases.

Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
2018-07-13 13:06:10 +05:30
Mohammed Rafi KC
f0381c6329 snapshot:restore implement snapshot restore
This include functionality changes, test cases, cli
and other improvements.

Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
2018-07-13 13:06:10 +05:30
Mohammed Rafi KC
e85bb81ad5 snapshot/status: implement snapshot status
This PR includes test functionality change, cli and test cases

Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
2018-07-13 13:06:10 +05:30
Mohammed Rafi KC
a55da3f232 snapshot/list: Change snapshot list to param based rest url
snapshot list will now take volume as the key in url to list all
snapshots of a volume

Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
2018-07-13 13:06:10 +05:30
Mohammed Rafi KC
4a8a31b022 snapshot:implement delete command
Patchset include -->
*Functional changes for snapshot delete
*cli implemetation for snapshot delete
*Test case for snapshot delete

Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
2018-07-13 13:06:10 +05:30
vpandey-RH
94b631c2f7 Index/Full Heal API and CLI 2018-07-12 21:12:15 +05:30
Madhu Rajanna
1a7a364d42 Extract master volume ID and remote volume ID from GeorepStatus API
currently, we are  making separate calls to fetch
remote volume ID and master volume ID,

call GeorepStatus API to get the list of geo-replication
sessions and fetch master volume ID and remote volume
ID from the response

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-07-12 11:53:43 +05:30
vpandey-RH
5e17004eec Volume reset CLI command and support for resetting all options
at once.

Signed-off-by: Vishal Pandey <vpandey@redhat.com>
2018-07-10 16:20:52 +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
8b192c7804 Filter Volume options based on CLI flags
Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-07-09 16:53:04 +05:30
Madhu Rajanna
859ad70fbd updated endpoints.md
Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-07-04 12:51:19 +05:30
Samikshan Bairagya
a85e35e8dc Make more changes to volume get support
1. Merge handlers for volume get on single option and all options.
2. Add e2e test cases for volume get support

Signed-off-by: Samikshan Bairagya <samikshan@gmail.com>
2018-07-04 12:51:19 +05:30
Samikshan Bairagya
a2996ffce2 Add support to get volume options via CLI.
Usage:
      glustercli volume get <volname> <optname|all>

If all is used instead of optname, all volume options are listed.

Signed-off-by: Samikshan Bairagya <samikshan@gmail.com>
2018-07-04 12:51:19 +05:30
Prashanth Pai
d872f193de cli: Add support for backward compatible volume create command
The following backward-compatible command is (again) supported:

    $ glustercli volume create <volname> <bricks...>

This is a minimal change to restore old behaviour and does not revert
the commit 31f829. The use of new command is what that should be
encouraged and documented.

   $ glustercli volume create --name <volname> <bricks...>

Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-07-03 10:57:10 +05:30
Prashanth Pai
74288b7440 cli: Add additional fields to volume list command output
Add type, state, transport and number of bricks as fields to table
shown in output of `glustercli volume list` command.

Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-07-02 08:57:50 +05:30
Aravinda VK
31f8290f7b Auto generate Volume Name if not specified in Request
Updates: #851
Signed-off-by: Aravinda VK <avishwan@redhat.com>
2018-06-25 16:25:25 +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
8aad2d0728 when glusterd2 starts,glusterd2 PID will be
added as a value under  alive/peerid key
and this is published as a liveness to the store.

peer list and peer status will contains
PID in HTTP response.

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-06-22 10:22:46 +05:30
Madhu Rajanna
e010dd6fdb format error strings: error strings should not
be capitalized,make first letter as lower case

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-06-20 16:21:29 +05:30
Madhu Rajanna
7a5da47044 added volume size command to glustercli
Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-06-13 17:29:31 +05:30
Prashanth Pai
6da17b753b Merge branch 'master' into Add-files-gfid-in-heal-info 2018-06-11 14:56:42 +05:30
root
3bb831e229 Add missing files gfid field in self heal info API as well as cli.
Signed-off-by: Vishal Pandey <vpandey@redhat.com>
2018-06-11 13:51:05 +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
Prashanth Pai
819e323ff8 Merge branch 'master' into issue_836 2018-06-01 17:50:59 +05:30
Madhu Rajanna
45b80ca0ee display client addresses in glustercli
peer add and peer list response

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-06-01 12:45:35 +05:30
Madhu Rajanna
838eb278f2 allow only PeerID as input for
peer removal in glustercli

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-06-01 12:37:30 +05:30
Aravinda VK
45d8d420b4 Intelligent Volume Provisioning
Updates: #466
Signed-off-by: Aravinda VK <avishwan@redhat.com>
2018-05-31 19:42:40 +05:30
Madhu Rajanna
203428fbea updated printing brick counter logic for
displaying volume info

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-05-30 15:47:31 +05:30
root
3af0c8dbda Modify isActionStepRequired and heal info resp
Signed-off-by: Vishal Pandey <vpandey@redhat.com>
2018-05-29 22:42:36 +05:30
root
cca49d2fa6 Implement SHD enable/disable and add selfheal-info
Signed-off-by: root <root@dhcp41-154.lab.eng.blr.redhat.com>
2018-05-29 21:20:40 +05:30
Kaushal M
2a3599bd27 Merge branch 'master' into snapshot1 2018-05-29 17:37:42 +05:30
Madhu Rajanna
6bc5318b4b added missed experimental and deprecated flags
Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-05-29 16:08:07 +05:30
Madhu Rajanna
501556e005 Display peer addresses in new line
When there are multiple peer addresses,
display each one in a separate line.

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-05-29 13:56:51 +05:30
Madhu Rajanna
f76d86cc2b add volume create to glustercli
Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-05-29 12:09:01 +05:30
Madhu Rajanna
203f5ea5e9 added functionality to expose flags in
volume create and volume expand

added additional flag to create brick dir if its not exists

exposed flags for volume create and expand
in glustercli

added e2e test cases for flags in
volume create and volume expand

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-05-29 10:17:18 +05:30
rishubhjain
38693af6e0 Formating go code 2018-05-25 12:20:03 -04:00
Prashanth Pai
e2469feec2 Merge branch 'master' into filtering-peers-on-metadata 2018-05-25 21:21:09 +05:30
root
d6f862bdd5 Filter peers on basis of metadata either by metadata key/value/key+value
Signed-off-by: Vishal Pandey <vpandey@redhat.com>
2018-05-25 17:15:36 +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
649e4d7f0e cli: Added CLI for Device Add
Also fixed issues during device add(Json Marshal error and store error
for first time)

Updates: #728
Signed-off-by: Aravinda VK <avishwan@redhat.com>
2018-05-23 19:45:50 +05:30
Prashanth Pai
7d952bb629 Merge branch 'master' into issue_710 2018-05-23 10:26:16 +05:30
Madhu Rajanna
55ed87fc53 added requestbody for volume start api
Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-05-22 15:18:51 +05:30
Aravinda VK
093806fca9 bitrot: set advanced flag to bitrot volume options
Fixes: #767 and #766
Signed-off-by: Aravinda VK <avishwan@redhat.com>
2018-05-18 15:10:46 +05:30
Mohammed Rafi KC
15e37acfdd snapshot: Address review comments
Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
2018-05-17 23:34:01 +05:30
Kaushal M
107407e00a Merge branch 'master' into issue_710 2018-05-17 21:00:59 +05:30
Prashanth Pai
71cf1a8a2c Merge branch 'master' into filter-volumes-by-metadata 2018-05-17 16:02:36 +05:30
Mohammed Rafi KC
0004180f2d snapshot/cli: cli code for snapshots
Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
2018-05-16 16:17:26 +05:30
root
b5121e5307 filter volume list/info on basis of metadata keys and values 2018-05-16 05:46:13 -04:00
Madhu Rajanna
2eabbe85d7 added flag to set options during
volume creation

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-05-16 12:11:37 +05:30