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

Skale admin doens't print restart count and failed rpc count in schain checks.json #1043

Open
oleksandrSydorenkoJ opened this issue Feb 6, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@oleksandrSydorenkoJ
Copy link

oleksandrSydorenkoJ commented Feb 6, 2024

Describe the bug
Skale admin runs checks every minute for each Skale chain on the current node and updates the checks.json file.
These checks included config_dir, dkg, volume, firewall_rules, skaled_container, exit_code_ok, RPC, blocks, process, ima_container. We can use only logs inside the docker container to see the restart count of the chain or failed rpc-checks, but not API calls.

Preconditions:
16 nodes
At least 1 active schain

Versions
skalenetwork/admin:2.6.0-beta.0 (2.3 Release)
skalenetwork/admin:2.5.4-develop.1 (2.2.1 Release)

skalenetwork/schain:3.18.0-beta.0 (2.3 Release)
skalenetwork/schain:3.17.1 (2.2.1 Release)

To Reproduce

  1. Send curl http://localhost:3009/status/schains call on the node
  2. Check the result of the response
  3. Check checks.json for any chain on the node

Expected behavior
The check report should return the restart count and failed RPC checks count in addition to existing config_dir, dkg, volume, firewall_rules, skaled_container, exit_code_ok, RPC, blocks, process, ima_container checks.

Actual state:
Skale admin doesn't return restart count and failed RPC count and doesn't print them into checks.json.
Example output:

[{"name": "worrisome-fortunate-talitha", "healthchecks": {"config_dir": true, "dkg": true, "config": true, "volume": true, "firewall_rules": true, "skaled_container": true, "exit_code_ok": true, "rpc": true, "blocks": true, "process": false, "ima_container": true}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants