Issue #18755 has been updated by Ashley Penney.
irb(main):005:0> puts Puppet::Type.type(:group).new(:name => 'service').exists?
false
=> nil
apenney@arch ~$ gem list
*** LOCAL GEMS ***
bigdecimal (1.1.0)
diff-lcs (1.1.3)
facter (1.6.17)
hiera (1.1.2, 1.0.0)
io-console (0.3)
json (1.7.6, 1.5.4)
json_pure (1.7.6)
metaclass (0.0.1)
minitest (4.4.0, 2.5.1)
mocha (0.13.1)
puppet (3.1.0.rc1)
puppet-lint (0.3.2)
puppetlabs_spec_helper (0.4.0)
rake (10.0.3, 0.9.2.2)
rdoc (3.12, 3.9.4)
rspec (2.12.0)
rspec-core (2.12.2)
rspec-expectations (2.12.1)
rspec-mocks (2.12.1)
rspec-puppet (0.1.5)
apenney@arch ~$
----------------------------------------
Bug #18755: Puppet apply completely broken in 3.1rc1
https://projects.puppetlabs.com/issues/18755#change-81553
Author: Ashley Penney
Status: Accepted
Priority: High
Assignee: Ashley Penney
Category:
Target version: 3.1.0
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.