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

    • Template:
    • Acceptance Criteria:
      Hide

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

      Show
      Errors reported by fact-resolving commands don't break fact resolution.
    • Team:
      Night's Watch
    • Story Points:
      3
    • Sprint:
      NW - 2020-04-15, NW - 2020-04-29
    • Method Found:
      Customer Feedback
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      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.
    • QA Risk Assessment:
      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

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

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support