control: Reset shard evacuation status #1043

Merged
fyrchik merged 4 commits from dstepanov-yadro/frostfs-node:feat/reset_evacuation_status into master 2024-03-13 10:29:49 +00:00

This PR allows to reset shards evacuation status:

$ ./bin/frostfs-cli control shards set-mode --mode read-only --id Lc5VNTd7LALW66T8MqXnDi --endpoint 127.0.0.1:8081 --wallet ./.
./frostfs-dev-env/wallets/wallet.json
Enter password > 
Shard mode update request successfully sent.

$ ./bin/frostfs-cli control shards evacuation start --id Lc5VNTd7LALW66T8MqXnDi --endpoint 127.0.0.1:8081 --wallet ./../frostfs
-dev-env/wallets/wallet.json
Enter password > 
Shard evacuation has been successfully started.

$ ./bin/frostfs-cli control shards evacuation status --endpoint 127.0.0.1:8081 --wallet ./../frostfs-dev-env/wallets/wallet.json
Enter password > 
Shard IDs: Lc5VNTd7LALW66T8MqXnDi. Status: completed. Evacuated 1 objects out of 1, failed to evacuate: 0, skipped: 0; evacuated 0 trees out of 0, failed to evacuate: 0. Started at: 2024-03-13T08:59:27Z UTC. Duration: 00:00:00.

$ ./bin/frostfs-cli control shards evacuation reset --endpoint 127.0.0.1:8081 --wallet ./../frostfs-dev-env/wallets/wallet.json
Enter password > 
Shards evacuation status has been reset.

$ ./bin/frostfs-cli control shards evacuation status --endpoint 127.0.0.1:8081 --wallet ./../frostfs-dev-env/wallets/wallet.json
Enter password > 
There is no running or completed evacuation.
This PR allows to reset shards evacuation status: ``` $ ./bin/frostfs-cli control shards set-mode --mode read-only --id Lc5VNTd7LALW66T8MqXnDi --endpoint 127.0.0.1:8081 --wallet ./. ./frostfs-dev-env/wallets/wallet.json Enter password > Shard mode update request successfully sent. $ ./bin/frostfs-cli control shards evacuation start --id Lc5VNTd7LALW66T8MqXnDi --endpoint 127.0.0.1:8081 --wallet ./../frostfs -dev-env/wallets/wallet.json Enter password > Shard evacuation has been successfully started. $ ./bin/frostfs-cli control shards evacuation status --endpoint 127.0.0.1:8081 --wallet ./../frostfs-dev-env/wallets/wallet.json Enter password > Shard IDs: Lc5VNTd7LALW66T8MqXnDi. Status: completed. Evacuated 1 objects out of 1, failed to evacuate: 0, skipped: 0; evacuated 0 trees out of 0, failed to evacuate: 0. Started at: 2024-03-13T08:59:27Z UTC. Duration: 00:00:00. $ ./bin/frostfs-cli control shards evacuation reset --endpoint 127.0.0.1:8081 --wallet ./../frostfs-dev-env/wallets/wallet.json Enter password > Shards evacuation status has been reset. $ ./bin/frostfs-cli control shards evacuation status --endpoint 127.0.0.1:8081 --wallet ./../frostfs-dev-env/wallets/wallet.json Enter password > There is no running or completed evacuation. ```
dstepanov-yadro force-pushed feat/reset_evacuation_status from 25ef5d1007 to 0144dae390 2024-03-13 09:15:06 +00:00 Compare
dstepanov-yadro requested review from storage-core-committers 2024-03-13 09:23:09 +00:00
dstepanov-yadro requested review from storage-core-developers 2024-03-13 09:23:21 +00:00
aarifullin approved these changes 2024-03-13 09:54:32 +00:00
acid-ant approved these changes 2024-03-13 10:17:46 +00:00
fyrchik approved these changes 2024-03-13 10:29:41 +00:00
fyrchik merged commit 0a600521ad into master 2024-03-13 10:29:49 +00:00
fyrchik referenced this pull request from a commit 2024-03-13 10:29:51 +00:00
fyrchik referenced this pull request from a commit 2024-03-13 10:29:51 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
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: TrueCloudLab/frostfs-node#1043
No description provided.