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

no resolver for external facts file error for os-specific facts

    XMLWordPrintable

Details

    • Night's Watch
    • 1
    • NW - 2020-04-01
    • Needs Assessment
    • 38956
    • 1
    • Bug Fix
    • Hide
      Before this fix, for each external facts file from user specified external facts directory that was not resolved a warning was logged. As it is usual to have, for example, external facts files for different OSs in the same directory, this will lead to not useful warnings on Windows that Linux facts cannot be resolved and the other way around.

      The fix lowers the severity of the logged messages to debug.
      Show
      Before this fix, for each external facts file from user specified external facts directory that was not resolved a warning was logged. As it is usual to have, for example, external facts files for different OSs in the same directory, this will lead to not useful warnings on Windows that Linux facts cannot be resolved and the other way around. The fix lowers the severity of the logged messages to debug.
    • Needs Assessment

    Description

      Puppet: 6.14
      Facter: 3.14.9
      OS: Linux and Windows

      After upgrading to PE 2019.5 which includes Facter 3.14.9, puppet runs throw errors when attempting to resolve os-specific facts on the "wrong" os.

      PS C:\WINDOWS\system32> puppet agent -t
      Info: Using configured environment 'development'
      Info: Retrieving pluginfacts
      Info: Retrieving plugin
      Info: Retrieving locales
      Info: Loading facts
      puppet : Warning: Facter: skipping file "C:/ProgramData/PuppetLabs/puppet/cache/facts.d\example.cfg.sh": No resolver for external facts file
      C:/ProgramData/PuppetLabs/puppet/cache/facts.d\example.cfg.sh
      At line:1 char:1
      + puppet agent -t
      + ~~~~~~~~~~~~~~~
      + CategoryInfo : NotSpecified: (Warning:...example.cfg.sh:String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
       
      Warning: Facter: skipping file "C:/ProgramData/PuppetLabs/puppet/cache/facts.d\el8_example.cfg.sh": No resolver for external facts file
      C:/ProgramData/PuppetLabs/puppet/cache/facts.d\el8_example.cfg.sh
      Warning: Facter: skipping file "C:/ProgramData/PuppetLabs/puppet/cache/facts.d\el8_misc_example_custom_facts.sh": No resolver for external facts file
      C:/ProgramData/PuppetLabs/puppet/cache/facts.d\el8_misc_example_custom_facts.sh
      Warning: Facter: skipping file "C:/ProgramData/PuppetLabs/puppet/cache/facts.d\el8_random_config_files_exist.sh": No resolver for external facts file
      C:/ProgramData/PuppetLabs/puppet/cache/facts.d\el8_random_config_files_exist.sh
      Warning: Facter: skipping file "C:/ProgramData/PuppetLabs/puppet/cache/facts.d\misc_linux_example_custom_facts.sh": No resolver for external facts file
      C:/ProgramData/PuppetLabs/puppet/cache/facts.d\misc_linux_example_custom_facts.sh
      Warning: Facter: skipping file "C:/ProgramData/PuppetLabs/puppet/cache/facts.d\random_config_files_exist.sh": No resolver for external facts file
      C:/ProgramData/PuppetLabs/puppet/cache/facts.d\random_config_files_exist.sh
      Warning: Facter: skipping file "C:/ProgramData/PuppetLabs/puppet/cache/facts.d\vas_enabled.sh": No resolver for external facts file
      C:/ProgramData/PuppetLabs/puppet/cache/facts.d\vas_enabled.sh
      Error: Facter: error while resolving custom fact "wintel_flexera_version": The system cannot find the file specified.
      Info: Caching catalog for zzzwin16.amer.example.com
      Info: Applying configuration version '4cf8238e4'
      Info: 'DEVELOPMENT' compile master 'agent.example.com'
      Notice: Applied catalog in 0.06 seconds
      

      [root@pe-201950-master ~]# puppet agent -t
      Info: Using configured environment 'production'
      Info: Retrieving pluginfacts
      Info: Retrieving plugin
      Info: Retrieving locales
      Info: Loading facts
      Warning: Facter: skipping file "/opt/puppetlabs/puppet/cache/facts.d/smbinstalled.ps1": No resolver for external facts file /opt/puppetlabs/puppet/cache/facts.d/smbinstalled.ps1
      Info: Caching catalog for pe-201950-master.example.com
      Info: Applying configuration version '1585065354'
      Notice: Applied catalog in 46.46 seconds
      

      Attachments

        Issue Links

          Activity

            People

              ciprian.badescu Ciprian Badescu
              tom.kishel Thomas Kishel
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support