Issue #4867 has been updated by John Warburton.

I had to change
            provider.validuser?(val) || raise "Could not find user #{val}"
to
            provider.validuser?(val) or raise Puppet::Error, "Could not find 
user #{val}"

as I was getting a parse error:
    err: Could not create resources for managing Puppet's files and directories 
in sections [:main, :agent, :ssl]: Could not autoload file: 
/opt/local/lib/puppet/type/file/owner.rb:34: syntax error, unexpected 
tSTRING_BEG, expecting kDO or '{' or '('
    ...der.validuser?(val) || raise "Could not find user #{val}"
    
And still failing:
    /opt/local/lib/puppet/type/file/owner.rb:34:in `retrieve'
    /opt/local/lib/puppet/type/file/owner.rb:32:in `collect'
    /opt/local/lib/puppet/type/file/owner.rb:32:in `retrieve'
    /opt/local/lib/puppet/type.rb:695:in `retrieve'
    /opt/local/lib/puppet/type.rb:690:in `each'
    /opt/local/lib/puppet/type.rb:690:in `retrieve'
    /opt/local/lib/puppet/type/file.rb:634:in `retrieve'
    /opt/local/lib/puppet/type.rb:703:in `retrieve_resource'
    /opt/local/lib/puppet/type.rb:1861:in `to_trans'
    /opt/local/lib/puppet/type/file.rb:701:in `to_trans'
    /opt/local/lib/puppet/type.rb:1886:in `to_resource'
    /opt/local/lib/puppet/type.rb:203:in `uniqueness_key'
    /opt/local/lib/puppet/resource/catalog.rb:83:in `add_resource'
    /opt/local/lib/puppet/resource/catalog.rb:72:in `each'
    /opt/local/lib/puppet/resource/catalog.rb:72:in `add_resource'
    /opt/local/lib/puppet/resource/catalog.rb:561:in `to_catalog'
    /opt/local/lib/puppet/resource/catalog.rb:531:in `each'
    /opt/local/lib/puppet/resource/catalog.rb:531:in `to_catalog'
    /opt/local/lib/puppet/resource/catalog.rb:468:in `to_ral'
    /opt/local/lib/puppet/configurer.rb:117:in `convert_catalog'
    /opt/local/lib/puppet/configurer.rb:112:in `retrieve_catalog'
    /opt/local/lib/puppet/configurer.rb:143:in `run'
    /opt/local/lib/puppet/agent.rb:39
    /opt/local/lib/puppet/agent/locker.rb:21:in `lock'
    /opt/local/lib/puppet/agent.rb:39
    /opt/local/pkgs/ruby-1.8.7-p249/lib/ruby/1.8/sync.rb:230:in `synchronize'
    /opt/local/lib/puppet/agent.rb:39
    /opt/local/lib/puppet/agent.rb:103:in `with_client'
    /opt/local/lib/puppet/agent.rb:37
    /opt/local/lib/puppet/application.rb:171:in `call'
    /opt/local/lib/puppet/application.rb:171:in `controlled_run'
    /opt/local/lib/puppet/agent.rb:35:in `run'
    /opt/local/lib/puppet/application/agent.rb:114:in `onetime'
    /opt/local/lib/puppet/application/agent.rb:88:in `run_command'
    /opt/local/lib/puppet/application.rb:287:in `run'
    /opt/local/lib/puppet/application.rb:393:in `exit_on_fail'
    /opt/local/lib/puppet/application.rb:287:in `run'
    /opt/local/sbin/puppetd:4
    err: Could not run Puppet configuration client: Could not find user puppet
    
----------------------------------------
Bug #4867: On Solaris, puppet client requires the puppet user to exist before 
running
https://projects.puppetlabs.com/issues/4867

Author: Brian Gallew
Status: Ready for Testing
Priority: Normal
Assignee: Markus Roberts
Category: agent
Target version: 2.6.x
Affected Puppet version: 2.6.1
Keywords: 
Branch: http://github.com/MarkusQ/puppet/tree/ticket/2.6.x/4867


WHen I ran 0.25.5, I relied on the puppet client to create the puppet user.  
Since I've upgraded to 2.6.1, the puppet user must already exist before the 
puppet client will run, otherwise the puppet client bails with an error:
err: Could not run Puppet configuration client: Could not find user puppet

This seems to be a fairly major regression.


-- 
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