Bug 726739

Summary: libguestfs: error: aug_get: no matching node, trying to find hostname
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: mbooth, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-29 16:39:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard W.M. Jones 2011-07-29 16:33:38 UTC
Description of problem:

is_file "/etc/sysconfig/network" = 1
filesize "/etc/sysconfig/network" = 34
aug_init "/" 48 = 0
aug_rm "/augeas/load//incl[. != "/etc/sysconfig/network"]" = 0
aug_load = 0
aug_get "/files/etc/sysconfig/network/HOSTNAME" = NULL (error)
libguestfs: error: aug_get: no matching node

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

libguestfs 1.8.8
inspecting CentOS 5.5 guest

The problem is that the /etc/sysconfig/network file does
not contain the expected HOSTNAME entry.  This should not
cause inspection to fail.