Bug#721905: augeas-lenses: sysctl.conf lens reads too many files in sysctl.d
Package: augeas-lenses Version: 1.0.0-1.1 Severity: normal Dear Maintainer, I use Augeas in my Puppet manifests to control the contents of sysctl.conf. After upgrading my workstation to jessie/testing I found I had a directory /etc/sysctl.d and Augeas reads all the files in it (I'm not sure which of these are new). This directory includes a file named README.sysctl which sysctl does not read according to sysctl.conf(5). That also fits with the content of that file which is plain English. Augeas however does and complains about its contents. Puppet logs messages like: Debug: Augeas[enable forwarding](provider=augeas): Opening augeas with root /, lens path , flags 32 Debug: Augeas[enable forwarding](provider=augeas): Augeas version 1.0.0 is installed Warning: Augeas[enable forwarding](provider=augeas): Loading failed for one or more files, see debug for /augeas//error output Debug: Augeas[enable forwarding](provider=augeas): /augeas/files/etc/sysctl.d/README.sysctl/error/pos = 0 Debug: Augeas[enable forwarding](provider=augeas): /augeas/files/etc/sysctl.d/README.sysctl/error/line = 1 Debug: Augeas[enable forwarding](provider=augeas): /augeas/files/etc/sysctl.d/README.sysctl/error/char = 0 Debug: Augeas[enable forwarding](provider=augeas): /augeas/files/etc/sysctl.d/README.sysctl/error/lens = /usr/share/augeas/lenses/dist/sysctl.aug:36.10-.52: Debug: Augeas[enable forwarding](provider=augeas): /augeas/files/etc/sysctl.d/README.sysctl/error/message = Iterated lens matched less than it should Debug: Augeas[enable forwarding](provider=augeas): Will attempt to save and only run if files changed Debug: Augeas[enable forwarding](provider=augeas): sending command 'set' with params [/files/etc/sysctl.conf/net.ipv4.ip_forward, 1] Debug: Augeas[enable forwarding](provider=augeas): Closed the augeas connection I expected the Augeas lens for sysctl.conf to ignore files not named *.conf in /etc/sysctl.d. Marking everything in README.sysctl in /etc/sysctl.d as comments with '#' works around the problem. Best regards /Ulrik Haugen -- System Information: Debian Release: jessie/sid APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 3.10-2-686-pae (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=sv_SE.ISO8859-1 (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/dash augeas-lenses depends on no packages. augeas-lenses recommends no packages. Versions of packages augeas-lenses suggests: ii augeas-doc 1.0.0-1.1 -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#721905: augeas-lenses: sysctl.conf lens reads too many files in sysctl.d
tags 721905 + fixed-upstream thanks On 05/09/13 10:01, Ulrik Haugen wrote: Package: augeas-lenses Version: 1.0.0-1.1 Severity: normal Dear Maintainer, I use Augeas in my Puppet manifests to control the contents of sysctl.conf. After upgrading my workstation to jessie/testing I found I had a directory /etc/sysctl.d and Augeas reads all the files in it (I'm not sure which of these are new). This directory includes a file named README.sysctl which sysctl does not read according to sysctl.conf(5). That also fits with the content of that file which is plain English. Augeas however does and complains about its contents. Puppet logs messages like: Debug: Augeas[enable forwarding](provider=augeas): Opening augeas with root /, lens path , flags 32 Debug: Augeas[enable forwarding](provider=augeas): Augeas version 1.0.0 is installed Warning: Augeas[enable forwarding](provider=augeas): Loading failed for one or more files, see debug for /augeas//error output Debug: Augeas[enable forwarding](provider=augeas): /augeas/files/etc/sysctl.d/README.sysctl/error/pos = 0 Debug: Augeas[enable forwarding](provider=augeas): /augeas/files/etc/sysctl.d/README.sysctl/error/line = 1 Debug: Augeas[enable forwarding](provider=augeas): /augeas/files/etc/sysctl.d/README.sysctl/error/char = 0 Debug: Augeas[enable forwarding](provider=augeas): /augeas/files/etc/sysctl.d/README.sysctl/error/lens = /usr/share/augeas/lenses/dist/sysctl.aug:36.10-.52: Debug: Augeas[enable forwarding](provider=augeas): /augeas/files/etc/sysctl.d/README.sysctl/error/message = Iterated lens matched less than it should Debug: Augeas[enable forwarding](provider=augeas): Will attempt to save and only run if files changed Debug: Augeas[enable forwarding](provider=augeas): sending command 'set' with params [/files/etc/sysctl.conf/net.ipv4.ip_forward, 1] Debug: Augeas[enable forwarding](provider=augeas): Closed the augeas connection I expected the Augeas lens for sysctl.conf to ignore files not named *.conf in /etc/sysctl.d. In Augeas 1.1.0, the README.sysctl file has been explicitly excluded: https://github.com/hercules-team/augeas/commit/ac49161fb185f2cd3b0ad257e76f45aa8462d082 Other distros (such as RHEL 6) load /etc/sysctl.d/* rather than *.conf, so we probably won't change this to *.conf upstream, perhaps until systemd (which only loads *.conf) is in standard use. -- Dominic Cleal Red Hat Engineering -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#721905: augeas-lenses: sysctl.conf lens reads too many files in sysctl.d
Fair enough, thank you very much! /Ulrik Haugen -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org