frostfs-node/pkg
Leonard Lyubich f64ae55806 [#1681] ir/netmap: Require MAINTENANCE mode to be allowed by network
There is a need to prevent limitless abuse of MAINTENANCE status of the
storage nodes. To do this, configuration of the NeoFS network is going
to be extended with the flag which allows the state. Until this is done,
it makes sense to prepare a site for this in the code.

Define `state.NetworkSettings` interface as an abstraction of global
network configuration within the `state` package. Make
`NetMapCandidateValidator` to depend on `NetworkSettings` and provide
corresponding field setter. Change `VerifyAndUpdate` method's behavior
to return an error for candidates with MAINTENANCE state if this state
is disallowed by the network configuration. Provide `NetworkSettings`
from the wrapper over Netmap contract's client on Inner Ring application
side. The provider is implemented to statically disallow MAINTENANCE
mode in order to save previous behavior.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
Signed-off-by: Leonard Lyubich <ctulhurider@gmail.com>
2022-10-05 11:41:49 +03:00
..
core [#1817] network: Allow to use network addresses from the iterator 2022-10-04 12:12:18 +03:00
innerring [#1681] ir/netmap: Require MAINTENANCE mode to be allowed by network 2022-10-05 11:41:49 +03:00
local_object_storage [#1809] node: Do not boot up if metabase is outdated 2022-10-04 12:32:10 +03:00
metrics [#1658] metrics: Add object type label to the counters 2022-09-13 21:32:37 +04:00
morph [#1680] morph/netmap: Pre-refactor processing of node states 2022-10-05 11:41:49 +03:00
network [#1817] network: Allow to use network addresses from the iterator 2022-10-04 12:12:18 +03:00
services [#1817] network: Allow to use network addresses from the iterator 2022-10-04 12:12:18 +03:00
util [#1687] *: Perform go fmt using go v1.19 2022-08-22 18:59:57 +03:00