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

Augeas fails to parse /etc/iproute2/README & /usr/share/iproute2/

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-10.1
    • augeas
    • None
    • No
    • None
    • rhel-virt-tools
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

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

      Augeas fails to parse /etc/iproute2/README & /usr/share/iproute2/

      What is the impact of this issue to you?

      Test case fail

      Please provide the package NVR for which the bug is seen:

      augeas-1.14.2-0.3.20250224git6ee1282.el10.x86_64

      iproute-6.14.0-2.el10

      How reproducible is this bug?: 100%

      Steps to reproduce

      1. Print augeas error , there is iproute2 related:

       

      # augtool print /augeas//error | grep iproute
      /augeas/files/etc/iproute2/README/error = "parse_failed"
      /augeas/files/etc/iproute2/README/error/pos = "0"
      /augeas/files/etc/iproute2/README/error/line = "1"
      /augeas/files/etc/iproute2/README/error/char = "0"
      /augeas/files/etc/iproute2/README/error/lens = "/usr/share/augeas/lenses/dist/iproute2.aug:8.12-.47:"
      /augeas/files/etc/iproute2/README/error/lens/last_matched = "/usr/share/augeas/lenses/dist/util.aug:83.6-.22:"
      /augeas/files/etc/iproute2/README/error/message = "Iterated lens matched less than it should"
      # cat /etc/iproute2/README
      You are looking for your iproute2 config in /etc/iproute2 and it's gone?
      Here's an explanation on what's going on:
      From v6.5.0, iproute2 supports stateless configuration pattern. This
      means that iproute2 now read its config from /etc/iproute2/FOO, and,
      if it does not exist, fall back to /usr/share/iproute2/FOO.
      You can find iproute2 default configuration in /usr/share/iproute2,
      while you can store your user-modified config files in /etc/iproute2.
      /usr/share/iproute2 files are not supposed to be manually modified.
      If a previous update broke your user config for iproute2, you may
      have one or more ".rpmsave" files in /etc/iproute2. You can restore
      your config simply dropping the ".rpmsave" suffix from the file name.
      

       

      2. It can not parse  /usr/share/iproute2 too:

      # augtool print /files/usr/share/iproute2/

      There is no /usr/share/iproute2/ related rules in "/usr/share/augeas/lenses/dist/iproute2.aug"

      Expected results

      It should be able to parse  /etc/iproute2/README & /usr/share/iproute2/

      Actual results

              twiederh-1 Tim Wiederhake
              xchen@redhat.com Xiang Hua Chen
              virt-maint virt-maint
              virt-bugs virt-bugs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: