Issue #18755 has been updated by Ashley Penney.

Sure:

<pre>
[root@arch manifests]# puppet apply test.pp  --trace --debug
Could not retrieve macaddress: undefined method `each_line' for nil:NilClass
Could not retrieve macaddress: undefined method `each_line' for nil:NilClass
Info: Loading facts in 
/home/apenney/git/configuration/modules/firewall/lib/facter/iptables_version.rb
Info: Loading facts in 
/home/apenney/git/configuration/modules/firewall/lib/facter/ip6tables_version.rb
                                                                                
                     
Info: Loading facts in 
/home/apenney/git/configuration/modules/factsd/lib/facter/facter_dot_d.rb
Info: Loading facts in 
/home/apenney/git/configuration/modules/concat/lib/facter/concat_basedir.rb
Info: Loading facts in 
/home/apenney/git/configuration/modules/stdlib/lib/facter/root_home.rb
Info: Loading facts in 
/home/apenney/git/configuration/modules/stdlib/lib/facter/pe_version.rb
Info: Loading facts in 
/home/apenney/git/configuration/modules/stdlib/lib/facter/puppet_vardir.rb
Could not retrieve macaddress: undefined method `each_line' for nil:NilClass
Could not retrieve ipaddress6: undefined method `scan' for nil:NilClass
Debug: importing 
'/home/apenney/git/configuration/modules/json/manifests/init.pp' in environment 
production                                                                      
                           
Debug: importing 
'/home/apenney/git/configuration/modules/json/manifests/add_file.pp' in 
environment production                                                          
                                   
Debug: Automatically imported json::add_file from json/add_file into production
Debug: importing 
'/home/apenney/git/configuration/modules/concat/manifests/init.pp' in 
environment production                                                          
                                     
Debug: Automatically imported concat from concat into production
Debug: importing 
'/home/apenney/git/configuration/modules/concat/manifests/fragment.pp' in 
environment production                                                          
                                 
Debug: Automatically imported concat::fragment from concat/fragment into 
production
Debug: importing 
'/home/apenney/git/configuration/modules/concat/manifests/setup.pp' in 
environment production                                                          
                                    
Debug: Automatically imported concat::setup from concat/setup into production
Debug: Failed to load library 'selinux' for feature 'selinux'
Debug: Exec[/opt/wwc/env.json]: Adding default for path
Debug: File[/var/lib/puppet/concat/bin/concatfragments.sh]: Adding default for 
backup
Debug: File[/var/lib/puppet/concat/bin/concatfragments.sh]: Adding default for 
replace
Debug: File[/var/lib/puppet/concat]: Adding default for backup
Debug: File[/var/lib/puppet/concat]: Adding default for replace
Debug: File[/var/lib/puppet/concat/bin]: Adding default for backup
Debug: File[/var/lib/puppet/concat/bin]: Adding default for replace
Debug: File[/usr/local/bin/concatfragments.sh]: Adding default for owner
Debug: File[/usr/local/bin/concatfragments.sh]: Adding default for group
Debug: File[/usr/local/bin/concatfragments.sh]: Adding default for mode
Debug: File[/usr/local/bin/concatfragments.sh]: Adding default for backup
Debug: File[/usr/local/bin/concatfragments.sh]: Adding default for replace
Debug: File[/var/lib/puppet/concat/_opt_wwc_env.json.template]: Adding default 
for owner
Debug: File[/var/lib/puppet/concat/_opt_wwc_env.json.template]: Adding default 
for group
Debug: File[/var/lib/puppet/concat/_opt_wwc_env.json.template]: Adding default 
for mode
Debug: File[/var/lib/puppet/concat/_opt_wwc_env.json.template]: Adding default 
for backup
Debug: File[/var/lib/puppet/concat/_opt_wwc_env.json.template]: Adding default 
for replace
Debug: File[/var/lib/puppet/concat/_opt_wwc_env.json.template/fragments]: 
Adding default for owner
Debug: File[/var/lib/puppet/concat/_opt_wwc_env.json.template/fragments]: 
Adding default for group
Debug: File[/var/lib/puppet/concat/_opt_wwc_env.json.template/fragments]: 
Adding default for mode
Debug: File[/var/lib/puppet/concat/_opt_wwc_env.json.template/fragments]: 
Adding default for backup
Debug: File[/var/lib/puppet/concat/_opt_wwc_env.json.template/fragments]: 
Adding default for replace
Debug: 
File[/var/lib/puppet/concat/_opt_wwc_env.json.template/fragments.concat]: 
Adding default for owner                                                        
                                           
