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

Merged
fyrchik merged 1 commit from dstepanov-yadro/frostfs-node:feat/control_set_status_await into master 2024-09-04 19:51:09 +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 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 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#1194
No description provided.