Add morph remove node command #14

Merged
anikeev-yadro merged 1 commit from anikeev-yadro/frostfs-testlib:anikeev/add_morph_remove_node into master 2023-03-16 14:43:03 +00:00
Member

Add new comnand to remove node from netwok map

Signed-off-by: anikeev-yadro a.anikeev@yadro.com

Add new comnand to remove node from netwok map Signed-off-by: anikeev-yadro <a.anikeev@yadro.com>
JuliaKovshova was assigned by anikeev-yadro 2023-03-14 12:09:06 +00:00
abereziny was assigned by anikeev-yadro 2023-03-14 12:09:06 +00:00
anikeev-yadro requested review from JuliaKovshova 2023-03-15 06:22:13 +00:00
anikeev-yadro requested review from abereziny 2023-03-15 06:22:13 +00:00
JuliaKovshova was unassigned by anikeev-yadro 2023-03-15 06:22:22 +00:00
abereziny was unassigned by anikeev-yadro 2023-03-15 06:22:23 +00:00
anikeev-yadro force-pushed anikeev/add_morph_remove_node from 69ffed53bf to d2e1c56ed4 2023-03-15 06:23:55 +00:00 Compare
abereziny reviewed 2023-03-15 08:13:48 +00:00
@ -356,1 +356,4 @@
)
def remove_node(
self, node_netmap_key: str, rpc_endpoint: Optional[str] = None, alphabet: Optional[str] = None
Member

The parameter alphabet should be renamed to alphabet_wallets

> neofs-adm morph remove-nodes --help
Move nodes to the Offline state in the candidates list and tick an epoch to update the netmap

Usage:
  neofs-adm morph remove-nodes key1 [key2 [...]] [flags]

Flags:
      --alphabet-wallets string   Path to alphabet wallets dir
  -h, --help                      help for remove-nodes
  -r, --rpc-endpoint string       N3 RPC node endpoint
The parameter `alphabet` should be renamed to `alphabet_wallets` ``` > neofs-adm morph remove-nodes --help Move nodes to the Offline state in the candidates list and tick an epoch to update the netmap Usage: neofs-adm morph remove-nodes key1 [key2 [...]] [flags] Flags: --alphabet-wallets string Path to alphabet wallets dir -h, --help help for remove-nodes -r, --rpc-endpoint string N3 RPC node endpoint ```
Author
Member

fixed

fixed
anikeev-yadro marked this conversation as resolved
fyrchik reviewed 2023-03-15 08:46:00 +00:00
@ -357,0 +370,4 @@
Command's result.
"""
return self._execute(
f"morph remove-nodes '{node_netmap_key}'",
Owner

neofs-adm supports removing multiple nodes in one command, maybe reflect this in the function interface?

neofs-adm supports removing multiple nodes in one command, maybe reflect this in the function interface?
Author
Member

fixed

fixed
anikeev-yadro marked this conversation as resolved
anikeev-yadro force-pushed anikeev/add_morph_remove_node from d2e1c56ed4 to 539d4c29e6 2023-03-15 15:56:45 +00:00 Compare
anikeev-yadro force-pushed anikeev/add_morph_remove_node from 539d4c29e6 to e73585cf50 2023-03-15 16:20:13 +00:00 Compare
anikeev-yadro requested review from fyrchik 2023-03-15 16:20:57 +00:00
abereziny approved these changes 2023-03-16 08:12:02 +00:00
JuliaKovshova approved these changes 2023-03-16 09:17:12 +00:00
fyrchik approved these changes 2023-03-16 13:44:27 +00:00
anikeev-yadro merged commit e73585cf50 into master 2023-03-16 14:43:03 +00:00
anikeev-yadro deleted branch anikeev/add_morph_remove_node 2023-03-16 14:43:03 +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-testlib#14
No description provided.