Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-10405

Upgraded to Puppetserver 6.9.2 from Puppet 6.5

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 6.15.0
    • Component/s: None
    • Labels:
    • Template:
      PUP Bug Template
    • Master OS:
      CentOS 7
    • Affects Build:
      Puppetserver 6.9.2
    • Team:
      Froyo
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Previously, when querying environments without an `environments` directory, Puppet Server would report a 406 due to an `undefined method` error. Now we accurately report an empty environments list.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Upgraded Puppet Server from 6.5.1 to 6.9.2

      We are seeing a error when trying to query for environments. "Error: undefined method `collect' for nil:NilClass". API is reporting a 406 error.

      Check the SSL and auth.conf.  

      Dump for the puppet server logs:

      2020-04-01T14:30:31.118-07:00 ERROR [qtp1259599435-40] [puppetserver] Puppet Server Error: undefined method `collect' for nil:NilClass
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/environments.rb:204:in `list'
      org/jruby/RubyArray.java:2579:in `collect'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/environments.rb:275:in `list'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/environments.rb:351:in `list'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/api/master/v3/environments.rb:11:in `call'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/api/master/v3/authorization.rb:14:in `block in wrap'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:82:in `block in process'
      org/jruby/RubyArray.java:1800:in `each'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:81:in `process'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:88:in `process'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:88:in `process'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:87:in `block in process'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:70:in `block in with_request_profiling'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:66:in `with_request_profiling'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:86:in `block in process'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:93:in `respond_to_errors'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:85:in `process'
      uri:classloader:/puppetserver-lib/puppet/server/master.rb:64:in `block in handleRequest'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:62:in `override'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:290:in `override'
      uri:classloader:/puppetserver-lib/puppet/server/master.rb:63:in `handleRequest'
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              molly.waggett Molly Waggett
              Reporter:
              ClayRay Clayton Wight
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support