Issue #791 has been updated by luke.
Assigned to changed from luke to jamtur01
I just took another look at this, and I think there are some stupid logic
errors in there somewhere, but I can't quite peg where.
It's somewhere between the type/file/group.rb file and util/posix.rb. This
Puppet code works fine for me:
<pre>
file { "/tmp/testing": group => foo, ensure => directory }
group { foo: ensure => present }
</pre>
So I can't reproduce the problem in a small case on Debian.
If someone who can reproduce the problem spent some time mucking around in
type/file/group.rb, I bet you could track down the logic problems. Ping me on
IRC and I'll help resolve it if I have the time.
----------------------------------------
Bug #791: Users and groups created mid-transaction are not found
http://projects.reductivelabs.com/issues/show/791
Author: porridge
Status: Accepted
Priority: Normal
Assigned to: jamtur01
Category: user
Target version: unplanned
Complexity: Medium
Patch: None
Affected version: 0.24.4
Keywords:
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://reductivelabs.com/redmine/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
-~----------~----~----~----~------~----~------~--~---