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

[augeas][RHEL-10] augeas fails to parse /usr/lib/tmpfiles.d/systemd.conf file

    • augeas-1.14.2-0.3.20250224git6ee1282.el10
    • No
    • Low
    • rhel-sst-virt-tools
    • ssg_virtualization
    • None
    • QE ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      augeas fails to parse /usr/lib/tmpfiles.d/systemd.conf file.

      Please provide the package NVR for which bug is seen:

      augeas-1.14.2-0.2.20240909git2de06e0.el10.x86_64

      systemd-257-3.el10.x86_64

      How reproducible:

      100%

      Steps to reproduce

      1. on rhel10.0 hots

      # cat /usr/lib/tmpfiles.d/systemd.conf
      ... ... 
      d$ /run/systemd/seats 0755 root root -
      d$ /run/systemd/sessions 0755 root root -
      d$ /run/systemd/users 0755 root root -
      d /run/systemd/machines 0755 root root -
      d$ /run/systemd/shutdown 0755 root root -
      ... ... 
      2. # augtool print /augeas//error | grep systemd.conf
      /augeas/files/usr/lib/tmpfiles.d/systemd.conf/error = "parse_failed"
      /augeas/files/usr/lib/tmpfiles.d/systemd.conf/error/pos = "433"
      /augeas/files/usr/lib/tmpfiles.d/systemd.conf/error/line = "14"
      /augeas/files/usr/lib/tmpfiles.d/systemd.conf/error/char = "1"
      /augeas/files/usr/lib/tmpfiles.d/systemd.conf/error/lens = "/usr/share/augeas/lenses/dist/tmpfiles.aug:97.12-.42:"
      /augeas/files/usr/lib/tmpfiles.d/systemd.conf/error/lens/last_matched = "/usr/share/augeas/lenses/dist/tmpfiles.aug:81.19-.48:"
      /augeas/files/usr/lib/tmpfiles.d/systemd.conf/error/lens/next_not_matched = "/usr/share/augeas/lenses/dist/sep.aug:31.12-.28:"
      /augeas/files/usr/lib/tmpfiles.d/systemd.conf/error/message = "Iterated lens matched less than it should"

      Expected results

      augeas can parse systemd.conf file.

       
      Actual results
      Can not parse systemd.conf
      Same problem with /usr/lib/tmpfiles.d/20-systemd-shell-extra.conf.

              virt-maint virt-maint
              xchen@redhat.com Xiang Hua Chen
              virt-maint virt-maint
              Xiang Hua Chen Xiang Hua Chen
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: