canonical / charm-juju-backup-all

Juju Backup All - a charm to perform Juju and database backups
Apache License 2.0
1 stars 5 forks source link

NRPE check reports OK although there are errors #55

Open marcusboden opened 1 day ago

marcusboden commented 1 day ago

We have an issue where part of the backup fails, but the NRPE doesn't notice it and happily returns "OK". The problem is, that the code looks for the ERROR key in the output json, however, this is what we got:

$ cat /var/lib/jujubackupall/auto_backup_results.json
{
[... working backups ...]
  "errors": [
    {
      "controller": "foundations-maas",
      "model": "openstack",
      "app": "mysql-innodb-cluster",
      "charm": "mysql-innodb-cluster",
      "error_reason": "JujuTimeoutError: Task 'mysqldump' timed out (timeout=1800)."
    }
  ]
}

I wonder where this change comes from? juju? Anyway, should be an easy fix

syncronize-issues-to-jira[bot] commented 1 day ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/SOLENG-858.

This message was autogenerated