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

Facter fails when trying to retrieve ssh facts

    XMLWordPrintable

    Details

    • Template:
    • Team:
      Night's Watch
    • Sub-team:
    • Sprint:
      ghost-9.12
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Skip reading ssh keys that we do not recognise. Reading these, caused an exception being logged when running puppet and having ssh keys other than the ones facter supports.
    • QA Risk Assessment:
      Needs Assessment

      Description

      OS:  Ubuntu 18.04

      Faulty logs:

      root@apidocs:~# facter --trace
      [2020-12-10 13:29:05.826091 ] ERROR Facter::InternalFactManager - undefined method `to_sym' for nil:NilClass
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/facts/linux/sshalgorithmkey.rb:12:in `block in call_the_resolver'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/facts/linux/sshalgorithmkey.rb:12:in `each'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/facts/linux/sshalgorithmkey.rb:12:in `call_the_resolver'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/fact/internal/core_fact.rb:16:in `block in create'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/benchmarking/timer.rb:18:in `measure'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/fact/internal/core_fact.rb:15:in `create'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/fact/internal/internal_fact_manager.rb:79:in `resolve_fact'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/fact/internal/internal_fact_manager.rb:64:in `block (2 levels) in start_threads'
      [2020-12-10 13:29:05.828439 ] ERROR Facter::InternalFactManager - undefined method `to_sym' for nil:NilClass
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/facts/linux/ssh.rb:25:in `create_ssh_fact'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/facts/linux/ssh.rb:15:in `block in fact_value'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/facts/linux/ssh.rb:15:in `map'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/facts/linux/ssh.rb:15:in `fact_value'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/facts/linux/ssh.rb:9:in `call_the_resolver'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/fact/internal/core_fact.rb:16:in `block in create'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/benchmarking/timer.rb:18:in `measure'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/fact/internal/core_fact.rb:15:in `create'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/fact/internal/internal_fact_manager.rb:79:in `resolve_fact'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/fact/internal/internal_fact_manager.rb:64:in `block (2 levels) in start_threads'
      [2020-12-10 13:29:05.829240 ] ERROR Facter::InternalFactManager - undefined method `to_sym' for nil:NilClass
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/facts/linux/sshfp_algorithm.rb:13:in `block in call_the_resolver'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/facts/linux/sshfp_algorithm.rb:12:in `each'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/facts/linux/sshfp_algorithm.rb:12:in `call_the_resolver'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/fact/internal/core_fact.rb:16:in `block in create'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/benchmarking/timer.rb:18:in `measure'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/fact/internal/core_fact.rb:15:in `create'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/fact/internal/internal_fact_manager.rb:79:in `resolve_fact'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/fact/internal/internal_fact_manager.rb:64:in `block (2 levels) in start_threads'
      

        Attachments

          Activity

            People

            Assignee:
            florin.dragos Florin Dragos
            Reporter:
            oana.tanasoiu Oana Tanasoiu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support