Jira (PUP-11774) Adding lots of hosts on Windows results in "permission denied" errors for some of them

2023-06-14 Thread 'Dirk Heinrichs (Jira)' via Puppet Bugs
Title: Message Title


 
 
 
 

 
 
 

 
   
 Dirk Heinrichs commented on  PUP-11774  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Adding lots of hosts on Windows results in "permission denied" errors for some of them   
 

  
 
 
 
 

 
 Josh Cooper, thanks for looking into it. You wrote "multiple", but your output only shows adding two hosts. As I wrote in the description, you'd need to add at least 20 to 30 host entries in one agent run for the error to show up and then it also doesn't happen all the time. The complete error message is: 

Error: Puppet::Util::FileType::FileTypeFlat could not write C:/Windows/System32/drivers/etc/hosts: Permission denied @ rb_sysopen - C:/Windows/System32/drivers/etc/hosts Error: /Stage[init]/Hosts/Host[XXX]: Could not evaluate: Puppet::Util::FileType::FileTypeFlat could not write C:/Windows/System32/drivers/etc/hosts: Permission denied @ rb_sysopen - C:/Windows/System32/drivers/etc/hosts
 and it shows up after multiple tens of entries have already been created w/o problems, and afterwards another bunch of entries is created. Sometimes this happens multiple times during one agent run, sometimes not at all. "Permission denied" showing up on a Windows host after lots of successful writes to the same file usually indicates a locking problem, rather than a real permission problem. Maybe this can be solved/worked around by simply adding a retry...  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.21#820021-sha1:38274c8)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To 

Jira (PUP-11774) Adding lots of hosts on Windows results in "permission denied" errors for some of them

2023-06-13 Thread 'Josh Cooper (Jira)' via Puppet Bugs
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-11774  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Adding lots of hosts on Windows results in "permission denied" errors for some of them   
 

  
 
 
 
 

 
 Dirk Heinrichs we can't reproduce this error. Export and collecting hosts entries with multiple windows agents works as expected for me:  
 
 
 
 
 C:\ProgramData\PuppetLabs>puppet agent -t  
 
 
 Info: Using environment 'production'  
 
 
 Info: Retrieving pluginfacts  
 
 
 Info: Retrieving plugin  
 
 
 Info: Loading facts  
 
 
 Info: Caching catalog for veteran-click.delivery.puppetlabs.net  
 
 
 Info: Applying configuration version '1686689540'  
 
 
 Notice: /Stage[main]/Hosts/Host[veteran-click.delivery.puppetlabs.net]/ensure: created  
 
 
 Info: Computing checksum on file C:/Windows/System32/drivers/etc/hosts  
 
 
 Notice: /Stage[main]/Hosts/Host[hotter-maximum.delivery.puppetlabs.net]/ensure: created  
 
 
 Notice: Applied catalog in 0.07 seconds
  
 
 
 
  There is a bug in 

Jira (PUP-11774) Adding lots of hosts on Windows results in "permission denied" errors for some of them

2023-05-16 Thread Michael Hashizume (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Michael Hashizume commented on  PUP-11774  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Adding lots of hosts on Windows results in "permission denied" errors for some of them   
 

  
 
 
 
 

 
 Hi Dirk Heinrichs , our team has triaged this ticket and will look at this during one of our future work sessions. Thanks!  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.482158.1677828568000.13643.1684268160038%40Atlassian.JIRA.


Jira (PUP-11774) Adding lots of hosts on Windows results in "permission denied" errors for some of them

2023-05-15 Thread Dirk Heinrichs (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Dirk Heinrichs commented on  PUP-11774  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Adding lots of hosts on Windows results in "permission denied" errors for some of them   
 

  
 
 
 
 

 
 Any news here? This is quite annoying as it requires two Puppet runs to completely setup new Windows hosts.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.482158.1677828568000.13218.1684130520020%40Atlassian.JIRA.


Jira (PUP-11774) Adding lots of hosts on Windows results in "permission denied" errors for some of them

2023-03-07 Thread Michael Hashizume (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Michael Hashizume updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11774  
 
 
  Adding lots of hosts on Windows results in "permission denied" errors for some of them   
 

  
 
 
 
 

 
Change By: 
 Michael Hashizume  
 
 
Labels: 
 needs-validation  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.482158.1677828568000.3567.1678224060027%40Atlassian.JIRA.


Jira (PUP-11774) Adding lots of hosts on Windows results in "permission denied" errors for some of them

2023-03-02 Thread Dirk Heinrichs (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Dirk Heinrichs created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11774  
 
 
  Adding lots of hosts on Windows results in "permission denied" errors for some of them   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Affects Versions: 
 PUP 7.21.0  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 Windows  
 
 
Created: 
 2023/03/02 11:29 PM  
 
 
Priority: 
  Major  
 
 
Reporter: 
 Dirk Heinrichs  
 

  
 
 
 
 

 
 Puppet Version: 7.21.0 Puppet Server Version: latest OS Name/Version: Windows Server 2019+ When managing a lot of "hosts" resources on Windows (by means of collecting exported resources), the first ones are applied without problems, but later ones fail with 

Error: Puppet::Util::FileType::FileTypeFlat could not write C:/Windows/System32/drivers/etc/hosts: Permission denied @ rb_sysopen - C:/Windows/System32/drivers/etc/hosts
 which looks like some kind of race condition to me. Steps to reproduce: Apply the following class on a new Windows host when Puppet is already managing at least 20 or 30 other hosts, all of which have the same class applied:   
 
 
 
 
 class hosts {  
 
 
   # Let each host create a host entry as exported resource