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

AIX kernel resovler redirects stderr to stdout, which breaks facts on OS errors

    XMLWordPrintable

Details

    • Hide

      Errors reported by fact-resolving commands don't break fact resolution.

      Show
      Errors reported by fact-resolving commands don't break fact resolution.
    • Night's Watch
    • 3
    • NW - 2020-04-15, NW - 2020-04-29
    • Customer Feedback
    • Bug Fix
    • when `oslevel -s` command is executed on AIX, redirect `stderr` to `/dev/null` as sometimes output is shown on `stderr` and the `kernel` fact gets broken.
    • Needs Assessment

    Description

      PE version: Reported on 2016.4.10 but present in all versions of PE
      Facter version: Reported on 3.6.9 but present in all versions of facter

      The AIX kernel resolver fact runs oslevel -s  and redirects stderr to stdout. If oslevel produces an error, this behavior breaks kernel facts.

      This in turn breaks kernel fact resolution with no workaround.

      There's no documented reason why stderr needs to be redirected to stdout here.

       

      Attachments

        Activity

          People

            ciprian.badescu Ciprian Badescu
            ciprian.badescu Ciprian Badescu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support