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 doesn't clear shard errors #1931

Closed
anikeev-yadro opened this issue Oct 19, 2022 · 0 comments · Fixed by #1935
Closed

neofs-cli doesn't clear shard errors #1931

anikeev-yadro opened this issue Oct 19, 2022 · 0 comments · Fixed by #1935
Assignees
Labels
bug Something isn't working U2 Seriously planned

Comments

@anikeev-yadro
Copy link

Expected Behavior

neofs-cli control shards set-mode --all --mode read-write --clear-errors should clear shard errors

Current Behavior

neofs-cli control shards set-mode --all --mode read-write --clear-errors doesn't clear shard errors

Steps to Reproduce (for bugs)

  1. See errors on the shard:
root@az:~# neofs-cli --endpoint 127.0.0.1:8091 -w /etc/neofs/storage/wallet.json control shards list|grep -A 10 7qAhxeP39ucvQnrp4Q3nGu
Enter password >
Shard 7qAhxeP39ucvQnrp4Q3nGu:
Mode: degraded-read-only
Metabase: /srv/neofs/meta0/metabase2.db
Blobstor:
        Path 0: /srv/neofs/data2/blobovnicza
        Type 0: blobovnicza
        Path 1: /srv/neofs/data2
        Type 1: fstree
Write-cache: /srv/neofs/meta0/write_cache2
Pilorama: /srv/neofs/meta0/pilorama2.db
Error count: 31
  1. Try to change shard mode and clear errors:
root@az:~# neofs-cli --endpoint 127.0.0.1:8091 -w /etc/neofs/storage/wallet.json control shards set-mode --all --mode read-write --clear-errors
Enter password >
Shard mode update request successfully sent.
  1. Mode was changed, but error count didn't clear:
root@az:~# neofs-cli --endpoint 127.0.0.1:8091 -w /etc/neofs/storage/wallet.json control shards list|grep -A 10 7qAhxeP39ucvQnrp4Q3nGu
Enter password >
Shard 7qAhxeP39ucvQnrp4Q3nGu:
Mode: read-write
Metabase: /srv/neofs/meta0/metabase2.db
Blobstor:
        Path 0: /srv/neofs/data2/blobovnicza
        Type 0: blobovnicza
        Path 1: /srv/neofs/data2
        Type 1: fstree
Write-cache: /srv/neofs/meta0/write_cache2
Pilorama: /srv/neofs/meta0/pilorama2.db
Error count: 58

Versions:

NeoFS Storage node
Version: v0.32.0-121-gade19077
GoVersion: go1.18.4

Your Environment
Server setup and configuration:
cloud, 4 VMs, 4 SN, 4 http qw, 4 s3 gw

Operating System and version (uname -a):
linux vedi 5.10.0-16-amd64 #1 SMP Debian 5.10.127-1 (2022-06-30) x86_64 GNU/Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working U2 Seriously planned
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants