-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storage node can update its network state to any value #1797
Comments
cthulhu-rider
added
bug
Something isn't working
triage
neofs-ir
Inner Ring node application issues
labels
Sep 19, 2022
While Inner Ring is a last resort of verification, maybe we need to check states also before calling the Netmap contract in order to not produce invalid requests. |
cthulhu-rider
pushed a commit
to cthulhu-rider/neofs-node
that referenced
this issue
Sep 19, 2022
… server In previous implementation storage node interpreted all status values sent in `SetNetmapStatus` RPC as `OFFLINE` except `ONLINE` and `MAINTENANCE`. This could lead to incorrect processing of new values, and also didn't allow detection of problems with sending garbage values. Make implementation of `NodeState` interface used by Control API server to deny requests with statuses other than protocol-declared enum. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
cthulhu-rider
pushed a commit
to cthulhu-rider/neofs-node
that referenced
this issue
Sep 19, 2022
… server In previous implementation storage node interpreted all status values sent in `SetNetmapStatus` RPC as `OFFLINE` except `ONLINE` and `MAINTENANCE`. This could lead to incorrect processing of new values, and also didn't allow detection of problems with sending garbage values. Make implementation of `NodeState` interface used by Control API server to deny requests with statuses other than protocol-declared enum. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
cthulhu-rider
pushed a commit
to cthulhu-rider/neofs-node
that referenced
this issue
Sep 28, 2022
… server In previous implementation storage node interpreted all status values sent in `SetNetmapStatus` RPC as `OFFLINE` except `ONLINE` and `MAINTENANCE`. This could lead to incorrect processing of new values, and also didn't allow detection of problems with sending garbage values. Make implementation of `NodeState` interface used by Control API server to deny requests with statuses other than protocol-declared enum. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
cthulhu-rider
pushed a commit
to cthulhu-rider/neofs-node
that referenced
this issue
Sep 30, 2022
… server In previous implementation storage node interpreted all status values sent in `SetNetmapStatus` RPC as `OFFLINE` except `ONLINE` and `MAINTENANCE`. This could lead to incorrect processing of new values, and also didn't allow detection of problems with sending garbage values. Make implementation of `NodeState` interface used by Control API server to deny requests with statuses other than protocol-declared enum. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
cthulhu-rider
pushed a commit
to cthulhu-rider/neofs-node
that referenced
this issue
Oct 4, 2022
… server In previous implementation storage node interpreted all status values sent in `SetNetmapStatus` RPC as `OFFLINE` except `ONLINE` and `MAINTENANCE`. This could lead to incorrect processing of new values, and also didn't allow detection of problems with sending garbage values. Make implementation of `NodeState` interface used by Control API server to deny requests with statuses other than protocol-declared enum. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
aprasolova
pushed a commit
to aprasolova/neofs-node
that referenced
this issue
Oct 19, 2022
… server In previous implementation storage node interpreted all status values sent in `SetNetmapStatus` RPC as `OFFLINE` except `ONLINE` and `MAINTENANCE`. This could lead to incorrect processing of new values, and also didn't allow detection of problems with sending garbage values. Make implementation of `NodeState` interface used by Control API server to deny requests with statuses other than protocol-declared enum. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Similar problem with state updating. It works similar to network registration but with other request -
UpdateState
.Expected Behavior
Inner Ring does not allow to set node's state other than
ONLINE
orOFFLINE
.Current Behavior
Inner Ring allows to set any state.
Possible Solution
Check the state during processing.
Steps to Reproduce (for bugs)
neofs-node/cmd/neofs-cli/modules/control/set_netmap_status.go
Line 53 in d6fef68
status = 321
$ make bin/neofs-cli
make up/basic
$ ./bin/neofs-cli --endpoint s01.neofs.devenv:8081 --wallet ../devenv/services/storage/wallet01.json control set-status --status aaa
Regression
No. Bug is very old.
Your Environment
neofs-node@v0.32.0
neofs-cli@v0.32.0
neofs-dev-env@c4ceb1c5854816cebcf23580853fda294c2d2c60
The text was updated successfully, but these errors were encountered: