nspcc-dev / nspcc-dev/neofs-node

neofs-cli should allow changing the status of nodes from offline to maintenance

Open
#2,031 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement I3 S4 U4
Dominant language
Go
Stars
38
Forks
51
Avg merge
1d 20h
Merged PRs (30d)
38

Description

Is your feature request related to a problem? Please describe.It

It is allowed to change nodes status to maintenance mode(MM) from online mode but it is not allowed the offline->MM changing:

# neofs-cli --endpoint localhost:8091 -w /etc/neofs/storage/wallet.json control set-status --status maintenance
Enter password >
rpc error: rpc error: code = Aborted desc = local maintenance is started, but state is not updated in the network: could not invoke smart contract: neofs error: chain/client: contract execution finished with state FAULT; exception: at instruction 4574 (THROW): unhandled exception: "peer is missing"

Describe the solution you'd like

It should be allowed to change offline mode to MM

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The entry point named in the issue is the neofs-cli control set-status command; start by tracing its offline-to-maintenance path and the reported “peer is missing” contract error. Done means the command can change an offline node to maintenance without the state-update failure, with the relevant tests or command behavior covering that transition.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
blockchain, cli, distributed-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.