resetting cronjob configuration from manually set schedule

Bug #2016659 reported by Tianqi Xiao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
logrotate-charm
Fix Released
Undecided
Martin Kalcok

Bug Description

Currently, after customizing cronjob schedule with "set" or "random" keyword in `update-cron-daily-schedule` config option, there's no charm-level operation to bring the value back to default. Changing the config value to "unset" has no effect in this case. This is not the expected behavior.

To resolve this issue, the most obvious way is to implement logic for updating cronjob schedule when the config value is "unset" during config-changed hook. Alternatively, if, for any reason, the previously mentioned method is impossible, we could consider adding an action for resetting the schedule.

Tags: bseng-1096

Related branches

Changed in charm-logrotated:
status: New → Triaged
Tianqi Xiao (txiao)
tags: added: bseng-1096
Changed in charm-logrotated:
assignee: nobody → Martin Kalcok (martin-kalcok)
status: Triaged → In Progress
Changed in charm-logrotated:
status: In Progress → Fix Committed
Chi Wai CHAN (raychan96)
Changed in charm-logrotated:
milestone: none → 23.07
Chi Wai CHAN (raychan96)
Changed in charm-logrotated:
status: Fix Committed → Fix Released
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.