percona_utils.get_wresp_value(key)
can fail in cursor.execute(...) with an Exception but the logging is
``` unit-mysql-3: 15:53:19 ERROR unit.mysql/3.juju-log Failed to get '%s' ```
changing to
except Exception as e: log("Failed to get key=%s '%s'" % (key, e), ERROR) return None
you can get a better log
``` unit-mysql-3: 15:58:33 ERROR unit.mysql/3.juju-log Failed to get key=wsrep_ready '(1146, "Table 'performance_schema.session_status' doesn't exist")' ```
percona_ utils.get_ wresp_value( key)
can fail in cursor.execute(...) with an Exception but the logging is
``` 3.juju- log Failed to get '%s'
unit-mysql-3: 15:53:19 ERROR unit.mysql/
```
changing to
except Exception as e:
log("Failed to get key=%s '%s'" % (key, e), ERROR)
return None
you can get a better log
``` 3.juju- log Failed to get key=wsrep_ready '(1146, "Table 'performance_ schema. session_ status' doesn't exist")'
unit-mysql-3: 15:58:33 ERROR unit.mysql/
```