Uploaded image for project: 'Puppet Agent'
  1. Puppet Agent
  2. PA-1921

many augeas lens don't work on solaris

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Template:
    • Team:
      Platform OS
    • QA Risk Assessment:
      Needs Assessment

      Description

      Overview

      Several augeas lenses do not work on Solaris 10 using public image from:

      http://download.oracle.com/otn/solaris/vm/Solaris10_1-13_VM.ova

      Files in error:

      • /etc/default/dhcpagent
      • /etc/default/tar
      • /etc/default/metassist.xml
      • /etc/cron.d/queuedefs
      • /etc/syslog.conf
      • /etc/nsswitch.conf
      • /grub/menu.lst

      Expected result

      Expected to be able to parse and process the files on solaris using puppet enterprise + augeas

      Actual result

      Error visible in augtool:

      /opt/puppetlabs/puppet/bin/augtool print /augeas//error 
      /augeas/files/etc/default/dhcpagent/error = "parse_failed"
      /augeas/files/etc/default/dhcpagent/error/pos = "4211"
      /augeas/files/etc/default/dhcpagent/error/line = "97"
      /augeas/files/etc/default/dhcpagent/error/char = "22"
      /augeas/files/etc/default/dhcpagent/error/lens = "/opt/puppetlabs/puppet/share/augeas/lenses/dist/shellvars.aug:194.12-.60:"
      /augeas/files/etc/default/dhcpagent/error/message = "Syntax error"/augeas/files/etc/default/tar/error = "parse_failed"
      /augeas/files/etc/default/tar/error/pos = "318"
      /augeas/files/etc/default/tar/error/line = "7"
      /augeas/files/etc/default/tar/error/char = "8"
      /augeas/files/etc/default/tar/error/lens = "/opt/puppetlabs/puppet/share/augeas/lenses/dist/shellvars.aug:194.12-.60:"
      /augeas/files/etc/default/tar/error/message = "Syntax error"
      /augeas/files/etc/default/metassist.xml/error = "parse_failed"
      /augeas/files/etc/default/metassist.xml/error/pos = "0"
      /augeas/files/etc/default/metassist.xml/error/line = "1"
      /augeas/files/etc/default/metassist.xml/error/char = "0"
      /augeas/files/etc/default/metassist.xml/error/lens = "/opt/puppetlabs/puppet/share/augeas/lenses/dist/shellvars.aug:194.12-.60:"
      /augeas/files/etc/default/metassist.xml/error/message = "Syntax error"
      /augeas/files/etc/cron.d/queuedefs/error = "parse_failed"
      /augeas/files/etc/cron.d/queuedefs/error/pos = "1"
      /augeas/files/etc/cron.d/queuedefs/error/line = "1"
      /augeas/files/etc/cron.d/queuedefs/error/char = "1"
      /augeas/files/etc/cron.d/queuedefs/error/lens = "/opt/puppetlabs/puppet/share/augeas/lenses/dist/cron.aug:141.10-.49:"
      /augeas/files/etc/cron.d/queuedefs/error/lens/last_matched = "/opt/puppetlabs/puppet/share/augeas/lenses/dist/cron.aug:80.4-.14:"
      /augeas/files/etc/cron.d/queuedefs/error/lens/next_not_matched = "/opt/puppetlabs/puppet/share/augeas/lenses/dist/util.aug:22.27-.34:"
      /augeas/files/etc/cron.d/queuedefs/error/message = "Iterated lens matched less than it should"
      /augeas/files/etc/syslog.conf/error = "parse_failed"
      /augeas/files/etc/syslog.conf/error/pos = "708"
      /augeas/files/etc/syslog.conf/error/line = "24"
      /augeas/files/etc/syslog.conf/error/char = "0"
      /augeas/files/etc/syslog.conf/error/lens = "/opt/puppetlabs/puppet/share/augeas/lenses/dist/syslog.aug:253.18-.51:"
      /augeas/files/etc/syslog.conf/error/message = "Get did not match entire input"
      /augeas/files/etc/nsswitch.conf/error = "parse_failed"
      /augeas/files/etc/nsswitch.conf/error/pos = "514"
      /augeas/files/etc/nsswitch.conf/error/line = "19"
      /augeas/files/etc/nsswitch.conf/error/char = "16"
      /augeas/files/etc/nsswitch.conf/error/lens = "/opt/puppetlabs/puppet/share/augeas/lenses/dist/nsswitch.aug:75.10-.41:"
      /augeas/files/etc/nsswitch.conf/error/lens/last_matched = "/opt/puppetlabs/puppet/share/augeas/lenses/dist/build.aug:59.43-.57:"
      /augeas/files/etc/nsswitch.conf/error/lens/next_not_matched = "/opt/puppetlabs/puppet/share/augeas/lenses/dist/util.aug:54.12-.31:"
      /augeas/files/etc/nsswitch.conf/error/message = "Iterated lens matched less than it should"
      /augeas/files/boot/grub/menu.lst/error = "parse_failed"
      /augeas/files/boot/grub/menu.lst/error/pos = "0"
      /augeas/files/boot/grub/menu.lst/error/line = "1"
      /augeas/files/boot/grub/menu.lst/error/char = "0"
      /augeas/files/boot/grub/menu.lst/error/lens = "/opt/puppetlabs/puppet/share/augeas/lenses/dist/grub.aug:285.14-286.43:"
      /augeas/files/boot/grub/menu.lst/error/message = "Get did not match entire input"
      

      Customer impact

      This is a real drag- Was hoping to be able to use augeas since customer relies heavily on editing files in-place rather then replacing them. I now how to figure out a way to do this using awk or something I guess

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                geoff.williams Geoff Williams
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support