Issue #791 has been updated by Craig Box.
Status changed from Closed to Re-opened
Target version changed from 0.24.6 to unplanned
I am seeing this problem on 0.25 (0.25.4-2ubuntu6) with LDAP users:
* install libnss-ldapd, libpam-ldapd and nslcd
* install ldap-auth-config & various config files
* run auth-client-config, which sets up the PAM config files to include LDAP
users (1)
* create homedirs for LDAP user
causes error output:
err: //homedirs/Homedirectory[example]/File[/home/example]/ensure: change
from absent to directory failed: Could not set directory on ensure: Could not
find user example at /etc/puppet/modules/homedirs/manifests/init.pp:37
even though at point (1), if run manually, I can 'su' to the user successfully.
See also my ML thread:
http://groups.google.com/group/puppet-users/browse_thread/thread/8b3cda86c03f05e1/71cddda9c57d2201?lnk=gst&q=craig.box#71cddda9c57d2201
----------------------------------------
Bug #791: Users and groups created mid-transaction are not found
http://projects.puppetlabs.com/issues/791
Author: Marcin Owsiany
Status: Re-opened
Priority: Normal
Assigned to: James Turnbull
Category: user
Target version: unplanned
Patch: None
Affected version: 0.24.4
Keywords:
Branch:
I recently noticed the following:
<pre>
Aug 23 18:09:35 extdns03 puppetdr987: [ID 702911 daemon.error]
(//extdns03/common_foglight/foglight_agents_setup/Exec[/opt/foglight/script/setup.sh])
Failed to call refresh on Exec[/opt/foglight/script/setup.sh]: Invalid user:
foglight
</pre>
While I'm reasonably sure that the user did exist at that point. So after long
and painful debugging I did the following:
<pre>
extdns01# RUBYLIB=. irb
irb(main):001:0> require 'puppet'
=> true
irb(main):002:0> Puppet::Util.uid('boom')
=> nil
[ Now, in a different window, ran "adduser boom" ]
irb(main):003:0> Puppet::Util.uid('boom')
=> nil
irb(main):004:0>
</pre>
I guess puppet should flush the uid/gid cache on any user/group operation, or
possibly even every time.
--
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.