canonical / prometheus-juju-exporter

GNU General Public License v3.0
2 stars 8 forks source link

Update libjuju version to include its fix for exception handling #50

Closed agileshaw closed 1 year ago

agileshaw commented 1 year ago

The changes in libjuju that fix https://github.com/canonical/prometheus-juju-exporter/issues/42 has been merged and released (v2.9.42.2). With the fix, the program no longer hangs; it will skip the unreachable model and print out an error log:

2023-05-11T22:37:44Z prometheus-juju-exporter.prometheus-juju-exporter[3239]: 2023-05-11 22:37:44,877 DEBUG - Checking model 'broken2'...
2023-05-11T22:37:44Z prometheus-juju-exporter.prometheus-juju-exporter[3239]: 2023-05-11 22:37:44,956 ERROR - Failed connecting to model '<model id>': model migration in progress
2023-05-11T22:37:44Z prometheus-juju-exporter.prometheus-juju-exporter[3239]: 2023-05-11 22:37:44,957 DEBUG - Checking model 'controller'...
...

This PR updates libjuju dependency in requirements.txt to track the latest release for 2.9 series.

closes: #42