[#114] Add remove-node IR control command #310
No reviewers
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#310
Loading…
Reference in a new issue
No description provided.
Delete branch "ale64bit/frostfs-node:feature/114-control-ir-remove-node"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Signed-off-by: Alejandro Lopez a.lopez@yadro.com
Close #114
@ -0,0 +48,4 @@
return fmt.Errorf("peer can be forcefully removed only in notary environment")
}
prm := UpdatePeerPrm{}
NodeState = Offline ?
Oh, my mistake:
@ -60,0 +82,4 @@
break
}
}
if len(nodeInfo.PublicKey()) == 0 {
Maybe validate node state too? What if state already Offline?
would it appear in the list if it was offline?
I don't know)
Added the check just in case.
f605f970fd
to229bb24cc7
@ -0,0 +30,4 @@
pk := key.Get(cmd)
c := getClient(cmd, pk)
nodeKeyStr, _ := cmd.Flags().GetString("node")
Can we just make a flag required? I know, you still can provide empty value, but hey, control service should still return an error.
done
@ -175,3 +175,3 @@
}
// SetArgs sets arguments of the contact call.
// SetArgs sets arguments of the contract call.
Unrelated to the commit.
done
229bb24cc7
to8e5b7cb98e