Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: Augeas can not parse default /etc/chrony.conf Version-Release number of selected component (if applicable): augeas-1.3.0-1.fc22.x86_64 How reproducible: 100% Steps to Reproduce: 1. Install the following packages: chrony-2.0-0.2.pre1.fc22.x86_64 2. Run command: echo 'print /augeas//error' | augtool # augtool print /augeas//error Actual results: # augtool print /augeas//error ... /augeas/files/etc/chrony.conf/error = "parse_failed" /augeas/files/etc/chrony.conf/error/pos = "258" /augeas/files/etc/chrony.conf/error/line = "6" /augeas/files/etc/chrony.conf/error/char = "0" /augeas/files/etc/chrony.conf/error/lens = "/usr/share/augeas/lenses/dist/chrony.aug:258.10-.41:" /augeas/files/etc/chrony.conf/error/message = "Iterated lens matched less than it should" ... Expected results: no errors Additional info: The attachment is file /etc/chrony.conf
Created attachment 1016267 [details] /etc/chrony.conf
Example /etc/chrony.conf from my laptop: # Use public servers from the pool.ntp.org project. # Please consider joining the pool (http://www.pool.ntp.org/join.html). server 0.fedora.pool.ntp.org iburst server 1.fedora.pool.ntp.org iburst server 2.fedora.pool.ntp.org iburst server 3.fedora.pool.ntp.org iburst # Ignore stratum in source selection. stratumweight 0 # Record the rate at which the system clock gains/losses time. driftfile /var/lib/chrony/drift # Enable kernel RTC synchronization. rtcsync # In first three updates step the system clock instead of slew # if the adjustment is larger than 10 seconds. makestep 10 3 # Allow NTP client access from local network. #allow 192.168/16 # Listen for commands only on localhost. bindcmdaddress 127.0.0.1 bindcmdaddress ::1 # Serve time even if not synchronized to any NTP server. #local stratum 10 keyfile /etc/chrony.keys # Specify the key used as password for chronyc. commandkey 1 # Generate command key if missing. generatecommandkey # Disable logging of client accesses. noclientlog # Send a message to syslog if a clock adjustment is larger than 0.5 seconds. logchange 0.5 logdir /var/log/chrony #log measurements statistics tracking
A new 'pool' directive is causing the issue, it's new in chrony 2.0.0 (pre-release is in F22+). It should be handled in the same way as 'server'. The NEWS file lists the following other changes: * Add pool directive to specify pool of NTP servers * Add leapsecmode directive to select how to correct clock for leap second * Add smoothtime directive to smooth served time and enable leap smear * Add minsources directive to set required number of selectable sources * Add minsamples and maxsamples options for all sources * Add tempcomp configuration with list of points
Here is a pull request to update the chrony lens for the new options that appeared in chrony-2.0. https://github.com/hercules-team/augeas/pull/248
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions
augeas-1.5.0-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-6d219bc220
augeas-1.5.0-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-6f9ff7cf96
This will be addressed in F23 and higher via the above updates.
augeas-1.5.0-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-6f9ff7cf96
augeas-1.5.0-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-6d219bc220
augeas-1.5.0-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
augeas-1.5.0-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.