[augeas-devel] [Augeas] #141: Can't save /etc/sysconfig/network/ifcfg-* files

Augeas trac at fedorahosted.org
Fri Oct 8 14:54:26 UTC 2010


#141: Can't save /etc/sysconfig/network/ifcfg-* files
----------------------+-----------------------------------------------------
 Reporter:  gaferion  |       Owner:  lutter
     Type:  defect    |      Status:  new   
 Priority:  major     |   Milestone:  next  
Component:  Augeas    |     Version:  0.7.0 
 Keywords:            |  
----------------------+-----------------------------------------------------
 After editing a file in /etc/sysconfig/network/ifcfg-* and trying to save
 I receive a "Saving failed" message:

 {{{
 augtool
 augtool> ls /files/etc/sysconfig/network/ifcfg-bond0
 BOOTPROTO = 'static'
 IPADDR = '56.207.248.26'
 NETMASK = '255.255.254.0'
 STARTMODE = 'auto'
 TYPE = 'Ethernet'
 BONDING_MASTER = 'yes'
 BONDING_SLAVE0 = 'eth2'
 BONDING_SLAVE1 = 'eth8'
 BONDING_SLAVE2 = 'eth12'
 BONDING_SLAVE3 = 'eth14'
 BONDING_SLAVE4 = 'eth3'
 BONDING_SLAVE5 = 'eth9'
 BONDING_SLAVE6 = 'eth13'
 BONDING_SLAVE7 = 'eth15'
 BONDING_MODULE_OPTS = 'mode=4 miimon=100'
 augtool> set /files/etc/sysconfig/network/ifcfg-bond0/BOOTPROTO 123
 augtool> save
 Saving failed
 }}}

 The error report on this was:

 {{{
 augtool> ls /augeas/files/etc/sysconfig/network/
 ifcfg-bond0/ = (none)
 ifcfg-eth2/ = (none)
 ifcfg-lo/ = (none)
 ifcfg-eth8/ = (none)
 ifcfg-eth12/ = (none)
 ifcfg-eth14/ = (none)
 ifcfg-eth3/ = (none)
 ifcfg-eth9/ = (none)
 ifcfg-eth13/ = (none)
 ifcfg-eth15/ = (none)
 ifcfg-eth5/ = (none)
 ifcfg-bond10/ = (none)
 ifcfg-ib0/ = (none)
 ifcfg-ib2/ = (none)
 ifcfg-ib1/ = (none)
 path = /files/etc/sysconfig/network
 mtime = 0
 lens/ = @Shellvars
 error/ = put_read
 augtool> ls /augeas/files/etc/sysconfig/network/error/
 message = No such file or directory
 }}}

 I am able to fix this by removing line ' '''sc_incl "network" .''' ' from
 shellvars.aug lense.  This is OK for me since I'm using this on SLES 10
 SP3 and /etc/sysconfig/network config file does not exist.

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/141>
Augeas <http://augeas.net/>
a configuration API




More information about the augeas-devel mailing list