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

Facter.rb is swallowing useful exception details when failing to load libfacter

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: FACT 3.6.9, FACT 3.9.z, FACT 3.10.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Acceptance Criteria:
      • The style of raise used should preserve existing exception / backtrace in the new exception
    • Team:
      Windows
    • Sprint:
      Windows Kanban
    • Release Notes:
      Not Needed
    • QA Risk Assessment:
      Needs Assessment

      Description

      When the facter.rb shim fails to load libfacter, it raises a LoadError at https://github.com/puppetlabs/facter/blob/34e811fd856423267166981ec8f38d761cef9c17/lib/facter.rb.in#L42

      However, it swallows the existing exception, including its backtrace. This information would be useful to have for debugging purposes, but is completely lost. PA-1831 is a recent case where the libfacter was not found error message has obscured vital information. Google searching also yields similar results - a handful of different problems are causing this error (for instance having locale settings incorrect).

        Attachments

          Activity

            People

            Assignee:
            ethan Ethan Brown
            Reporter:
            ethan Ethan Brown
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support