Service restarted on every update-status due to identity-credentials.connected reactive event.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Prometheus Openstack Exporter Charm |
Fix Released
|
Undecided
|
Jorge Niedbalski |
Bug Description
[Environment]
Juju 2.6.3
[Description]
Service gets restarted on every update-status hook whether or not
the keystone credentials have changed.
1) The update-status hook triggers the identity-
2) the identity-
https:/
3) The state set_state(
4) The snap openstack-exporter service gets restarted.
217390-2019-06-28 14:44:29 INFO juju-log Reactive main running for hook update-status
217391-2019-06-28 14:44:29 INFO juju-log Initializing Snap Layer
217392-2019-06-28 14:44:29 DEBUG update-status lxc
217393-2019-06-28 14:44:30 INFO juju-log Invoking reactive handler: reactive/
217394-2019-06-28 14:44:30 INFO juju-log Invoking reactive handler: reactive/
217395-2019-06-28 14:44:32 INFO juju-log Invoking reactive handler: reactive/
217396-2019-06-28 14:44:32 INFO juju-log Invoking reactive handler: reactive/
217397-2019-06-28 14:44:32 INFO juju-log Invoking reactive handler: reactive/
217398-2019-06-28 14:44:33 INFO juju-log Setting charm primary status True
217399-2019-06-28 14:44:33 INFO juju-log Invoking reactive handler: reactive/
217400-2019-06-28 14:44:33 INFO juju-log render_config: Got credentials for username=
217401-2019-06-28 14:44:33 INFO juju-log render_config: Using provided ssl_ca
217402-2019-06-28 14:44:33 INFO juju-log Invoking reactive handler: reactive/
217403-2019-06-28 14:44:33 DEBUG update-status active
217404:2019-06-28 14:44:33 INFO juju-log Restarting snap.prometheus
Related branches
- Jorge Niedbalski (community): Approve
- Stuart Bishop (community): Approve
- Felipe Reyes (community): Approve
-
Diff: 74 lines (+26/-7)2 files modifiedreactive/openstack_exporter.py (+11/-4)
unit_tests/test_reactive_openstack_exporter.py (+15/-3)
tags: | added: sts |
Changed in prometheus-openstack-exporter-charm: | |
assignee: | nobody → Jorge Niedbalski (niedbalski) |
status: | New → In Progress |
Changed in prometheus-openstack-exporter-charm: | |
status: | In Progress → Fix Released |
This has been tested in CI for a charm upgrade from the current released version, and a deploy from scratch. It's now been released as cs:prometheus- openstack- exporter- 8. I'll leave the bug status untouched until someone can confirm the issue is fixed with this deployed version.