Re: Another ''found a bug'' problem - This time with user purging.

Trevor Vaughan
2007-01-24T17:56:40Z

It seems to be unhappy with the fact that I''m assigning numerous
explicit
groups to some users.

Abbreviated stack trace after error below all entries start at the puppet
install directory (whole paths are in <>):

/type/user.rb:367
/type/user.rb:339:in `instance_eval`
/metatype/relationships.rb:27:in `instance_eval`
/metatype/relationships.rb:27:in `autorequire`
/metatype/relationships.rb:22:in `eachautorequire`
/metatype/relationships.rb:13:in `each`
/metatype/relationships.rb:13:in `eachautorequire`
/metatype/relationships.rb:22:in `autorequire`
transaction.rb:451:in `relationship_graph`
transaction.rb:450:in `each`
transaction.rb:450:in `relationship_graph`
transaction.rb:430:in `prepare`
transaction.rb:258:in `evaluate`
/client/master.rb:116:in `apply`
/client/master.rb:328:in `run`
/client/master.rb:327:in `benchmark`
util.rb:211:in `measure`
</usr/lib/ruby/1.8/benchmark.rb:342:in `realtime`>
util.rb:211:in `benchmark`
/client/master.rb:327:in `run`
/client/master.rb:313:in `synchronize`
/client/master.rb:313:in `run`
</usr/sbin/puppetd:426>

An example of the potentially offending user entries is:

user {
  root:
    allowdupe => false,
    ensure => present,
    gid => "0",
    groups => [ "bin", "daemon", "sys",
"adm", "disk", "wheel" ],
    home => "/root",
    membership => "minimum",
    shell => "/bin/bash",
    uid => "0";
}

This is just mimicking the standard root setup on a Fedora box.

Thanks,

Trevor


On 1/24/07, Luke Kanies <luke@madstop.com> wrote:
>
> On Jan 24, 2007, at 8:24 AM, Trevor Vaughan wrote:
>
> > Ok, given the statement on the web page about unlesssystemuser
> > under Resources (http://reductivelabs.com/projects/puppet/
> > documentation/typedocs.html#resources ), I assume that users can be
> > purged.
> >
> > However, when I attempt to do this with resources { user: purge =>
> > true, noop => true } and what I get is:
> >
> > err: Found a bug: private method ''split'' called for
nil:NilClass.
> >
> > Both my resources and user statements are contained within a class.
> >
> > Any idea what I''m doing wrong?
>
> Can you run the client with --trace added, to hopefully give a stack
> trace?
>
>   --
>   Ninety-eight percent of the adults in this country are decent,
>   hard-working, honest Americans. It''s the other lousy two percent
that
>   get all the publicity.  But then--we elected them.    --Lily Tomlin
>   ---------------------------------------------------------------------
>   Luke Kanies | http://reductivelabs.com | http://madstop.com
>
>
> _______________________________________________
> Puppet-users mailing list
> Puppet-users@madstop.com
> https://mail.madstop.com/mailman/listinfo/puppet-users
>


_______________________________________________
Puppet-users mailing list
Puppet-users@madstop.com