Jira (PUP-9819) {brief summary of issue}

0 views
Skip to first unread message

Marshall Taylor (JIRA)

unread,
Jul 11, 2019, 1:41:04 PM7/11/19
to puppe...@googlegroups.com
Marshall Taylor created an issue
 
Puppet / Bug PUP-9819
{brief summary of issue}
Issue Type: Bug Bug
Affects Versions: PUP 6.4.0
Assignee: Unassigned
Components: Catalog Application
Created: 2019/07/11 10:40 AM
Environment:

We have a mix of ~50 10.[13,14].x MacOS laptops using a Ubuntu 18.04.2 LTS system for our master.  Both agents and server are running 6.4.0.

Fix Versions: PUP 6.4.0
Priority: Normal Normal
Reporter: Marshall Taylor

Puppet Version: 6.4.0
Puppet Server Version: 6.4.0
OS Name/Version: MacOS 10.15 Catalina Beta3

Running 'puppet agent --test' outputs:

mtaylor@Marshalls-Air ~ % sudo /opt/puppetlabs/bin/puppet agent --test
Password:
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Info: Caching catalog for myhost.lygos.com
Info: Applying configuration version 'puppet-production-970b8ed8aa5'
Notice: Hiera returned role: mac_laptop
Notice: /Stage[main]/Main/Notify[Hiera returned role: mac_laptop]/message: defined 'message' as 'Hiera returned role: mac_laptop'
Error: Could not prefetch user provider 'directoryservice': undefined method `[]' for nil:NilClass
Error: Failed to apply catalog: undefined method `[]' for nil:NilClass

Running the above w/ --debug option, I get the following (only including output after the Notice: Hiera" line):

 

Debug: /Stage[main]/Main/Notify[Hiera returned role: mac_laptop]: The container Class[Main] will propagate my refresh event
Debug: Class[Main]: The container Stage[main] will propagate my refresh event
Debug: Prefetching pkgdmg resources for package
Debug: Prefetching directoryservice resources for user
Debug: Executing: '/usr/bin/dscl -plist . readall /Users'
Debug: Executing: '/usr/bin/dscl -plist . readall /Groups'
Debug: Converting binary plist to hash
Debug: Failed with CFFormatError on : #<CFFormatError: content after root object>
Error: Could not prefetch user provider 'directoryservice': undefined method `[]' for nil:NilClass
Debug: Storing state
Debug: Pruned old state cache entries in 0.01 seconds
Debug: Stored state in 0.36 seconds
Error: Failed to apply catalog: undefined method `[]' for nil:NilClass
Debug: Dynamically-bound server lookup failed, falling back to report_server setting
Debug: Dynamically-bound port lookup failed; falling back to report_port setting
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: report supports formats: json pson yaml
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: report supports formats: json pson yaml
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: report supports formats: json pson yaml
Debug: Closing connection for https://puppet.lygos.com:8140
Debug: Creating new connection for https://puppet.lygos.com:8140
Debug: Starting connection for https://puppet.lygos.com:8140
Debug: HTTP PUT https://puppet.lygos.com:8140/puppet/v3/report/myhost.lygos.com returned 200 OK
Debug: Caching connection for https://puppet.lygos.com:8140
Debug: Closing connection for https://puppet.lygos.com:8140

 

Desired Behavior:

Error-free run of 'puppet agent --test'

Actual Behavior:

Running the above with both --trace and --debug options.  Output:

 

Notice: Hiera returned role: mac_laptop
Notice: /Stage[main]/Main/Notify[Hiera returned role: mac_laptop]/message: defined 'message' as 'Hiera returned role: mac_laptop'
Debug: /Stage[main]/Main/Notify[Hiera returned role: mac_laptop]: The container Class[Main] will propagate my refresh event
Debug: Class[Main]: The container Stage[main] will propagate my refresh event
Debug: Prefetching directoryservice resources for user
Debug: Executing: '/usr/bin/dscl -plist . readall /Users'
Debug: Executing: '/usr/bin/dscl -plist . readall /Groups'
Debug: Converting binary plist to hash   
Debug: Failed with CFFormatError on : #<CFFormatError: content after root object>
Error: Could not prefetch user provider 'directoryservice': undefined method `[]' for nil:NilClass
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:148:in `generate_attribute_hash'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:87:in `block in instances'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:86:in `collect'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:86:in `instances'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:73:in `prefetch'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:364:in `prefetch'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:256:in `prefetch_if_necessary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:111:in `block in evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:119:in `traverse'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:174:in `evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:239:in `block (2 levels) in apply'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:518:in `block in thinmark'
/opt/puppetlabs/puppet/lib/ruby/2.5.0/benchmark.rb:308:in `realtime'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:517:in `thinmark'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:238:in `block in apply'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:161:in `with_destination'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:146:in `as_logging_destination'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:237:in `apply'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:192:in `block (2 levels) in apply_catalog'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:518:in `block in thinmark'
/opt/puppetlabs/puppet/lib/ruby/2.5.0/benchmark.rb:308:in `realtime'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:517:in `thinmark'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:191:in `block in apply_catalog'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:231:in `block in benchmark'
/opt/puppetlabs/puppet/lib/ruby/2.5.0/benchmark.rb:308:in `realtime'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:230:in `benchmark'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:190:in `apply_catalog'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:376:in `run_internal'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:240:in `block in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:266:in `override'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:217:in `run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:59:in `block (5 levels) in run'
/opt/puppetlabs/puppet/lib/ruby/2.5.0/timeout.rb:93:in `block in timeout'
/opt/puppetlabs/puppet/lib/ruby/2.5.0/timeout.rb:103:in `timeout'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:58:in `block (4 levels) in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent/locker.rb:21:in `lock'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:52:in `block (3 levels) in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:130:in `with_client'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:49:in `block (2 levels) in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:87:in `run_in_fork'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:48:in `block in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:179:in `controlled_run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:46:in `run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/agent.rb:382:in `onetime'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/agent.rb:352:in `block in run_command'

 

Nothing obviously useful from /var/log/puppetlabs/puppetserver/puppetserver.log

2019-07-11T09:48:18.565-07:00 INFO  [qtp1310834979-64509] [puppetserver] Puppet 'replace_facts' command for myhost.lygos.com submitted to PuppetDB with UUID abc323ba-61dc-49c6-94f4-cbf4b14f3d31
2019-07-11T09:48:19.018-07:00 INFO  [qtp1310834979-64509] [puppetserver] Puppet Compiled catalog for myhost.lygos.com in environment test_catalina_admin in 0.42 seconds
2019-07-11T09:48:19.019-07:00 INFO  [qtp1310834979-64509] [puppetserver] Puppet Caching catalog for myhost.lygos.com
2019-07-11T09:48:19.054-07:00 INFO  [qtp1310834979-64509] [puppetserver] Puppet 'replace_catalog' command for myhost.lygos.com submitted to PuppetDB with UUID b53493a5-4b5b-4719-962c-0ca93f2546cc

 

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages