Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-1916

facter fails to parse routing table


    • Template:
      Complete Self-Paced Puppet Training
    • Team:
      Night's Watch
    • Story Points:
    • Sprint:
      PR - 2019-06-25, PR - 2019-07-10
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Previously, facter made the assumption that `ip route show` output has a key/value format. There are configurations for which this format is not applicable, causing facter to throw warnings. This assumption has been now removed.
    • QA Risk Assessment:
      Needs Assessment


      The facter module fails to parse entries from `ip show route` if the line has an even number of words but is not preceded with one of the known route types. The restriction to have an even number of words was added as part of FACT-1282 however its not clear from the bug report or the pull request why routes preceded with a route type should have an even number of words however normal entries don't.

      It seems that an assumption was made which assumed all entries emitted by `ip show route` are key value pairs however this is not the case as show by FACT-1394 and my current case which has an entry as follows (notice the option `mtu lock 1450`) via dev enx0050b6a21be3 mtu lock 1450

      We are also tracking this issue via https://phabricator.wikimedia.org/T222356





              • Assignee:
                gabriel.nagy Gabriel Nagy
                b4ldr john
              • Votes:
                0 Vote for this issue
                1 Start watching this issue


                • Created:

                  Zendesk Support