Jira (PUP-7153) Puppet fails with inscrutable errors when logging large messages on Windows

2017-10-24 Thread Moses Mendoza (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Moses Mendoza commented on  PUP-7153 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Puppet fails with inscrutable errors when logging large messages on Windows  
 
 
 
 
 
 
 
 
 
 
merged to master at https://github.com/puppetlabs/puppet/commit/588a4b52139f07a8a86892100af63ca7bd94e264 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-7153) Puppet fails with inscrutable errors when logging large messages on Windows

2017-10-24 Thread Moses Mendoza (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Moses Mendoza updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7153 
 
 
 
  Puppet fails with inscrutable errors when logging large messages on Windows  
 
 
 
 
 
 
 
 
 

Change By:
 
 Moses Mendoza 
 
 
 

Fix Version/s:
 
 PUP 5.3.z 
 
 
 

Fix Version/s:
 
 PUP 5.4.0 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-7153) Puppet fails with inscrutable errors when logging large messages on Windows

2017-09-08 Thread John Duarte (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 John Duarte updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7153 
 
 
 
  Puppet fails with inscrutable errors when logging large messages on Windows  
 
 
 
 
 
 
 
 
 

Change By:
 
 John Duarte 
 
 
 

QA Risk Assessment:
 
 Needs Assessment Manual 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-7153) Puppet fails with inscrutable errors when logging large messages on Windows

2017-09-07 Thread Curtis Ruck (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Curtis Ruck commented on  PUP-7153 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Puppet fails with inscrutable errors when logging large messages on Windows  
 
 
 
 
 
 
 
 
 
 
I'm fine with a truncation in event log. 32k is plenty of data, manual runs could be done to acquire larger errors. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-7153) Puppet fails with inscrutable errors when logging large messages on Windows

2017-09-07 Thread Moses Mendoza (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Moses Mendoza updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7153 
 
 
 
  Puppet fails with inscrutable errors when logging large messages on Windows  
 
 
 
 
 
 
 
 
 

Change By:
 
 Moses Mendoza 
 
 
 

Fix Version/s:
 
 PUP 5.3.z 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-7153) Puppet fails with inscrutable errors when logging large messages on Windows

2017-09-07 Thread Moses Mendoza (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Moses Mendoza updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7153 
 
 
 
  Puppet fails with inscrutable errors when logging large messages on Windows  
 
 
 
 
 
 
 
 
 

Change By:
 
 Moses Mendoza 
 
 
 

Sprint:
 
 Platform Core KANBAN 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-7153) Puppet fails with inscrutable errors when logging large messages on Windows

2017-09-07 Thread Moses Mendoza (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Moses Mendoza updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7153 
 
 
 
  Puppet fails with inscrutable errors when logging large messages on Windows  
 
 
 
 
 
 
 
 
 

Change By:
 
 Moses Mendoza 
 
 
 

Story Points:
 
 1 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-7153) Puppet fails with inscrutable errors when logging large messages on Windows

2017-09-07 Thread Moses Mendoza (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Moses Mendoza commented on  PUP-7153 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Puppet fails with inscrutable errors when logging large messages on Windows  
 
 
 
 
 
 
 
 
 
 
The solution here may be to check the size of the incoming log messages and split into multiple if they exceed the size limit in eventlog. 
This can be done in https://github.com/puppetlabs/puppet/blob/master/lib/puppet/util/windows/eventlog.rb or the eventlog destination https://github.com/puppetlabs/puppet/blob/master/lib/puppet/util/log/destinations.rb#L214-L249 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-7153) Puppet fails with inscrutable errors when logging large messages on Windows

2017-09-07 Thread Moses Mendoza (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Moses Mendoza assigned an issue to Jorie Tappa 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7153 
 
 
 
  Puppet fails with inscrutable errors when logging large messages on Windows  
 
 
 
 
 
 
 
 
 

Change By:
 
 Moses Mendoza 
 
 
 

Assignee:
 
 Jorie Tappa 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-7153) Puppet fails with inscrutable errors when logging large messages on Windows

2017-08-10 Thread Jeff Sparrow (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jeff Sparrow commented on  PUP-7153 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Puppet fails with inscrutable errors when logging large messages on Windows  
 
 
 
 
 
 
 
 
 
 
We are also hitting this error too. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-7153) Puppet fails with inscrutable errors when logging large messages on Windows

2017-05-16 Thread Russell Mull (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Russell Mull updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7153 
 
 
 
  Puppet fails with inscrutable errors when logging large messages on Windows  
 
 
 
 
 
 
 
 
 

Change By:
 
 Russell Mull 
 
 
 

Labels:
 
 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-7153) Puppet fails with inscrutable errors when logging large messages on Windows

2017-04-25 Thread Curtis Ruck (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Curtis Ruck commented on  PUP-7153 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Puppet fails with inscrutable errors when logging large messages on Windows  
 
 
 
 
 
 
 
 
 
 
Can we bump this priority up. Just ran into this after enabling diff output on windows. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-7153) Puppet fails with inscrutable errors when logging large messages on Windows

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

 
 
 
 
 
 
 
 Puppet /  PUP-7153 
 
 
 
  Puppet fails with inscrutable errors when logging large messages on Windows  
 
 
 
 
 
 
 
 
 

Change By:
 
 Geoff Nichols 
 
 
 

Sprint:
 
 Agent Accepted 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-7153) Puppet fails with inscrutable errors when logging large messages on Windows

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

 
 
 
 
 
 
 
 Puppet /  PUP-7153 
 
 
 
  Puppet fails with inscrutable errors when logging large messages on Windows  
 
 
 
 
 
 
 
 
 

Change By:
 
 Geoff Nichols 
 
 
 

Sprint:
 
 AP Accepted 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-7153) Puppet fails with inscrutable errors when logging large messages on Windows

2017-02-01 Thread Charlie Sharpsteen (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Charlie Sharpsteen updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7153 
 
 
 
  Puppet fails with inscrutable errors when logging large messages on Windows  
 
 
 
 
 
 
 
 
 

Change By:
 
 Charlie Sharpsteen 
 
 
 
 
 
 
 
 
 
 The Windows event log has limits on the amount of data it will accept when logging a message:https://msdn.microsoft.com/en-us/library/windows/desktop/aa363679(v=vs.85).aspxThese limits can be exceeded by {{exec}} resources which log a large volume of data. For example, a verbose recursive copy of a deep directory tree.h2. Reproduction Case  1. Install the Puppet agent on Windows Server 2012 or newer.  2. Install the Powershell module:{code}puppet module install puppetlabs/powershell{code}  3. Create a manifest with the following content:{code:puppet}# large_output.ppexec{'log large output':  # Repeat a character 32,000 times. Should trigger the event log limit  command => 'Write-Output ("x" * 32000)',  provider => powershell,  logoutput => true,}{code}  4. Apply the manifest and send output to the event log:{code}puppet apply large_output.pp --logdest=eventlog --logdest=console{code}h3. OutcomeThe command fails with a terse, cryptic message like:{noformat}PS C:\Users\Administrator> puppet apply test.pp --logdest=eventlog --logdest=consoleNotice: Compiled catalog for pe-201642-agent-win2012 in environment production in 0.27 secondsError: The parameter is incorrect. - ReportEventError: /Stage[main]/Main/Exec[test log large output]/returns: change from notrun to 0 failed: The parameter is incorrect. - ReportEventNotice: Applied catalog in 2.89 seconds{noformat}Or:{noformat}PS C:\Users\Administrator> puppet apply test.pp --logdest=eventlog --logdest=consoleNotice: Compiled catalog for pe-201642-agent-win2012 in environment production in 0.27 secondsError: The parameter is incorrect. - ReportEventError: /Stage[main]/Main/Exec[test log large output]/returns: change from notrun to 0 failed: Too many links. - ReportEventNotice: Applied catalog in 2.89 seconds{noformat} Detailed error trace:{noformat}PS C:\Users\Administrator> puppet apply test.pp --logdest=eventlog --logdest=console --traceNotice: Compiled catalog for pe-201642-agent-win2012 in environment production in 0.28 secondsError: The parameter is incorrect. - ReportEventC:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/gems/2.1.0/gems/win32-eventlog-0.6.2/lib/win32/eventlog.rb:717:in`report_event'C:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/util/log/destinations.rb:241:in `handle'C:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/util/log.rb:176:in `block in newmessage'C:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/util/log.rb:175:in `each'C:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/util/log.rb:175:in `newmessage'C:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/util/log.rb:268:in `initialize'C:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/util/log.rb:87:in `new'C:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/util/log.rb:87:in `create'C:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/util/logging.rb:12:in `send_log'C:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/vendor_ruby/puppet/util/logging.rb:21:in `block (2 le

Jira (PUP-7153) Puppet fails with inscrutable errors when logging large messages on Windows

2017-02-01 Thread Charlie Sharpsteen (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Charlie Sharpsteen updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7153 
 
 
 
  Puppet fails with inscrutable errors when logging large messages on Windows  
 
 
 
 
 
 
 
 
 

Change By:
 
 Charlie Sharpsteen 
 
 
 
 
 
 
 
 
 
 The Windows event log has limits on the amount of data it will accept when logging a message:https://msdn.microsoft.com/en-us/library/windows/desktop/aa363679(v=vs.85).aspxThese limits can be exceeded by {{exec}} resources which log a large volume of data. For example, a verbose recursive copy of a deep directory tree.h2. Reproduction Case  1. Install the Puppet agent on Windows Server 2012 or newer.  2. Install the Powershell module:{code}puppet module install puppetlabs/powershell{code}  3. Create a manifest with the following content:{code:puppet}# large_output.ppexec{'log large output':  # Repeat a character 32,000 times. Should trigger the event log limit  command => 'Write-Output ("x" * 32000)',  provider => powershell,  logoutput => true,}{code}  4. Apply the manifest and send output to the event log:{code}puppet apply large_output.pp --logdest=eventlog --logdest=console{code}h3. OutcomeThe command fails with a terse, cryptic message like:{noformat}PS C:\Users\Administrator> puppet apply test.pp --logdest=eventlog --logdest=consoleNotice: Compiled catalog for pe-201642-agent-win2012 in environment production in 0.27 secondsError: The parameter is incorrect. - ReportEventError: /Stage[main]/Main/Exec[test log large output]/returns: change from notrun to 0 failed: The parameter is incorrect. - ReportEventNotice: Applied catalog in 2.89 seconds{noformat}Or:{noformat} PS C:\Users\Administrator> puppet apply test.pp --logdest=eventlog --logdest=consoleNotice: Compiled catalog for pe-201642-agent-win2012 in environment production in 0.27 seconds Error:  The parameter is incorrect. - ReportEventError: /Stage[main]/Main/Exec[test log large output]/returns: change from notrun to 0 failed:  Too many links. - ReportEvent Notice: Applied catalog in 2.89 seconds {noformat}h3. Expected OutcomeThe Puppet Agent should split, truncate or drop large messages and log a better error explaining what happened. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 

Jira (PUP-7153) Puppet fails with inscrutable errors when logging large messages on Windows

2017-02-01 Thread Charlie Sharpsteen (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Charlie Sharpsteen updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7153 
 
 
 
  Puppet fails with inscrutable errors when logging large messages on Windows  
 
 
 
 
 
 
 
 
 

Change By:
 
 Charlie Sharpsteen 
 
 
 
 
 
 
 
 
 
 The Windows event log has limits on the amount of data it will accept when logging a message:https://msdn.microsoft.com/en-us/library/windows/desktop/aa363679(v=vs.85).aspxThese limits can be exceeded by {{exec}} resources which log a large volume of data. For example, a verbose recursive copy of a deep directory tree.h2. Reproduction Case  1. Install the Puppet agent on Windows Server 2012 or newer.  2. Install the Powershell module:{code}puppet module install puppetlabs/powershell{code}  3. Create a manifest with the following content:{code:puppet}# large_output.ppexec{'log large output':  # Repeat a character 32,000 times. Should trigger the event log limit  command => 'Write-Output ("x" * 32000)',  provider => powershell,  logoutput => true,}{code}  4. Apply the manifest and send output to the event log:{code}puppet apply large_output.pp --logdest=eventlog --logdest=console{code}h3. OutcomeThe command fails with a terse, cryptic message like:{noformat} PS C:\Users\Administrator> puppet apply test.pp --logdest=eventlog --logdest=consoleNotice: Compiled catalog for pe-201642-agent-win2012 in environment production in 0.27 seconds Error: The parameter is incorrect. - ReportEvent Error: /Stage[main]/Main/Exec[test log large output]/returns: change from notrun to 0 failed: The parameter is incorrect. - ReportEventNotice: Applied catalog in 2.89 seconds {noformat}Or:{noformat}Error: Too many links. - ReportEvent{noformat}h3. Expected OutcomeThe Puppet Agent should split, truncate or drop large messages and log a better error explaining what happened. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

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

Jira (PUP-7153) Puppet fails with inscrutable errors when logging large messages on Windows

2017-02-01 Thread Charlie Sharpsteen (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Charlie Sharpsteen updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7153 
 
 
 
  Puppet fails with inscrutable errors when logging large messages on Windows  
 
 
 
 
 
 
 
 
 

Change By:
 
 Charlie Sharpsteen 
 
 
 
 
 
 
 
 
 
 The Windows event log has limits on the amount of data it will accept when logging a message:https://msdn.microsoft.com/en-us/library/windows/desktop/aa363679(v=vs.85).aspxThese limits can be exceeded by {{exec}} resources which log a large volume of data. For example, a  verbose  recursive copy of a deep directory tree.h2. Reproduction Case  1. Install the Puppet agent on Windows Server 2012 or newer.  2. Install the Powershell module:{code}puppet module install puppetlabs/powershell{code}  3. Create a manifest with the following content:{code:puppet}# large_output.ppexec{'log large output':  # Repeat a character 32,000 times. Should trigger the event log limit  command => 'Write-Output ("x" * 32000)',  provider => powershell,  logoutput => true,}{code}  4. Apply the manifest and send output to the event log:{code}puppet apply large_output.pp --logdest=eventlog --logdest=console{code}h3. OutcomeThe command fails with a terse, cryptic message like:{noformat}Error: The parameter is incorrect. - ReportEvent{noformat}Or:{noformat}Error: Too many links. - ReportEvent{noformat}h3. Expected OutcomeThe Puppet Agent should split, truncate or drop large messages and log a better error explaining what happened. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 fro

Jira (PUP-7153) Puppet fails with inscrutable errors when logging large messages on Windows

2017-02-01 Thread Charlie Sharpsteen (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Charlie Sharpsteen created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7153 
 
 
 
  Puppet fails with inscrutable errors when logging large messages on Windows  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Affects Versions:
 

 PUP 4.8.2 
 
 
 

Assignee:
 

 Unassigned 
 
 
 

Components:
 

 Windows 
 
 
 

Created:
 

 2017/02/01 6:28 AM 
 
 
 

Environment:
 
 
Windows Agent 
 
 
 

Priority:
 
  Normal 
 
 
 

Reporter:
 
 Charlie Sharpsteen 
 
 
 
 
 
 
 
 
 
 
The Windows event log has limits on the amount of data it will accept when logging a message: 
https://msdn.microsoft.com/en-us/library/windows/desktop/aa363679(v=vs.85).aspx 
These limits can be exceeded by exec resources which log a large volume of data. For example, a recursive copy of a deep directory tree. 
Reproduction Case 
 1. Install the Puppet agent on Windows Server 2012 or newer. 
 2. Install the Powershell module: