openvstorage / openvstorage-health-check

The health check is classified as a monitoring and detection tool for Open vStorage.
3 stars 7 forks source link

disk-safety health check is showing some weird behavior #235

Closed matthiasdeblock closed 7 years ago

matthiasdeblock commented 7 years ago

There is some weird behavior when executing the disk-safety health check.

The percentage is descending but the 'Amount of objects to repair is descending!' stays in FAILED status.

Descending should be SUCCESS instead of FAILED. Ascending should be FAILED. When it stays steady, it should be logged as WARNING.

root@stor-201:~# ovs healthcheck alba disk-safety
[INFO] Checking if objects need to be repaired...
[FAILED] Currently found 1 backend(s) with disk lost.
[WARNING] Backend mybackend2: 5920 out of 108956 objects have to be repaired.
[WARNING] Backend mybackend2: 5.4334% of the objects have to be repaired
[FAILED] Amount of objects to repair is descending!
[INFO] Recap of alba disk-safety!
[INFO] ======================
[INFO] SUCCESS=0 FAILED=2 SKIPPED=0 WARNING=2 EXCEPTION=0
root@stor-201:~# ovs healthcheck alba disk-safety
[INFO] Checking if objects need to be repaired...
[FAILED] Currently found 1 backend(s) with disk lost.
[WARNING] Backend mybackend2: 5920 out of 109980 objects have to be repaired.
[WARNING] Backend mybackend2: 5.3828% of the objects have to be repaired
[FAILED] Amount of objects to repair is descending!
[INFO] Recap of alba disk-safety!
[INFO] ======================
[INFO] SUCCESS=0 FAILED=2 SKIPPED=0 WARNING=2 EXCEPTION=0
root@stor-201:~# ovs healthcheck alba disk-safety
[INFO] Checking if objects need to be repaired...
[FAILED] Currently found 1 backend(s) with disk lost.
[WARNING] Backend mybackend2: 5920 out of 109980 objects have to be repaired.
[WARNING] Backend mybackend2: 5.3828% of the objects have to be repaired
[SUCCESS] Amount of objects to repair are the same!
[INFO] Recap of alba disk-safety!
[INFO] ======================
[INFO] SUCCESS=1 FAILED=1 SKIPPED=0 WARNING=2 EXCEPTION=0
matthiasdeblock commented 7 years ago

Version

root@stor-201:~# dpkg -l | grep openvstorage
ii  openvstorage                         2.7.7-fargo.1-1                         amd64        openvStorage
ii  openvstorage-backend                 1.7.7-fargo.1-1                         amd64        openvStorage Backend plugin
ii  openvstorage-backend-core            1.7.7-fargo.1-1                         amd64        openvStorage Backend plugin core
ii  openvstorage-backend-webapps         1.7.7-fargo.1-1                         amd64        openvStorage Backend plugin Web Applications
ii  openvstorage-core                    2.7.7-fargo.1-1                         amd64        openvStorage core
ii  openvstorage-hc                      1.7.7-fargo.1-1                         amd64        openvStorage Backend plugin HyperConverged
ii  openvstorage-health-check            3.1.3-fargo.1-1                         amd64        Open vStorage HealthCheck
ii  openvstorage-sdm                     1.6.7-fargo.1-1                         amd64        Open vStorage Backend ASD Manager
ii  openvstorage-webapps                 2.7.7-fargo.1-1                         amd64        openvStorage Web Applications
JeffreyDevloo commented 7 years ago

https://github.com/openvstorage/openvstorage-health-check/pull/241