Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-7527

Augeas does not save changes to ifcfg-* on SLES

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: augeas_core
    • Labels:
    • Environment:

      OS: SLES 11

    • Template:
    • Team:
      Platform OS
    • UX Priority:
      Normal

      Description

      Using augeas to manage the file /etc/sysconfig/network/ifcfg-lo

      sudo-sh[root@sys-xxx-sles11vm11]# /opt/puppet/bin/augtool
      augtool> rm /files/etc/sysconfig/network/ifcfg-lo/IPADDR_2
      rm : /files/etc/sysconfig/network/ifcfg-lo/IPADDR_2 1
      augtool> save
      error: Failed to execute command
      saving failed (run 'print /augeas//error' for details)

      sles-10-x64:~ # augtool
      augtool> print /files/etc/sysconfig/network/ifcfg-lo
      /files/etc/sysconfig/network/ifcfg-lo
      /files/etc/sysconfig/network/ifcfg-lo/#comment = "Loopback (lo) configuration"
      /files/etc/sysconfig/network/ifcfg-lo/IPADDR = "127.0.0.1"
      /files/etc/sysconfig/network/ifcfg-lo/NETMASK = "255.0.0.0"
      /files/etc/sysconfig/network/ifcfg-lo/NETWORK = "127.0.0.0"
      /files/etc/sysconfig/network/ifcfg-lo/BROADCAST = "127.255.255.255"
      /files/etc/sysconfig/network/ifcfg-lo/IPADDR_2 = "127.0.0.2/8"
      /files/etc/sysconfig/network/ifcfg-lo/STARTMODE = "auto"
      /files/etc/sysconfig/network/ifcfg-lo/USERCONTROL = "no"
      /files/etc/sysconfig/network/ifcfg-lo/FIREWALL = "no"
      augtool> print /files/etc/sysconfig/network/ifcfg-lo/IPADDR_2
      /files/etc/sysconfig/network/ifcfg-lo/IPADDR_2 = "127.0.0.2/8"
      augtool> rm /files/etc/sysconfig/network/ifcfg-lo/IPADDR_2
      rm : /files/etc/sysconfig/network/ifcfg-lo/IPADDR_2 1
      augtool> save
      error: Failed to execute command
      saving failed (run 'print /augeas//error' for details)
      augtool>

      The workaround is as mentioned here:
      https://fedorahosted.org/augeas/ticket/141
      and the change is specifically to this (shellvars.aug)
      https://github.com/hercules-team/augeas/commit/d6959e6211dc25040c9dd6bf8d75605a3a6155a0

      Since augeas is bundled & installed as part of Puppet, we should be able to manage & pre-package the shellvars.aug file at least for SLES installs.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            anoop Anoop Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support