config-changed does not regenerate config file
Bug #1805101 reported by
Alvaro Uria
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Thruk Master Charm |
Fix Released
|
Medium
|
Alok G Singh |
Bug Description
* metadata.yaml only supports trusty and xenial
* new v2.24 packages have been added to Thruk ppa.
* Bionic support needs to be tested and charm updated.
Related branches
~alephnull-b/charm-thruk-master:bionic-support
Merged
into
~nagios-charmers/charm-thruk-master:master
at
revision 4c80b7d3c1d8e2729958ebac9c64356854dcfcff
- Chris Sanders (community): Approve
- Andrea Ieri: Needs Fixing
-
Diff: 27 lines (+2/-1)2 files modifiedhooks/services.py (+1/-1)
metadata.yaml (+1/-0)
Changed in thruk-master-charm: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | Alvaro Uría (aluria) → Alok G Singh (alephnull-b) |
status: | Confirmed → In Progress |
summary: |
- Add bionic support + config-changed does not regenerate config file |
Changed in thruk-master-charm: | |
status: | In Progress → Fix Committed |
Changed in thruk-master-charm: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Tested to add bionic "series" in metadata.yaml.
""" external- agent-charm external- agent --series bionic external- agent
cd thruk-master-charm
juju deploy . thruk-master --series bionic
cd ../thruk-
juju deploy . thruk-test-
juju add-relation thruk-master thruk-test-
"""
thruk-test- external- agent uses "url=http:// 127.0.0. 1/" by default, and following "juju config ..." to update "url" value doesn't work as expected:
In thruk-master unit, /var/log/ thruk/thruk. log shows: [juju-92b911- 11][ERROR] [Thruk] No Backend available [juju-92b911- 11][ERROR] [Thruk] juju: remote site returned rc: 1 - "authorization failed, no auth key specified for http:// 127.0.0. 1/thruk/ cgi-bin/ remote. cgi\n" (http:// 127.0.0. 1) [juju-92b911- 11][ERROR] [Thruk] on page: http:// 10.205. 6.183/thruk/ cgi-bin/ tac.cgi? _=1543244051029 [juju-92b911- 11][ERROR] [Thruk] User: thrukadmin
"""
[2018/11/26 14:54:11]
[2018/11/26 14:54:11]
[2018/11/26 14:54:11]
[2018/11/26 14:54:11]
"""
/var/cache/ thruk/lmd/ lmd.ini had to be manually updated: 329780d62ea2265 d8a' 127.0.0. 1/']
"""
[[Connections]]
name = 'juju'
id = '5a105e8b9d40e1
source = ['http://
auth = '' ## <-- needed to be manually updated
"""
Then, "service thruk restart", and lmd.ini got automatically updated to the new data shared via juju relation with thruk-external- agent-charm: 329780d62ea2265 d8a' 10.205. 6.227/'] cbefd167d4f0a36 b21'
"""
[[Connections]]
name = 'test1'
id = '5a105e8b9d40e1
source = ['http://
auth = '0b0d118151ab45
"""
TL;DR: thruk-master-charm may need to be rewritten to reactive charm (now uses the Service framework) to better manage config changes (even coming from relations).