Skip to content
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

neofs-cli netmap nodeinfo says that Node is online despite the node is offline #1833

Closed
ikovalev1 opened this issue Oct 4, 2022 · 0 comments · Fixed by #1875
Closed

neofs-cli netmap nodeinfo says that Node is online despite the node is offline #1833

ikovalev1 opened this issue Oct 4, 2022 · 0 comments · Fixed by #1875
Assignees
Labels
bug Something isn't working neofs-cli NeoFS CLI application issues U2 Seriously planned

Comments

@ikovalev1
Copy link

Steps to Reproduce (for bugs)

  1. Vary a node offline:
    neofs-cli control set-status --endpoint localhost:8091 -w /etc/neofs/storage/wallet.json --status offline
  2. tick apoch
    neofs-adm morph force-new-epoch -c config.yaml
  3. run Healthcheck and verify that the node is offline
oot@az:/home/service# neofs-cli --endpoint localhost:8091 -w /etc/neofs/storage/wallet.json control healthcheck
   Enter password >
   Network status: OFFLINE
   Health status: READY
  1. run neofs-cli netmap nodeinfo. It outputs : state: online
root@az:/home/service# neofs-cli netmap nodeinfo -w /etc/neofs/storage/wallet.json -r az:8080
Enter password >
key: 03afa0da7476f01322aea526c5ab5b12c2e12993a72759b0c3a08af72fc964654e
state: online
address: /dns4/node1.neofs/tcp/8080
attribute: Continent=Europe
attribute: Country=Russia
attribute: CountryCode=RU
attribute: Deployed=YACZROKH
attribute: Location=Moskva
attribute: Price=10
attribute: SubDiv=Moskva
attribute: SubDivCode=MOW
attribute: UN-LOCODE=RU MOW

Your Environment

Sbercloud 4 nodes

root@az:/home/service# uname -a
Linux az 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02) x86_64 GNU/Linux

root@az:/home/service# neofs-cli --version
NeoFS CLI
Version: v0.32.0-32-g5284ac53
GoVersion: go1.18.4

root@az:/home/service# neofs-node --version
NeoFS Storage node
Version: v0.32.0-32-g5284ac53
GoVersion: go1.18.4

@carpawell carpawell added 2022Q4 and removed 2022Q3 labels Oct 10, 2022
@alexchetaev alexchetaev added 2022Q3 and removed 2022Q4 labels Oct 10, 2022
@carpawell carpawell added 2022Q4 and removed 2022Q3 labels Oct 10, 2022
@alexchetaev alexchetaev added 2022Q3 and removed 2022Q4 labels Oct 10, 2022
aprasolova pushed a commit to aprasolova/neofs-node that referenced this issue Oct 19, 2022
If the contract returns a netmap that does not contain the node, update
local `NodeInfo`. It fixes `neofs-cli netmap nodeinfo` command that printed
"state: online" previously.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working neofs-cli NeoFS CLI application issues U2 Seriously planned
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants