Using custom-rules requires manually touching a file
Bug #1845329 reported by
Andrea Ieri
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Prometheus2 charm |
Fix Released
|
Medium
|
Unassigned |
Bug Description
How to reproduce:
* deploy prometheus with its default configuration
* load some rules with `juju config prometheus custom-rules="$(cat blackbox.rules)"`
Result:
* the config-changed hook will fail because `/snap/
Checking /var/snap/
FAILED: "/var/snap/
Workaround:
* juju ssh prometheus -- sudo touch /var/snap/
Changed in charm-prometheus2: | |
status: | New → Triaged |
importance: | Undecided → Medium |
To post a comment you must log in.
This bug had already been fixed:
$ juju ssh prometheus2/0 ls /var/snap/ prometheus/ current/
daemon_arguments generic.rules prometheus.yml promreg
$ juju config prometheus2 custom-rules="$(cat test.rules)"
$ juju ssh prometheus2/0 ls /var/snap/ prometheus/ current/
custom.rules daemon_arguments generic.rules prometheus.yml promreg