Merge ~afreiberger/prometheus-openstack-exporter-snap:log-level-fix into prometheus-openstack-exporter-snap:master
Proposed by
Drew Freiberger
Status: | Merged |
---|---|
Merged at revision: | 23f0cc580da3f9260c91097f62fe07ffd024e411 |
Proposed branch: | ~afreiberger/prometheus-openstack-exporter-snap:log-level-fix |
Merge into: | prometheus-openstack-exporter-snap:master |
Diff against target: |
16 lines (+4/-1) 1 file modified
prometheus-openstack-exporter (+4/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
James Hebden | Pending | ||
Canonical IS SAs | Pending | ||
Review via email: mp+375546@code.launchpad.net |
To post a comment you must log in.
When upgrading to new P-O-E snap, if the log_level is not set in the config file (such as is the case with prior p-o-e charm revisions prior to this commit [1], the following traceback is seen and p-o-e fails to start:
Nov 14 12:13:40 loomis prometheus- openstack- exporter. prometheus- openstack- exporter[ 31476]: Traceback (most recent call last): openstack- exporter. prometheus- openstack- exporter[ 31476]: File "/snap/ prometheus- openstack- exporter/ 30/bin/ prometheus- openstack- exporter" , line 795, in <module> openstack- exporter. prometheus- openstack- exporter[ 31476]: numeric_log_level = getattr(logging, config. get('log_ level') .upper( ), None) openstack- exporter. prometheus- openstack- exporter[ 31476]: AttributeError: 'NoneType' object has no attribute 'upper'
Nov 14 12:13:40 loomis prometheus-
Nov 14 12:13:40 loomis prometheus-
Nov 14 12:13:40 loomis prometheus-
[1] https:/ /git.launchpad. net/prometheus- openstack- exporter- charm/commit/ templates/ prometheus- openstack- exporter. yaml?id= f6b2f96dd0c4d46 56de8384f1308fc ac0fefa2ef