re-roll /etc/cron.d/autocert hour/minute less frequently

Bug #1964043 reported by Paul Collins
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
autocert-charm
Confirmed
Undecided
Unassigned

Bug Description

Every time write_cronjob is called, it re-renders /etc/cron.d/autocert with a new random minute and hour. If this happens often enough, it's possible (and has been observed in practice) that the cron job will not run for an extended period, leading to a nagios alert (best case) or expired certificate (worst case).

Per logs, this is the culprit:

@when('nrpe-external-master.available')
def configure_nagios(nagios):
    if hookenv.hook_name() == 'update-status':
        return
    # [...]
    write_cronjob()

From checking the Juju log it seems the breakdown of not-short-circuited hooks are:

    143 "leader-settings-changed"
     65 "leader-elected"
      1 "config-changed"
      1 "juju-info-relation-changed"

Haw Loeung (hloeung)
Changed in autocert-charm:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.