Issue #18755 has been updated by Ashley Penney.
I did have 3.0.2 installed which I've removed. I only have a brief moment to
update this until late tonight but:
<pre>
rb(main):003:0> puts Puppet::Type.type(:group).new(:name => :service).exists?
TypeError: can't convert Symbol into String
from
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/provider/nameservice.rb:213:in
`getgrnam'
from
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/provider/nameservice.rb:213:in
`getinfo'
from
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/provider/nameservice.rb:200:in
`exists?'
from
/home/apenney/.gem/ruby/1.9.1/gems/puppet-3.1.0.rc1/lib/puppet/type/group.rb:158:in
`exists?'
from (irb):3
from /usr/bin/irb:12:in `<main>'
</pre>
----------------------------------------
Bug #18755: Puppet apply completely broken in 3.1rc1
https://projects.puppetlabs.com/issues/18755#change-81550
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.