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

PVC query error #43

Open
hegedussz opened this issue Sep 25, 2024 · 0 comments
Open

PVC query error #43

hegedussz opened this issue Sep 25, 2024 · 0 comments

Comments

@hegedussz
Copy link

If there is an error during a query, return the PVC check error value

root@ubuntu-jammy:/home/ ./check_kubernetes.sh -K k8s-dev.yaml -m pvc
parse error: Invalid numeric literal at line 1, column 667757
OK. No problems on  pvc

If there is an error during a query, return the PVC check error value:

The problem is that such an error can occur during a query:

Error from server (ServiceUnavailable): error trying to reach service: dial tcp 192.168.2.57:10250: i/o timeout

Error from server (ServiceUnavailable): error trying to reach service: dial tcp 192.168.4.132:10250: connect: no route to host

If the cluster member is unavailable then the PVC check does not return an appropriate response

The relevant detail:

data=$(for node in "${nodes[@]}"; do getJSON "api/v1/nodes/$node/proxy/stats/summary"; done)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant