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

Default timeout for prtdiag in the 'virtual' fact is too low for large Solaris systems

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: FACT 2.4.2
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      Client 2015-03-18

      Description

      An issue with the prtdiag timeout that was addressed in a previous fix to facter seems to have been reverted, and the original fix of 12 seconds could still be too short for large Solaris systems. Consider increasing the timeout, or having it be a relative timeout.

      https://support.puppetlabs.com/requests/1765
      https://projects.puppetlabs.com/issues/18141

      The fix applied here:

      https://github.com/puppetlabs/facter/commit/d82f695a0f2b625a7719e4a07064a925dc11ed07

      Seems to have been dropped here:

      https://github.com/puppetlabs/facter/commit/1f835c682ab9a841c16cd73fe50033c82c6f89c0

      Trying the latest version of facter:

      root@its-gu-mph4:/export/home/e05593/facter-master # export RUBYLIB=`pwd`/lib
      root@its-gu-mph4:/export/home/e05593/facter-master # bin/facter --version
      2.4.1
      root@its-gu-mph4:/export/home/e05593/facter-master #

      root@its-gu-mph4:/export/home/e05593/facter-master # bin/facter > /dev/null
      Timed out after 6 seconds while resolving fact='virtual', resolution='<anonymous>'
      Broken Pipe

      Also, the original fix of 12 seconds seems to be cutting it a bit close, if you consider:

      root@its-gu-mph4:/export/home/e05593/facter-master # time prtdiag > /dev/null
      prtdiag > /dev/null 0.33s user 1.44s system 19% cpu 9.312 total
      root@its-gu-mph4:/export/home/e05593/facter-master #

      Perhaps 20 seconds would be safer for the prtdiag timeout.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  brook Brook Shelley
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Zendesk Support