chronyd crash loop if Debian server is rebooted

This patch fixes the constant chrony container crash loop after (Debian 10) server is rebooted,
as described in Bug-ID: #1915528.

Due to permissions issue, before this fix is applied chronyd process will be exiting with
root cause error message:

Fatal error : Could not open configuration file /etc/chrony/chrony.conf : Permission denied
This has to do with priviledges we configured for chrony. Relaxing them fixes the issue.
Tested on top of stable/victoria and Debian 10 Buster.

Not tested on CentOS/RHEL. If this does not work well on RHEL/CentOS we can maybe parametrise
the owner and make it configurable (just one idea).

Closes-Bug: #1915528
Change-Id: I71f45ba5b9d1d2227c95633d3de51e2ccd42a467
This commit is contained in:
Ana Peric 2021-02-17 20:09:45 +01:00
parent f00cd7b55f
commit 21ccae12f7
2 changed files with 7 additions and 2 deletions

View File

@ -4,8 +4,8 @@
{
"source": "{{ container_config_directory }}/chrony.conf",
"dest": "/etc/chrony/chrony.conf",
"owner": "chrony",
"perm": "0600"
"owner": "root",
"perm": "0644"
}
],
"permissions": [

View File

@ -0,0 +1,5 @@
---
fixes:
- |
chronyd crash loop if server is rebooted (Debian)
`LP#1915528 <https://launchpad.net/bugs/1915528>`__