Issue #4867 has been updated by Markus Roberts.

I've got a possible fix up (see branch) which reverts the logic change.  I'm 
not sure if that captures all of it because I"m not seeing how it could be 
Solaris specific (yet I can't reproduce the problem on linux).

Here's the change:

<pre>
diff --git a/lib/puppet/type/file/owner.rb b/lib/puppet/type/file/owner.rb
index d473da2..f41cb07 100755
--- a/lib/puppet/type/file/owner.rb
+++ b/lib/puppet/type/file/owner.rb
@@ -28,14 +28,10 @@ module Puppet
     end
 
     def retrieve
-      if self.should
+      if should
         @should = @should.collect do |val|
-          unless val.is_a?(Integer)
-            if tmp = provider.validuser?(val)
-              val = tmp
-            else
-              raise "Could not find user #{val}"
-            end
+          if val.is_a? String
+            provider.validuser?(val) || raise "Could not find user #{val}"
           else
             val
           end
</pre>
----------------------------------------
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