Bug 1213292

Summary: Augeas can not parse default /etc/logrotate.d/dnf and /etc/logrotate.d/yum
Product: [Fedora] Fedora Reporter: Lingfei Kong <lkong>
Component: augeasAssignee: Dominic Cleal <dcleal>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 22CC: apevec, dcleal, huzhan, leiwang, lutter, mbooth, wshi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: augeas-1.4.0-1.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-14 17:32:09 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:
Attachments:
Description Flags
/etc/logrotate.d/dnf
none
/etc/logrotate.d/yum none

Description Lingfei Kong 2015-04-20 09:31:30 UTC
Description of problem:
Augeas can not parse default /etc/logrotate.d/dnf and /etc/logrotate.d/yum


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:
dnf-conf-0.6.4-2.fc22.noarch
yum-3.4.3-155.fc22.noarch

2. Run command: echo 'print /augeas//error' | augtool
# augtool print /augeas//error


Actual results:
# augtool print /augeas//error
...
/augeas/files/etc/logrotate.d/dnf/error = "parse_failed"
/augeas/files/etc/logrotate.d/dnf/error/pos = "0"
/augeas/files/etc/logrotate.d/dnf/error/line = "1"
/augeas/files/etc/logrotate.d/dnf/error/char = "0"
/augeas/files/etc/logrotate.d/dnf/error/lens = "/usr/share/augeas/lenses/dist/logrotate.aug:117.13-.56:"
/augeas/files/etc/logrotate.d/dnf/error/message = "Iterated lens matched less than it should"
/augeas/files/etc/logrotate.d/yum/error = "parse_failed"
/augeas/files/etc/logrotate.d/yum/error/pos = "0"
/augeas/files/etc/logrotate.d/yum/error/line = "1"
/augeas/files/etc/logrotate.d/yum/error/char = "0"
/augeas/files/etc/logrotate.d/yum/error/lens = "/usr/share/augeas/lenses/dist/logrotate.aug:117.13-.56:"
/augeas/files/etc/logrotate.d/yum/error/message = "Iterated lens matched less than it should"

...


Expected results:
No errors

Additional info:
The attachment are file /etc/logrotate.d/dnf and /etc/logrotate.d/yum

Comment 1 Lingfei Kong 2015-04-20 09:32:00 UTC
Created attachment 1016271 [details]
/etc/logrotate.d/dnf

Comment 2 Lingfei Kong 2015-04-20 09:32:17 UTC
Created attachment 1016272 [details]
/etc/logrotate.d/yum

Comment 3 Dominic Cleal 2015-04-20 11:55:43 UTC
Fixed in 2c1e74d for 1.4.0.

Comment 5 Fedora Update System 2015-06-02 08:45:57 UTC
augeas-1.4.0-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/augeas-1.4.0-1.fc22

Comment 6 Fedora Update System 2015-06-04 20:18:38 UTC
Package augeas-1.4.0-1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing augeas-1.4.0-1.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-9397/augeas-1.4.0-1.fc22
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2015-06-14 17:32:09 UTC
augeas-1.4.0-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.