Admin API refactoring: convert existing commands to API requests (step 3) #945

Merged
lx merged 12 commits from refactor-admin into next-v2 2025-02-05 19:54:42 +00:00
Owner

for step3:

  • Convert any functionnality that was only in the CLI into now-standardized admin API calls
    • admin rpc
      • CleanupIncompleteUploads
      • Get/SetWorkerVariable
      • ListWorkers
      • GetWorkerInfo
      • LaunchRepairOperation
      • GetNodeStats
      • GetClusterStats
      • CreateMetadataSnapshot
      • ListBlockErrors
      • GetBlockInfo
      • RetryBlockResync
      • PurgeBlocks
    • standard rpc
      • GetClusterLayoutHistory
      • PreviewClusterLayoutChanges
      • ForceClusterLayoutSkipDeadNodes
  • Update documentation and OpenAPI specification again

for step4: (in nlnet task5)

  • Make the CLI able to call the admin API through HTTP as well
for step3: - [ ] Convert any functionnality that was only in the CLI into now-standardized admin API calls - admin rpc - [x] CleanupIncompleteUploads - [x] Get/SetWorkerVariable - [x] ListWorkers - [x] GetWorkerInfo - [x] LaunchRepairOperation - [x] GetNodeStats - [x] GetClusterStats - [x] CreateMetadataSnapshot - [x] ListBlockErrors - [x] GetBlockInfo - [x] RetryBlockResync - [x] PurgeBlocks - standard rpc - [ ] GetClusterLayoutHistory - [ ] PreviewClusterLayoutChanges - [ ] ForceClusterLayoutSkipDeadNodes - [ ] Update documentation and OpenAPI specification again for step4: (in nlnet task5) - [ ] Make the CLI able to call the admin API through HTTP as well
lx added 2 commits 2025-01-30 16:51:26 +00:00
admin api: add CleanupIncompleteUploads spec
All checks were successful
ci/woodpecker/push/debug Pipeline was successful
ci/woodpecker/pr/debug Pipeline was successful
3018dfd663
lx added 3 commits 2025-01-30 18:38:26 +00:00
lx force-pushed refactor-admin from d0c94e8bdf to e3d1571247 2025-01-30 18:41:17 +00:00 Compare
lx added 1 commit 2025-01-30 19:01:44 +00:00
admin api: fix things
Some checks failed
ci/woodpecker/pr/debug Pipeline failed
ci/woodpecker/push/debug Pipeline failed
a5882c3875
lx force-pushed refactor-admin from a5882c3875 to bb36360c0b 2025-01-30 19:03:13 +00:00 Compare
lx added 1 commit 2025-01-30 19:31:05 +00:00
admin api: first local endpoint to work with new scheme
All checks were successful
ci/woodpecker/pr/debug Pipeline was successful
ci/woodpecker/push/debug Pipeline was successful
783c1e1c70
lx added 1 commit 2025-01-30 19:39:24 +00:00
admin api: implement SetWorkerVariable
All checks were successful
ci/woodpecker/pr/debug Pipeline was successful
ci/woodpecker/push/debug Pipeline was successful
cf30ae8b99
lx added 1 commit 2025-01-31 14:39:46 +00:00
cli_v2: implement ListWorkers and GetWorkerInfo
All checks were successful
ci/woodpecker/push/debug Pipeline was successful
ci/woodpecker/pr/debug Pipeline was successful
27012155ba
lx force-pushed refactor-admin from 27012155ba to e93e825224 2025-01-31 14:41:39 +00:00 Compare
lx added 1 commit 2025-01-31 14:53:12 +00:00
cli_v2: add local_api_request with crazy type bound
All checks were successful
ci/woodpecker/push/debug Pipeline was successful
ci/woodpecker/pr/debug Pipeline was successful
4f2af8cab9
lx added 1 commit 2025-01-31 15:53:55 +00:00
cli_v2: implement ListBlockErrors and GetBlockInfo
All checks were successful
ci/woodpecker/push/debug Pipeline was successful
ci/woodpecker/pr/debug Pipeline was successful
af648b4fae
lx added 1 commit 2025-01-31 16:19:37 +00:00
cli_v2: implement RetryBlockResync and PurgeBlocks
All checks were successful
ci/woodpecker/pr/debug Pipeline was successful
ci/woodpecker/push/debug Pipeline was successful
1533084241
lx added 1 commit 2025-01-31 16:52:01 +00:00
admin api: impl RequestHandler for MetricsRequest
All checks were successful
ci/woodpecker/push/debug Pipeline was successful
ci/woodpecker/pr/debug Pipeline was successful
421bb6a610
lx changed title from Admin API refactoring: convert existing commands to API requests (step 3) to WIP: Admin API refactoring: convert existing commands to API requests (step 3) 2025-01-31 18:17:01 +00:00
lx force-pushed refactor-admin from 421bb6a610 to 92d10bb47d 2025-02-01 18:15:19 +00:00 Compare
lx force-pushed refactor-admin from 92d10bb47d to 5cbb6e0fc9 2025-02-01 18:32:47 +00:00 Compare
lx added 1 commit 2025-02-01 18:37:28 +00:00
admin api: reorder things
All checks were successful
ci/woodpecker/push/debug Pipeline was successful
ci/woodpecker/pr/debug Pipeline was successful
4a3e964ecc
lx force-pushed refactor-admin from 4a3e964ecc to ce2935c82d 2025-02-01 18:58:48 +00:00 Compare
lx force-pushed refactor-admin from ce2935c82d to 97be7b38fa 2025-02-03 17:55:00 +00:00 Compare
lx added 1 commit 2025-02-05 13:22:22 +00:00
cli_v2: implement CreateMetadataSnapshot
All checks were successful
ci/woodpecker/pr/debug Pipeline was successful
ci/woodpecker/push/debug Pipeline was successful
9f468b4439
lx added 1 commit 2025-02-05 14:06:21 +00:00
cli_v2: implement Get{Node,Cluster}Statistics
All checks were successful
ci/woodpecker/pr/debug Pipeline was successful
ci/woodpecker/push/debug Pipeline was successful
406b6da163
lx added 1 commit 2025-02-05 14:37:04 +00:00
cli_v2: implement LaunchRepairOperation and remove old stuff
All checks were successful
ci/woodpecker/pr/debug Pipeline was successful
ci/woodpecker/push/debug Pipeline was successful
f914db057a
lx added 1 commit 2025-02-05 18:37:59 +00:00
massively speed up compilation of garage_api_admin by not using async_trait
All checks were successful
ci/woodpecker/push/debug Pipeline was successful
ci/woodpecker/pr/debug Pipeline was successful
7c8fc04b96
lx changed title from WIP: Admin API refactoring: convert existing commands to API requests (step 3) to Admin API refactoring: convert existing commands to API requests (step 3) 2025-02-05 19:54:34 +00:00
lx merged commit 71655c1e89 into next-v2 2025-02-05 19:54:42 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Deuxfleurs/garage#945
No description provided.