Jira (PUP-3204) Users and groups created mid-transaction are not found

2017-06-07 Thread Geoff Nichols (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Geoff Nichols updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-3204 
 
 
 
  Users and groups created mid-transaction are not found  
 
 
 
 
 
 
 
 
 

Change By:
 
 Geoff Nichols 
 
 
 

Issue Type:
 
 Bug New Feature 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3204) Users and groups created mid-transaction are not found

2017-06-06 Thread Geoff Nichols (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Geoff Nichols commented on  PUP-3204 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Users and groups created mid-transaction are not found  
 
 
 
 
 
 
 
 
 
 
Note, using the reproduction case from the description of this ticket, I'm not able to reproduce this issue on Puppet 4.10.1: 
 
 
 
 
 
 
[root@qbg7qy6z91vqyto ~]# RUBYLIB=. irb 
 
 
 
 
irb(main):001:0> require 'puppet' 
 
 
 
 
=> true 
 
 
 
 
irb(main):002:0> Puppet::Util.uid('shazam') 
 
 
 
 
=> nil 
 
 
 
 
  
 
 
 
 
[ Now, in a different window, ran "adduser shazam" ] 
 
 
 
 
  
 
 
 
 
irb(main):003:0> Puppet::Util.uid('shazam') 
 
 
 
 
=> 1002
 
 
 
 
 
 
  

Jira (PUP-3204) Users and groups created mid-transaction are not found

2017-05-18 Thread Moses Mendoza (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Moses Mendoza updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-3204 
 
 
 
  Users and groups created mid-transaction are not found  
 
 
 
 
 
 
 
 
 

Change By:
 
 Moses Mendoza 
 
 
 

Labels:
 
 help_wanted redmine  triaged 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3204) Users and groups created mid-transaction are not found

2017-05-16 Thread Rob Browning (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Rob Browning updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-3204 
 
 
 
  Users and groups created mid-transaction are not found  
 
 
 
 
 
 
 
 
 

Change By:
 
 Rob Browning 
 
 
 

Labels:
 
 help_wanted redmine triaged 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3204) Users and groups created mid-transaction are not found

2017-05-16 Thread Rob Browning (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Rob Browning updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-3204 
 
 
 
  Users and groups created mid-transaction are not found  
 
 
 
 
 
 
 
 
 

Change By:
 
 Rob Browning 
 
 
 

Labels:
 
 redmine  triaged 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3204) Users and groups created mid-transaction are not found

2017-05-10 Thread Adam Bottchen (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Adam Bottchen commented on  PUP-3204 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Users and groups created mid-transaction are not found  
 
 
 
 
 
 
 
 
 
 
Joel Schoenberg This looks great, thank you for pointing it out! 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3204) Users and groups created mid-transaction are not found

2017-05-10 Thread Joel Schoenberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Joel Schoenberg commented on  PUP-3204 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Users and groups created mid-transaction are not found  
 
 
 
 
 
 
 
 
 
 
Hey Adam, for T-mobile we created a better workaround that might be useful to others experiencing this issue. Reid published it in a gist here: https://gist.github.com/reidmv/1457d3795a82b9dd7fbdc41cee48bca4 
Basically it takes advantage of Puppet::Application.stop! and the ruby method of at_exit to restart the Puppet agent within code. Reid goes the extra mile by enabling this within the user resource provider and shows how they can narrow the use of this alternative provider just for AIX nodes. 
I just gave this to T-Mobile today, I will keep you posted on how it works for them. Joel 
Joel Schoenberg Technical Solutions Engineer joel.schoenb...@puppet.com 
On Wed, May 10, 2017 at 9:24 AM, Adam Bottchen (JIRA) < 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3204) Users and groups created mid-transaction are not found

2017-03-15 Thread John Duarte (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 John Duarte updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-3204 
 
 
 
  Users and groups created mid-transaction are not found  
 
 
 
 
 
 
 
 
 

Change By:
 
 John Duarte 
 
 
 
 
 
 
 
 
 
 I recently noticed the following:  {code} 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  {code} While I'm reasonably sure that the user did exist at that point. So after long and painful debugging I did the following:  {code} extdns01# RUBYLIB=. irbirb(main):001:0> require 'puppet'=> trueirb(main):002:0> Puppet::Util.uid('boom')=> nil[ Now, in a different window, ran "adduser boom" ]irb(main):003:0> Puppet::Util.uid('boom')=> nilirb(main):004:0>  {code} I guess puppet should flush the uid/gid cache on any user/group operation, or possibly even every time. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3204) Users and groups created mid-transaction are not found

2017-03-10 Thread Joshua Keiser (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Joshua Keiser updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-3204 
 
 
 
  Users and groups created mid-transaction are not found  
 
 
 
 
 
 
 
 
 

Change By:
 
 Joshua Keiser 
 
 
 

CS Priority:
 
 Needs Priority 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3204) Users and groups created mid-transaction are not found

2017-03-10 Thread Josh Cooper (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Josh Cooper updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-3204 
 
 
 
  Users and groups created mid-transaction are not found  
 
 
 
 
 
 
 
 
 

Change By:
 
 Josh Cooper 
 
 
 

Summary:
 
 24477 Users and groups created mid-transaction are not found 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3204) Users and groups created mid-transaction are not found

2014-11-27 Thread sauce (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 sauce commented on  PUP-3204 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Users and groups created mid-transaction are not found  
 
 
 
 
 
 
 
 
 
 
Here is my workaround: 
https://github.com/nixmore/chown_winbind_homedirs.sh 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3204) Users and groups created mid-transaction are not found

2014-11-27 Thread Sauce (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Sauce commented on  PUP-3204 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Users and groups created mid-transaction are not found  
 
 
 
 
 
 
 
 
 
 
Any movement on this issue? I just ran head on into it. I have Puppet on Ubuntu 12.04 doing the following: 
-Register the system with an external directory (in this case Active Directory, via Winbind) -Obviously the previous step modifies nsswitch.conf and suddenly 1000's of users/groups become available -Puppet then tries to chown a directory using a user/group from the previous step. It fails here with error "Could not find user". Because Puppet only reads nsswitch.conf upon launching. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3204) Users and groups created mid-transaction are not found

2014-09-09 Thread redmine.exporter (JIRA)
Title: Message Title










 

 redmine.exporter created an issue











 






 Puppet /  PUP-3204



  Users and groups created mid-transaction are not found 










Issue Type:

  Bug




Assignee:


 Unassigned




Created:


 09/Sep/14 7:37 AM




Labels:


 redmine




Priority:

  Normal




Reporter:

 redmine.exporter










I recently noticed the following:
 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 
While I'm reasonably sure that the user did exist at that point. So after long and painful debugging I did the following:
 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> 
I guess puppet should flush the uid/gid cache on any user/group operation, or possibly even every time.