Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1003685

Summary: augtool fails to run in RHEL 7
Product: Red Hat Enterprise Linux 7 Reporter: Richard W.M. Jones <rjones>
Component: libvirtAssignee: Michal Privoznik <mprivozn>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: acathrow, bfan, cwei, dallan, dcleal, dyuan, leiwang, lsu, sassmann
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libvirt-1.1.1-4.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 10:58:58 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:
Bug Depends On:    
Bug Blocks: 910269, 1003291    
Attachments:
Description Flags
fix virtlockd augeas lens test none

Description Richard W.M. Jones 2013-09-02 18:08:34 UTC
Description of problem:

$ augtool 
Failed to initialize Augeas
error: Syntax error in lens definition
/usr/share/augeas/lenses/virtlockd.aug:3.0-.6:The module Libvirtd must be in a file named libvirtd.aug

Version-Release number of selected component (if applicable):

augeas-1.1.0-2.el7.x86_64

How reproducible:

100%

Steps to Reproduce:
1. Install augeas.
2. Run 'augtool' command with no arguments.
3.

Actual results:

See above.

Expected results:

Should enter the shell.

Additional info:

Comment 1 Richard W.M. Jones 2013-09-02 18:13:33 UTC
Dominic points out this is a libvirt bug.  The following
patch should be backported:

http://libvirt.org/git/?p=libvirt.git;a=commitdiff;h=3e32544

I have libvirt-daemon-1.1.1-3.el7.x86_64

Comment 2 Dominic Cleal 2013-09-02 18:15:10 UTC
It looks like the test file wasn't updated in 3e32544 either.  Upstream it's still referring to Libvirtd.lns:

http://libvirt.org/git/?p=libvirt.git;a=blob;f=src/locking/test_virtlockd.aug.in;h=dcd47c38b600c753f9bede652f45ff2eb95bb9ec;hb=HEAD

Comment 3 Michal Privoznik 2013-09-03 14:18:53 UTC
(In reply to Dominic Cleal from comment #2)
> It looks like the test file wasn't updated in 3e32544 either.  Upstream it's
> still referring to Libvirtd.lns:
> 
> http://libvirt.org/git/?p=libvirt.git;a=blob;f=src/locking/test_virtlockd.
> aug.in;h=dcd47c38b600c753f9bede652f45ff2eb95bb9ec;hb=HEAD

And what should it be referring to?

Comment 4 Dominic Cleal 2013-09-03 14:24:59 UTC
Created attachment 793226 [details]
fix virtlockd augeas lens test

It should refer to Virtlockd.lns, which is the name of the module + lens in virtlockd.aug.

A quick test with augparse shows the Virtlockd module appears to pass the test still:
$ cp src/locking/test_virtlockd.aug{.in,}
$ augparse -I src/locking src/locking/test_virtlockd.aug
[ no output ]

Comment 6 Richard W.M. Jones 2013-09-04 09:25:30 UTC
*** Bug 1004162 has been marked as a duplicate of this bug. ***

Comment 7 Richard W.M. Jones 2013-09-05 21:10:04 UTC
Can we please fix this ASAP since it stops any builds of libguestfs.
Plus from Monday all bugs need 3 acks.

Comment 8 Luwen Su 2013-09-10 06:05:56 UTC
With
libvirt-1.1.1-4.el7.x86_64
augeas-1.1.0-2.el7.x86_64

# augtool
augtool> 

No error in log , so Verify this bug and clear the NEEDINFO.

Comment 9 Richard W.M. Jones 2013-09-10 16:08:13 UTC
*** Bug 1006358 has been marked as a duplicate of this bug. ***

Comment 10 Richard W.M. Jones 2013-09-13 13:52:47 UTC
Also works for me with libguestfs.

Comment 11 Ludek Smid 2014-06-13 10:58:58 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.