Hide Forgot
Description of problem: augeas contains a lens for chrony.conf that will fail to parse negative values for makestep. This is fixed here: https://github.com/hercules-team/augeas/commit/664f8a8d690f3cfac2d3a8b44834d809e15b51ed The bug is to, if possible, backport it Version-Release number of selected component (if applicable): 1.4.0-2.el7 How reproducible: Steps to Reproduce: 1. change chrony.conf from 'makestep 10 3' to 'makestep 10 -1' 2. run augtool, print /files/etc/chrony.conf 3. Actual results: augeas fails to parse the config file Expected results: should parse the config file with negative values Additional info:
Verified with packages: augeas-1.4.0-4.el7.x86_64 libguestfs-1.36.3-6.el7_4.3.x86_64 Steps: 1. Modified the makestep line with negative value in /etc/chrony.conf as follows: "makestep 1.0 -3" 2. #augtool augtool> print /files/etc/chrony.conf -------------------------------------------------------------- /files/etc/chrony.conf /files/etc/chrony.conf/#comment[1] = "These servers were defined in the installation:" /files/etc/chrony.conf/server[1] = "ns1.nay.redhat.com" /files/etc/chrony.conf/server[1]/iburst /files/etc/chrony.conf/server[2] = "clock01.util.phx2.redhat.com" /files/etc/chrony.conf/server[2]/iburst /files/etc/chrony.conf/server[3] = "lanczos.maths.tcd.ie" /files/etc/chrony.conf/server[3]/iburst /files/etc/chrony.conf/#comment[2] = "Use public servers from the pool.ntp.org project." /files/etc/chrony.conf/#comment[3] = "Please consider joining the pool (http://www.pool.ntp.org/join.html)." /files/etc/chrony.conf/#comment[4] = "Record the rate at which the system clock gains/losses time." /files/etc/chrony.conf/driftfile = "/var/lib/chrony/drift" /files/etc/chrony.conf/#comment[5] = "Allow the system clock to be stepped in the first three updates" /files/etc/chrony.conf/#comment[6] = "if its offset is larger than 1 second." /files/etc/chrony.conf/makestep /files/etc/chrony.conf/makestep/threshold = "1.0" /files/etc/chrony.conf/makestep/limit = "-3" ... -------------------------------------------------------------- So augeas can parse /etc/chrony.conf correctly. Verified this bug.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:0684