Commit Graph

429 Commits

Author SHA1 Message Date
Mofei Zhang
bcea9abe4a
Fix: build script issue
Fix the issue of obtaining the latest tag of the current branch during
build.

Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-07-20 11:16:16 +08:00
xiuquan
52fde06c76 add zonename flag to cli tool
Signed-off-by: xiuquan <xiuquan@meizu.com>
2020-07-17 18:20:36 +08:00
awzhgw
e697d0ac68
Merge pull request #764 from ssscottt/capacity
add expand/shrink capacity interfaces; introduce log to cli tool
2020-07-17 10:48:42 +08:00
xuxihao1
f3cfd46577 enhancement: introduce log to cli tool and format error message
Signed-off-by: xuxihao1 <xuxihao3@jd.com>
2020-07-16 20:10:51 +08:00
Mofei Zhang
c458dd6409
Enhancement: unified version information
When using the build script to compile the program, it automatically
uses the latest git tag as the program version number information.

Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-07-16 18:34:15 +08:00
xuxihao1
6937cc7338 enhancement: add extra interface to expand/shrink capacity of volume
Signed-off-by: xuxihao1 <xuxihao3@jd.com>
2020-07-16 18:05:27 +08:00
xuxihao
85e4f0802a Fix: Remove timeout limits on decommission operations in master client sdk.
Signed-off-by: xuxihao <xuxihao3@jd.com>
2020-06-30 10:13:34 +08:00
xuxihao
a56f5c5dce documentation: Add CLI documentation
Signed-off-by: xuxihao <xuxihao3@jd.com>
2020-06-28 19:50:19 +08:00
xuxihao
7343e33427 enhancement: Add several api such as decommission, freeze cluster and set threshold, add/delete partition replica to CLI tool
Signed-off-by: xuxihao <xuxihao3@jd.com>
2020-06-28 18:31:39 +08:00
zhuhyc
55e667b147 feature: provide data consistency verification tool for meta partition
Signed-off-by: zhuhyc <zzhniy.163.niy@163.com>
2020-06-22 15:25:23 +08:00
xuxihao
c97cf6443c Fix: Display inode count and dentry count in admin/getVol and metaPartition/get interfaces and CLI
Signed-off-by: xuxihao <xuxihao3@jd.com>
2020-06-18 10:36:41 +08:00
xuxihao
10c957b810 Fix: the maxInodeID of a metapartition is not sync to others when recovered from snapshot; docker build failing when running build_docker.sh; spelling mistakes in cli
Refactor: upgrade base image from `cfs-base:1.0` to `cfs-base:1.1` in dockerfile

Signed-off-by: xuxihao <xuxihao3@jd.com>
2020-05-20 18:20:03 +08:00
xuxihao
a8b4075791 enhancement of cli: implement several interfaces; support bash completion; set config file by interactive command line
Signed-off-by: xuxihao <xuxihao3@jd.com>
2020-05-12 22:58:08 +08:00
Mofei Zhang
aeafa437d1
Refactor: create volume and create data partition
When creating a volume, it returns to success when both the meta
partition and data partition are successfully created.
When adding a data partition to the volume, the data partition is
successfully created and then returns to success.

Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-05-06 12:35:14 +08:00
Mofei Zhang
397edb4370
Enhancement: auto create user while create volume
Auto create user while create volume if the owner user is not exists.
Add a option for force transfer volume to target user.

Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-03-26 16:06:29 +08:00
wenjia322
3d8d30c48f fix: add permission to existed user when create volume
Signed-off-by: wenjia322 <buaa1214wwj@126.com>
2020-03-24 14:35:34 +08:00
wenjia322
14cea7a688 Enhancement: add cli api 'deleteUser'; remove create user automatically; ignore userSrc exists or not when transfer volume
Signed-off-by: wenjia322 <buaa1214wwj@126.com>
2020-03-24 14:35:34 +08:00
wenjia322
4d2a20e5f9 feature: add master and cli api 'updateUser'
Signed-off-by: wenjia322 <buaa1214wwj@126.com>
2020-03-24 14:35:34 +08:00
Mofei Zhang
8b3d6aa3c5
Enhancement: multiple enhancements and fixes
Enhancement: validate user policy when mount volume.
Enhancement: when an object node loads a volume, different volumes do not block each other.
Enhancement: when checking policies, check user permissions before checking volume policies to reduce the overhead of loading volumes.
Enhancement: release connection pool when releasing meta wrapper resources.
Enhancement: the object node automatically releases the deleted volume.
Fix: response when deleting non-existing files using Object Storage
Interface.
Fix: url parameter parsing issue of signature algorithm V2.

Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-03-22 21:02:28 +08:00
Mofei Zhang
ddfd8b7c3f
Enhancement: improve error parsing for master APIs
Enhancement: improve error parsing for master APIs.
Fix: status code of DelteBucket ans DeleteObjects API.
Fix: url signature parsing of signature algorithm V2.
Add: s3tests framework for compatibility test.

Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-03-22 08:31:51 +08:00
Mofei Zhang
76bc8667af
Refactor: using cli instead of curl in CI scripts
Refactor: using cli instead of curl in CI scripts
Add: CLI command for CLI for adding more data partition to volume
Enhancement: optimize CLI output format

Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-03-21 16:32:32 +08:00
Mofei Zhang
d7a2fb708e
Add: owner transfer commond to CLI tool.
Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-03-20 17:52:00 +08:00
wenjia322
8540a38fd0 refactor: user sdk api 'addPolicy'/'deletePolicy'/'transferVol'
Signed-off-by: wenjia322 <buaa1214wwj@126.com>
2020-03-20 00:03:31 +08:00
wenjia322
745728a306 refactor: change index of 'UserInfo' from 'ak' to 'userID'
Signed-off-by: wenjia322 <buaa1214wwj@126.com>
2020-03-20 00:03:31 +08:00
Mofei Zhang
b49d89c490
Add: list user with filter command for CLI
Add: list user with filter command for CLI
Enhancement: performance of ListBuckets API
Fix: action identify issue

Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-03-17 10:26:41 +08:00
Mofei Zhang
5b6598fab7
Refactor: command line interface
Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-03-17 02:00:53 +08:00
Mofei Zhang
11d0a4ddf0
Refactor: reorganize permission and actions
Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-03-17 00:11:01 +08:00
Mofei Zhang
69f9018293
Add: CLI tool to improve cluster management
Signed-off-by: Mofei Zhang <mofei2816@gmail.com>
2020-03-15 17:30:23 +08:00
Mervin
a75fe4d85e
Add: init package and build script for cli tool
Signed-off-by: Mervin <mofei2816@gmail.com>
2020-03-11 13:11:26 +08:00