Debug: 
File[/var/lib/puppet/concat/_opt_wwc_env.json.template/fragments.concat]: 
Adding default for group                                                        
                                           
Debug: 
File[/var/lib/puppet/concat/_opt_wwc_env.json.template/fragments.concat]: 
Adding default for mode                                                         
                                           
Debug: 
File[/var/lib/puppet/concat/_opt_wwc_env.json.template/fragments.concat]: 
Adding default for backup                                                       
                                           
Debug: 
File[/var/lib/puppet/concat/_opt_wwc_env.json.template/fragments.concat]: 
Adding default for replace                                                      
                                           
Debug: 
File[/var/lib/puppet/concat/_opt_wwc_env.json.template/fragments.concat.out]: 
Adding default for owner                                                        
                                       
Debug: 
File[/var/lib/puppet/concat/_opt_wwc_env.json.template/fragments.concat.out]: 
Adding default for group                                                        
                                       
Debug: 
File[/var/lib/puppet/concat/_opt_wwc_env.json.template/fragments.concat.out]: 
Adding default for mode                                                         
                                       
Debug: 
File[/var/lib/puppet/concat/_opt_wwc_env.json.template/fragments.concat.out]: 
Adding default for backup                                                       
                                       
Debug: 
File[/var/lib/puppet/concat/_opt_wwc_env.json.template/fragments.concat.out]: 
Adding default for replace                                                      
                                       
Debug: File[/opt/wwc/env.json.template]: Adding default for backup
Debug: File[/opt/wwc/env.json.template]: Adding default for replace
Debug: Exec[concat_/opt/wwc/env.json.template]: Adding default for path
Debug: 
File[/var/lib/puppet/concat/_opt_wwc_env.json.template/fragments/01_env.json_header]:
 Adding default for source                                                      
                                
Debug: 
File[/var/lib/puppet/concat/_opt_wwc_env.json.template/fragments/99_env.json_footer]:
 Adding default for source                                                      
                                
Debug: Creating default schedules
Debug: Using settings: adding file resource 'confdir': 
'File[/etc/puppet]{:path=>"/etc/puppet", :ensure=>:directory, 
:loglevel=>:debug, :links=>:follow, :backup=>false}'                            
       
Debug: Using settings: adding file resource 'vardir': 
'File[/var/lib/puppet]{:path=>"/var/lib/puppet", :ensure=>:directory, 
:loglevel=>:debug, :links=>:follow, :backup=>false}'                            
Debug: Failed to load library 'shadow' for feature 'libshadow'
Debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dsimport 
does not exist
Debug: Puppet::Type::User::ProviderPw: file pw does not exist
Debug: Failed to load library 'ldap' for feature 'ldap'
Debug: Puppet::Type::User::ProviderLdap: feature ldap is missing
Debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not exist
Debug: Puppet::Type::Group::ProviderDirectoryservice: file /usr/bin/dscl does 
not exist
Debug: Puppet::Type::Group::ProviderPw: file pw does not exist
Debug: Failed to load library 'ldap' for feature 'ldap'
Debug: Puppet::Type::Group::ProviderLdap: feature ldap is missing
Error: Could not create resources for managing Puppet's files and directories 
in sections [:main, :ssl, :agent]: undefined method `exists?' for 
Group[puppet]:Puppet::Type::Group
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/settings.rb:725:in
 `service_group_available?'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/settings/file_setting.rb:54:in
 `safe_to_use_settings_value?'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/settings/file_setting.rb:45:in
 `value'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/settings/file_setting.rb:102:in
 `group'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/settings/file_setting.rb:157:in
 `to_resource'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/settings.rb:847:in
 `block in to_catalog'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/settings.rb:844:in
 `each'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/settings.rb:844:in
 `to_catalog'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/settings.rb:906:in
 `block in use'
/usr/lib/ruby/1.9.1/sync.rb:227:in `sync_synchronize'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/settings.rb:900:in
 `use'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/configurer.rb:55:in
 `initialize'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/application/apply.rb:264:in
 `new'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/application/apply.rb:264:in
 `apply_catalog'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/application/apply.rb:213:in
 `main'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/application/apply.rb:146:in
 `run_command'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/application.rb:364:in
 `block (2 levels) in run'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/application.rb:456:in
 `plugin_hook'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/application.rb:364:in
 `block in run'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/util.rb:504:in 
