Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-752

augeas fails to parse /etc/rsyslog.d/21-cloudinit.conf file

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Normal Normal
    • None
    • rhel-9.2.0
    • augeas
    • None
    • Moderate
    • rhel-sst-virtualization
    • ssg_virtualization
    • 5
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:
      augeas fails to parse /etc/rsyslog.d/21-cloudinit.conf file after the cloud-init package is installed.

      $ cat /etc/rsyslog.d/21-cloudinit.conf

      1. Log cloudinit generated log messages to file
        :syslogtag, isequal, "[CLOUDINIT]" /var/log/cloud-init.log
      1. comment out the following line to allow CLOUDINIT messages through.
      2. Doing so means you'll also get CLOUDINIT messages in /var/log/syslog
        & stop

      Version-Release number of selected component (if applicable):
      augeas-1.13.0-3.el9.x86_64
      cloud-init-22.1-6.el9.noarch
      kernel-5.14.0-217.el9.x86_64

      How reproducible:
      100%

      Steps:

      1. On rhel9.2 host (make sure the cloud-init package is installed)
      $ augtool print /files/etc/rsyslog.d/21-cloudinit.conf
      No output

      2.
      $ augtool print /augeas//error | grep 21-cloudinit.conf
      /augeas/files/etc/rsyslog.d/21-cloudinit.conf/error = "parse_failed"
      /augeas/files/etc/rsyslog.d/21-cloudinit.conf/error/pos = "248"
      /augeas/files/etc/rsyslog.d/21-cloudinit.conf/error/line = "6"
      /augeas/files/etc/rsyslog.d/21-cloudinit.conf/error/char = "0"
      /augeas/files/etc/rsyslog.d/21-cloudinit.conf/error/lens = "/usr/share/augeas/lenses/dist/rsyslog.aug:92.10-.43:"
      /augeas/files/etc/rsyslog.d/21-cloudinit.conf/error/message = "Get did not match entire input"

      Actual results:
      As above

      Expected results:
      augeas can parse /etc/rsyslog.d/21-cloudinit.conf file.

      Additional info:

              virt-maint virt-maint
              yoguo@redhat.com Yongkui Guo
              virt-maint virt-maint
              Yongkui Guo Yongkui Guo
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: