aboutsummaryrefslogtreecommitdiff
path: root/src/garage/cli
Commit message (Collapse)AuthorAgeFilesLines
...
| * Split format_table into separate crate and reduce k2v-client dependenciesformat_table-v0.1.0Alex Auvolat2023-05-173-3/+3
| |
* | garage key import: add checks and `--yes` CLI flag (fix #278)Alex Auvolat2023-06-131-0/+4
| |
* | fix mpu counter (add missing workers) and report info at appropriate placesAlex Auvolat2023-06-093-15/+25
| |
* | Add multipart upload repairAlex Auvolat2023-06-091-0/+3
| |
* | updaet block admin for new multipartupload modelsAlex Auvolat2023-06-092-12/+34
| |
* | Merge branch 'main' into nextAlex Auvolat2023-04-254-20/+48
|\|
| * fix cli display bugk2v-watch-range-2Alex Auvolat2023-01-261-1/+1
| |
| * more fixesAlex Auvolat2023-01-262-3/+3
| |
| * Disk space reportAlex Auvolat2023-01-262-2/+18
| | | | | | | | Report available disk space on nodes and calculate cluster-wide available space in `garage stats` (fix #479)
| * bg var operation on all nodes at onceworker-getAlex Auvolat2023-01-042-4/+18
| |
| * Uniform framework for bg variable managementAlex Auvolat2023-01-043-17/+15
| |
* | Changed all instances of assignation to assignment.Jonathan Davies2023-01-052-3/+3
| |
* | Merge pull request 'Changed all instances of 'key new' to 'key create' to ↵Alex2023-01-041-3/+3
|\ \ | | | | | | | | | | | | | | | make it the same as the bucket commands.' (#459) from jpds/garage:key-create-standardize into next Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/459
| * | Changed all instances of 'key new' to 'key create' to make it consistent as ↵Jonathan Davies2023-01-031-3/+3
| |/ | | | | | | bucket commands issued normally around the same time.
* | Merge branch 'main' into nextAlex Auvolat2023-01-043-34/+200
|\|
| * Implement `block retry-now` and `block purge`Alex Auvolat2022-12-132-1/+2
| |
| * Implement `block list-errors` and `block info`Alex Auvolat2022-12-133-9/+108
| |
| * cli: new worker info commandAlex Auvolat2022-12-133-4/+65
| |
| * cli: rename resync-n-workers into resync-worker-countAlex Auvolat2022-12-131-2/+2
| |
| * Prettier worker list table; remove useless CLI log messagesAlex Auvolat2022-12-121-25/+30
| |
* | Slightly simplify code at placesAlex Auvolat2022-11-081-7/+4
| |
* | Return more info when layout's .check() fails, fix compilation, fix testAlex Auvolat2022-11-081-11/+21
| |
* | Use bytes as capacity unitsAlex Auvolat2022-11-072-6/+16
| |
* | Style improvementsAlex Auvolat2022-11-072-11/+11
| |
* | Merge branch 'main' into optimal-layoutAlex Auvolat2022-11-071-0/+15
|\|
| * Add garage bucket cleanup-incomplete-uploads commandcleanup-uploads-commandAlex Auvolat2022-11-041-0/+15
| |
* | Improved the statistics displayed in layout showMendes2022-10-111-24/+45
| | | | | | | | corrected a few bugs
* | cargo fmtMendes2022-10-102-46/+55
| |
* | Tests written in layout.rsMendes2022-10-101-2/+2
| | | | | | | | | | added staged_parameters to ClusterLayout removed the serde(default) -> will need a migration function
* | Corrected two bugs:Mendes2022-10-061-1/+5
| | | | | | | | | | - self.node_id_vec was not properly updated when the previous ring was empty - ClusterLayout::merge was not considering changes in the layout parameters
* | Added a CLI command to update the parameters for the layout computation (for ↵Mendes2022-10-052-3/+46
| | | | | | | | now, only the zone redundancy)
* | modifications in several files to :Mendes2022-10-051-14/+21
|/ | | | | | - have consistent error return types - store the zone redundancy in a Lww - print the error and message in the CLI (TODO: for the server Api, should msg be returned in the body response?)
* Merge branch 'lx-perf-improvements' into netapp-stream-bodyAlex Auvolat2022-09-081-56/+56
|\
| * Move version back into utilimprove-depsAlex Auvolat2022-09-071-1/+1
| |
| * Fix mergeAlex Auvolat2022-09-071-4/+4
| |
| * Merge branch 'main' into improve-depsAlex Auvolat2022-09-071-0/+19
| |\
| * | Move GIT_VERSION injection later in build chain to reduce build timesAlex Auvolat2022-09-071-52/+52
| | |
* | | Merge branch 'lx-perf-improvements' into netapp-stream-bodyAlex Auvolat2022-09-061-0/+19
|\ \ \ | | |/ | |/|
| * | Ability to have up to 4 concurrently working resync workersAlex Auvolat2022-09-021-1/+4
| | |
| * | Ability to dynamically set resync tranquilityAlex Auvolat2022-09-021-0/+16
| |/
* | Merge branch 'lx-perf-improvements' into netapp-stream-bodyAlex Auvolat2022-08-291-50/+51
|\|
| * Configure structopt to report the right versionv0.7.2_ci-test-2bug/reported-versionQuentin Dufour2022-08-111-50/+51
| | | | | | | | | | | | | | | | | | | | By default, structopt reports the value provided by the env var CARGO_PKG_VERSION, feeded by Cargo when reading Cargo.toml. However for Garage we use a versioning based on git, so we often report a version that is behind the real version. In this commit, we create garage_util::version::garage() that reports the right version and configure all structopt subcommands to call this function instead of using the env var.
* | First adaptation to WIP netapp with streaming bodyAlex Auvolat2022-07-292-6/+6
|/
* Background task manager (#332)Alex2022-07-083-3/+118
| | | | | | | | | | | | | | | | | | | | | - [x] New background worker trait - [x] Adapt all current workers to use new API - [x] Command to list currently running workers, and whether they are active, idle, or dead - [x] Error reporting - Optimizations - [x] Merkle updater: several items per iteration - [ ] Use `tokio::task::spawn_blocking` where appropriate so that CPU-intensive tasks don't block other things going on - scrub: - [x] have only one worker with a channel to start/pause/cancel - [x] automatic scrub - [x] ability to view and change tranquility from CLI - [x] persistence of a few info - [ ] Testing Co-authored-by: Alex Auvolat <alex@adnab.me> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/332 Co-authored-by: Alex <alex@adnab.me> Co-committed-by: Alex <alex@adnab.me>
* improve internal item counter mechanisms and implement bucket quotas (#326)Alex2022-06-153-6/+96
| | | | | | | | | | | | | | | | - [x] Refactoring of internal counting API - [x] Repair procedure for counters (it's an offline procedure!!!) - [x] New counter for objects in buckets - [x] Add quotas to buckets struct - [x] Add CLI to manage bucket quotas - [x] Add admin API to manage bucket quotas - [x] Apply quotas by adding checks on put operations - [x] Proof-read Co-authored-by: Alex Auvolat <alex@adnab.me> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/326 Co-authored-by: Alex <alex@adnab.me> Co-committed-by: Alex <alex@adnab.me>
* First version of admin API (#298)Alex2022-05-241-43/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | **Spec:** - [x] Start writing - [x] Specify all layout endpoints - [x] Specify all endpoints for operations on keys - [x] Specify all endpoints for operations on key/bucket permissions - [x] Specify all endpoints for operations on buckets - [x] Specify all endpoints for operations on bucket aliases View rendered spec at <https://git.deuxfleurs.fr/Deuxfleurs/garage/src/branch/admin-api/doc/drafts/admin-api.md> **Code:** - [x] Refactor code for admin api to use common api code that was created for K2V **General endpoints:** - [x] Metrics - [x] GetClusterStatus - [x] ConnectClusterNodes - [x] GetClusterLayout - [x] UpdateClusterLayout - [x] ApplyClusterLayout - [x] RevertClusterLayout **Key-related endpoints:** - [x] ListKeys - [x] CreateKey - [x] ImportKey - [x] GetKeyInfo - [x] UpdateKey - [x] DeleteKey **Bucket-related endpoints:** - [x] ListBuckets - [x] CreateBucket - [x] GetBucketInfo - [x] DeleteBucket - [x] PutBucketWebsite - [x] DeleteBucketWebsite **Operations on key/bucket permissions:** - [x] BucketAllowKey - [x] BucketDenyKey **Operations on bucket aliases:** - [x] GlobalAliasBucket - [x] GlobalUnaliasBucket - [x] LocalAliasBucket - [x] LocalUnaliasBucket **And also:** - [x] Separate error type for the admin API (this PR includes a quite big refactoring of error handling) - [x] Add management of website access - [ ] Check that nothing is missing wrt what can be done using the CLI - [ ] Improve formatting of the spec - [x] Make sure everyone is cool with the API design Fix #231 Fix #295 Co-authored-by: Alex Auvolat <alex@adnab.me> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/298 Co-authored-by: Alex <alex@adnab.me> Co-committed-by: Alex <alex@adnab.me>
* Add a K2V client library and CLI (#303)trinity-1686a2022-05-183-29/+3
| | | | | | | | | lib.rs could use getting split in modules, but I'm not sure how exactly Co-authored-by: trinity-1686a <trinity@deuxfleurs.fr> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/303 Co-authored-by: trinity-1686a <trinity.pointard@gmail.com> Co-committed-by: trinity-1686a <trinity.pointard@gmail.com>
* First implementation of K2V (#293)Alex2022-05-101-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | **Specification:** View spec at [this URL](https://git.deuxfleurs.fr/Deuxfleurs/garage/src/branch/k2v/doc/drafts/k2v-spec.md) - [x] Specify the structure of K2V triples - [x] Specify the DVVS format used for causality detection - [x] Specify the K2V index (just a counter of number of values per partition key) - [x] Specify single-item endpoints: ReadItem, InsertItem, DeleteItem - [x] Specify index endpoint: ReadIndex - [x] Specify multi-item endpoints: InsertBatch, ReadBatch, DeleteBatch - [x] Move to JSON objects instead of tuples - [x] Specify endpoints for polling for updates on single values (PollItem) **Implementation:** - [x] Table for K2V items, causal contexts - [x] Indexing mechanism and table for K2V index - [x] Make API handlers a bit more generic - [x] K2V API endpoint - [x] K2V API router - [x] ReadItem - [x] InsertItem - [x] DeleteItem - [x] PollItem - [x] ReadIndex - [x] InsertBatch - [x] ReadBatch - [x] DeleteBatch **Testing:** - [x] Just a simple Python script that does some requests to check visually that things are going right (does not contain parsing of results or assertions on returned values) - [x] Actual tests: - [x] Adapt testing framework - [x] Simple test with InsertItem + ReadItem - [x] Test with several Insert/Read/DeleteItem + ReadIndex - [x] Test all combinations of return formats for ReadItem - [x] Test with ReadBatch, InsertBatch, DeleteBatch - [x] Test with PollItem - [x] Test error codes - [ ] Fix most broken stuff - [x] test PollItem broken randomly - [x] when invalid causality tokens are given, errors should be 4xx not 5xx **Improvements:** - [x] Descending range queries - [x] Specify - [x] Implement - [x] Add test - [x] Batch updates to index counter - [x] Put K2V behind `k2v` feature flag Co-authored-by: Alex Auvolat <alex@adnab.me> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/293 Co-authored-by: Alex <alex@adnab.me> Co-committed-by: Alex <alex@adnab.me>
* Fix `layout show` to not show changes when there are no changes (#297)Alex2022-05-092-5/+22
| | | | | | | | | fixes #295, partially Co-authored-by: Alex Auvolat <alex@adnab.me> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/297 Co-authored-by: Alex <alex@adnab.me> Co-committed-by: Alex <alex@adnab.me>
* Allow `garage layout assign` to assign to several nodes at onceAlex Auvolat2022-03-242-46/+56
|