Misconfigured sources does not give any error
Bug #1887947 reported by
Benjamin Allot
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
turku-charms |
Fix Committed
|
Medium
|
James Simpson |
Bug Description
The following configuration while invalid, didn't produce any error in logs:
juju config turku-agent-
It should be
juju config turku-agent-
The only log seen when applying the first line is
unit-turku-
unit-turku-
Related branches
lp://staging/~jsimpso/turku-charms/improve_logging
- Barry Price: Approve
-
Diff: 16 lines (+4/-2)1 file modifiedhooks/hooks.py (+4/-2)
Changed in turku-charms: | |
assignee: | nobody → James Simpson (jsimpso) |
status: | Confirmed → Fix Committed |
To post a comment you must log in.
This has been improved with the following MP: https:/ /code.launchpad .net/~jsimpso/ turku-charms/ improve_ logging/ +merge/ 422802
We'll now see more useful feedback, e.g.:
2022-05-18 06:08:38 INFO juju-log Hook: config-changed
2022-05-18 06:08:38 ERROR juju-log Error while parsing config
2022-05-18 06:08:38 ERROR juju-log Expecting ':' delimiter: line 1 column 299 (char 298)
2022-05-18 06:09:38 INFO juju-log Hook: config-changed
2022-05-18 06:09:38 INFO juju-log Successfully parsed config
2022-05-18 06:09:38 INFO juju-log Running turku-update-config
I'm not sure if you want to call this bug resolved or not though, as ideally I believe the charm should end up in a "BLOCKED" state following a JSON parsing error.