random setting for update-cron-daily-schedule config does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
logrotate-charm |
New
|
Undecided
|
Ashley James |
Bug Description
The `random` setting for `update-
After checking the MP where the feature was introduced[3], it looks like this man page [4] was consulted to implement the random feature. But this feature is not implemented yet in the cron package for Ubuntu. So, some custom code needs to be written that would take START_HOUR,
Therefore the implementation of the random feature needs to be fixed and this bug [5] has not been resolved yet.
[1]: https:/
[2]: https:/
[3]: https:/
[4]: https:/
[5]: https:/
Related branches
- 🤖 prod-jenkaas-bootstack (community): Approve (continuous-integration)
- Eric Chen: Approve
- JamesLin: Approve
- BootStack Reviewers: Pending requested
-
Diff: 421 lines (+190/-58)4 files modifiedsrc/config.yaml (+5/-2)
src/lib/lib_cron.py (+77/-34)
src/tests/unit/conftest.py (+2/-7)
src/tests/unit/test_logrotate.py (+106/-15)
tags: | added: bseng-1224 |
Changed in charm-logrotated: | |
assignee: | nobody → Ashley James (dashmage) |