`exit_on_fail'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/application.rb:364:in
 `run'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/util/command_line.rb:132:in
 `run'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/util/command_line.rb:86:in
 `execute'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/bin/puppet:4:in `<top 
(required)>'
/home/apenney/.gem/ruby/1.9.1/bin/puppet:23:in `load'
/home/apenney/.gem/ruby/1.9.1/bin/puppet:23:in `<main>'
Error: Could not create resources for managing Puppet's files and directories 
in sections [:main, :ssl, :agent]: undefined method `exists?' for 
Group[puppet]:Puppet::Type::Group
undefined method `exists?' for Group[puppet]:Puppet::Type::Group
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/settings.rb:725:in
 `service_group_available?'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/settings/file_setting.rb:54:in
 `safe_to_use_settings_value?'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/settings/file_setting.rb:45:in
 `value'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/settings/file_setting.rb:102:in
 `group'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/settings/file_setting.rb:157:in
 `to_resource'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/settings.rb:847:in
 `block in to_catalog'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/settings.rb:844:in
 `each'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/settings.rb:844:in
 `to_catalog'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/settings.rb:906:in
 `block in use'
/usr/lib/ruby/1.9.1/sync.rb:227:in `sync_synchronize'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/settings.rb:900:in
 `use'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/configurer.rb:55:in
 `initialize'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/application/apply.rb:264:in
 `new'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/application/apply.rb:264:in
 `apply_catalog'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/application/apply.rb:213:in
 `main'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/application/apply.rb:146:in
 `run_command'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/application.rb:364:in
 `block (2 levels) in run'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/application.rb:456:in
 `plugin_hook'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/application.rb:364:in
 `block in run'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/util.rb:504:in 
`exit_on_fail'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/application.rb:364:in
 `run'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/util/command_line.rb:132:in
 `run'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/util/command_line.rb:86:in
 `execute'
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/bin/puppet:4:in `<top 
(required)>'
/home/apenney/.gem/ruby/1.9.1/bin/puppet:23:in `load'
/home/apenney/.gem/ruby/1.9.1/bin/puppet:23:in `<main>'
</pre>
----------------------------------------
Bug #18755: Puppet apply completely broken in 3.1rc1
https://projects.puppetlabs.com/issues/18755#change-81483

Author: Ashley Penney
Status: Needs More Information
Priority: High
Assignee: Ashley Penney
Category: 
Target version: 
Affected Puppet version: 3.1.0-rc1
Keywords: 
Branch: 


I recently installed 3.1 (via a gem) to fix the rspec testing issues but 
discovered a new problem:

<pre>
[root@arch manifests]# puppet apply test.pp 
Could not retrieve macaddress: undefined method `each_line' for nil:NilClass
Could not retrieve macaddress: undefined method `each_line' for nil:NilClass
Could not retrieve macaddress: undefined method `each_line' for nil:NilClass
Could not retrieve ipaddress6: undefined method `scan' for nil:NilClass
Error: Could not create resources for managing Puppet's files and directories 
in sections [:main, :ssl, :agent]: undefined method `exists?' for 
Group[puppet]:Puppet::Type::Group
Error: Could not create resources for managing Puppet's files and directories 
in sections [:main, :ssl, :agent]: undefined method `exists?' for 
Group[puppet]:Puppet::Type::Group
undefined method `exists?' for Group[puppet]:Puppet::Type::Group
</pre>

As soon as I revert to 3.0.2 this works again.

test.pp is just a quick call to a single define:

<pre>
json::add_file { 'env.json': }
</pre>

My puppet.conf:

<pre>
[main]
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter
templatedir=$confdir/templates
environment = production
pluginsync = true
modulepath=/home/apenney/git/configuration/modules

[master]
modulepath=/home/apenney/git/configuration/modules

[agent]
modulepath=/home/apenney/git/configuration/modules
</pre>

/etc/group entry:

<pre>
puppet:x:1000:
</pre>

/etc/passwd:

<pre>
puppet:x:1001:1000::/var/lib/puppet:/bin/false
</pre>

This is using ruby 1.9.3p374 on arch linux.  I set the priority as high only 
because this seems a fairly large change in behavior that might have slipped 
through the cracks and will upset users! :)  If there's any other info I can 
get for you just let me know.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to