Bug 1199146

Summary: chrony config fails to parse with "measurements" option
Product: Red Hat Enterprise Linux 7 Reporter: Pat Riehecky <riehecky>
Component: augeasAssignee: Dominic Cleal <dcleal>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.1CC: huzhan, jesmineeva0, leiwang, wshi, xchen
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: augeas-1.4.0-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 10:19:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pat Riehecky 2015-03-05 14:16:46 UTC
Description of problem:
The most recent upstream chrony lense contains a bugfix which resolves an issue parsing log options

Version-Release number of selected component (if applicable):augeas-1.1.0-17.el7


How reproducible:100%


Steps to Reproduce:
1.add measurements to the chrony logging line
2.attempt to parse file with augeas
3.

Actual results:
parse fails

Expected results:
can parse valid options

Additional info:
https://github.com/hercules-team/augeas/commit/92f87380903873372a11d6dfbc37711c87717cc5

Comment 3 Xianghua Chen 2015-09-16 03:13:43 UTC
Verified with the package:
augeas-1.4.0-2.el7.x86_64

Verify steps:
1. add measurements to the chrony logging line:
[root@rhel7libguestfs test]# cat /etc/chrony.conf 
# These servers were defined in the installation:
server clock.util.phx2.redhat.com iburst
server clock02.util.phx2.redhat.com iburst
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).

# 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

2. parse file with augeas:
[root@rhel7libguestfs test]# augtool print /augeas/files/etc/chrony.conf
/augeas/files/etc/chrony.conf
/augeas/files/etc/chrony.conf/path = "/files/etc/chrony.conf"
/augeas/files/etc/chrony.conf/mtime = "1442372238"
/augeas/files/etc/chrony.conf/lens = "@Chrony"
/augeas/files/etc/chrony.conf/lens/info = "/usr/share/augeas/lenses/dist/chrony.aug:258.10-.41:"
[root@rhel7libguestfs test]# 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] = "clock.util.phx2.redhat.com"
/files/etc/chrony.conf/server[1]/iburst
/files/etc/chrony.conf/server[2] = "clock02.util.phx2.redhat.com"
/files/etc/chrony.conf/server[2]/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] = "Ignore stratum in source selection."
/files/etc/chrony.conf/stratumweight = "0"
/files/etc/chrony.conf/#comment[5] = "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[6] = "Enable kernel RTC synchronization."
/files/etc/chrony.conf/rtcsync
/files/etc/chrony.conf/#comment[7] = "In first three updates step the system clock instead of slew"
/files/etc/chrony.conf/#comment[8] = "if the adjustment is larger than 10 seconds."
/files/etc/chrony.conf/makestep
/files/etc/chrony.conf/makestep/threshold = "10"
/files/etc/chrony.conf/makestep/limit = "3"
/files/etc/chrony.conf/#comment[9] = "Allow NTP client access from local network."
/files/etc/chrony.conf/#comment[10] = "allow 192.168/16"
/files/etc/chrony.conf/#comment[11] = "Listen for commands only on localhost."
/files/etc/chrony.conf/bindcmdaddress[1] = "127.0.0.1"
/files/etc/chrony.conf/bindcmdaddress[2] = "::1"
/files/etc/chrony.conf/#comment[12] = "Serve time even if not synchronized to any NTP server."
/files/etc/chrony.conf/#comment[13] = "local stratum 10"
/files/etc/chrony.conf/keyfile = "/etc/chrony.keys"
/files/etc/chrony.conf/#comment[14] = "Specify the key used as password for chronyc."
/files/etc/chrony.conf/commandkey = "1"
/files/etc/chrony.conf/#comment[15] = "Generate command key if missing."
/files/etc/chrony.conf/generatecommandkey
/files/etc/chrony.conf/#comment[16] = "Disable logging of client accesses."
/files/etc/chrony.conf/noclientlog
/files/etc/chrony.conf/#comment[17] = "Send a message to syslog if a clock adjustment is larger than 0.5 seconds."
/files/etc/chrony.conf/logchange = "0.5"
/files/etc/chrony.conf/logdir = "/var/log/chrony"
/files/etc/chrony.conf/log
/files/etc/chrony.conf/log/measurements
/files/etc/chrony.conf/log/statistics
/files/etc/chrony.conf/log/tracking


No parse errors. So verified.

Comment 4 errata-xmlrpc 2015-11-19 10:19:03 UTC
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://rhn.redhat.com/errata/RHEA-2015-2153.html

Comment 5 jesmine eva 2023-03-02 11:45:17 UTC
I read your blog and learned a lot from it, I was looking for such a blog, and many thanks for sharing this information.
Visit US:- https://www.rananjayexports.com/gemstones/green-tourmaline-quartz-jewelry