Charm should either block or mkdir if dir_certs or dir_keys does not exist
Bug #1791882 reported by
Barry Price
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autocert-charm |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
If the charm is configured with dir_certs/dir_keys pointing to a directory that does not exist, the charm will install as normal but the daily cron job will fail.
The Nagios check will alert on this, if configured, but the charm should be more proactive here.
I'd favour a mkdir -p if any given configured dir doesn't exist. But if there's a good reason not to do that, then we should at least block and/or warn via unit status.
To post a comment you must log in.
This was already fixed in commit 50a680e38a97198 08ef80138adb740 e824d2ea5d.
https:/ /git.launchpad. net/autocert- charm/commit/ ?id=50a680e38a9 719808ef80138ad b740e824d2ea5d