Add await flag to frostfs-cli control set-status command #1194

Merged
fyrchik merged 2 commits from dstepanov-yadro/frostfs-node:feat/control_set_status_await into master 2024-06-24 11:12:26 +00:00

Output examples:

  • target status equals current status:
oot@dstepanov-node1[alone_datacenter]:~# /home/service/frostfs-cli-dstepanov --endpoint 127.0.0.1:8091 control set-status --status offline --wallet /etc/frostfs/storage/wallet.json --await
Enter password > 
Network status update request successfully sent.
Wait until epoch and netmap status change...
Netmap status changed to 'OFFLINE' successfully.
  • target status doesn't equal current status:
root@dstepanov-node1[alone_datacenter]:~# /home/service/frostfs-cli-dstepanov --endpoint 127.0.0.1:8091 control set-status --status offline --wallet /etc/frostfs/storage/wallet.json --await
Enter password > 
Network status update request successfully sent.
Wait until epoch and netmap status change...
Current netmap status 'ONLINE', target status 'OFFLINE'
Current netmap status 'ONLINE', target status 'OFFLINE'
Current netmap status 'ONLINE', target status 'OFFLINE'
Current netmap status 'ONLINE', target status 'OFFLINE'
Current netmap status 'ONLINE', target status 'OFFLINE'
Current netmap status 'ONLINE', target status 'OFFLINE'
Current netmap status 'ONLINE', target status 'OFFLINE'
Current netmap status 'ONLINE', target status 'OFFLINE'
Current netmap status 'ONLINE', target status 'OFFLINE'
Current netmap status 'ONLINE', target status 'OFFLINE'
Epoch changed to 17
Netmap status changed to 'OFFLINE' successfully
Output examples: - target status equals current status: ``` oot@dstepanov-node1[alone_datacenter]:~# /home/service/frostfs-cli-dstepanov --endpoint 127.0.0.1:8091 control set-status --status offline --wallet /etc/frostfs/storage/wallet.json --await Enter password > Network status update request successfully sent. Wait until epoch and netmap status change... Netmap status changed to 'OFFLINE' successfully. ``` - target status doesn't equal current status: ``` root@dstepanov-node1[alone_datacenter]:~# /home/service/frostfs-cli-dstepanov --endpoint 127.0.0.1:8091 control set-status --status offline --wallet /etc/frostfs/storage/wallet.json --await Enter password > Network status update request successfully sent. Wait until epoch and netmap status change... Current netmap status 'ONLINE', target status 'OFFLINE' Current netmap status 'ONLINE', target status 'OFFLINE' Current netmap status 'ONLINE', target status 'OFFLINE' Current netmap status 'ONLINE', target status 'OFFLINE' Current netmap status 'ONLINE', target status 'OFFLINE' Current netmap status 'ONLINE', target status 'OFFLINE' Current netmap status 'ONLINE', target status 'OFFLINE' Current netmap status 'ONLINE', target status 'OFFLINE' Current netmap status 'ONLINE', target status 'OFFLINE' Current netmap status 'ONLINE', target status 'OFFLINE' Epoch changed to 17 Netmap status changed to 'OFFLINE' successfully ```
dstepanov-yadro added 2 commits 2024-06-20 13:10:18 +00:00
9f9ab7a39b [#60] control: Add GetNetmapStatus method
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
DCO action / DCO (pull_request) Successful in 6m20s Details
Vulncheck / Vulncheck (pull_request) Successful in 8m7s Details
Tests and linters / gopls check (pull_request) Successful in 9m54s Details
Build / Build Components (1.21) (pull_request) Successful in 9m54s Details
Build / Build Components (1.22) (pull_request) Successful in 9m47s Details
Tests and linters / Lint (pull_request) Successful in 10m45s Details
Tests and linters / Staticcheck (pull_request) Successful in 12m1s Details
Pre-commit hooks / Pre-commit (pull_request) Successful in 11m33s Details
Tests and linters / Tests (1.22) (pull_request) Failing after 22m6s Details
Tests and linters / Tests (1.21) (pull_request) Failing after 24m19s Details
Tests and linters / Tests with -race (pull_request) Successful in 26m25s Details
0613c37368
[#60] cli: Add `await` flag to `control set-status`
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
dstepanov-yadro force-pushed feat/control_set_status_await from 0613c37368 to ce8a13fb0f 2024-06-20 13:15:45 +00:00 Compare
dstepanov-yadro force-pushed feat/control_set_status_await from ce8a13fb0f to b86fbe230b 2024-06-20 13:20:21 +00:00 Compare
dstepanov-yadro force-pushed feat/control_set_status_await from b86fbe230b to aaaac37f24 2024-06-20 13:22:37 +00:00 Compare
dstepanov-yadro force-pushed feat/control_set_status_await from aaaac37f24 to 46732b61d7 2024-06-20 13:29:08 +00:00 Compare
dstepanov-yadro requested review from storage-core-committers 2024-06-20 15:05:00 +00:00
dstepanov-yadro requested review from storage-core-developers 2024-06-20 15:05:01 +00:00
dstepanov-yadro changed title from WIP: Add `await` flag to `frostfs-cli control set-status` command to Add `await` flag to `frostfs-cli control set-status` command 2024-06-20 15:05:12 +00:00
achuprov approved these changes 2024-06-24 07:08:18 +00:00
acid-ant approved these changes 2024-06-24 08:20:00 +00:00
aarifullin approved these changes 2024-06-24 10:56:33 +00:00
fyrchik merged commit 46732b61d7 into master 2024-06-24 11:12:26 +00:00
Sign in to join this conversation.
No Milestone
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#1194
There is no content yet.