Jira (PUP-10097) Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent

2019-10-31 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-10097  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent   
 

  
 
 
 
 

 
 So there are a few different things going on. 1. When using a puppet 5.x agent and 5.x/6.x server, the resulting file is the base64 encoded content (since rich_data is off on the agent). In other words, binary file content doesn't seem to work:  
 
 
 
 
 $ od -t c /tmp/test  
 
 
 000x   9   H   8   h   A   =   =
  
 
 
 
  2. Enabling rich data on both 5.x agent and 5.x/6.x server does not work, because we didn't make the loaders available agent side until puppet 6:  
 
 
 
 
 $ bundle exec puppet agent -t  
 
 
 Info: Using configured environment 'production'  
 
 
 Info: Retrieving pluginfacts  
 
 
 Info: Retrieving plugin  
 
 
 Info: Retrieving locales  
 
 
 Error: Could not retrieve catalog from remote server: Could not intern from application/json: Internal Error: Puppet Context ':loaders' missing
  
 
 
 
  3. Puppet only displays diffs when it updates an existing file. It doesn't display a diff when creating a new file. So to reliably trigger this issue you have to create a mismatched file. 4. The show_diff setting is automatically enabled when running puppet agent -t, but not puppet apply. This issue is 

Jira (PUP-10097) Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent

2019-10-31 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper assigned an issue to Josh Cooper  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10097  
 
 
  Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Assignee: 
 Josh Cooper  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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.328673.1570644934000.15652.1572555420336%40Atlassian.JIRA.


Jira (PUP-10097) Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent

2019-10-31 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper assigned an issue to Unassigned  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10097  
 
 
  Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Assignee: 
 Josh Cooper  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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.328673.1570644934000.15654.1572555420344%40Atlassian.JIRA.


Jira (PUP-10097) Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent

2019-10-22 Thread Patrick Grant (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Patrick Grant updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10097  
 
 
  Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent   
 

  
 
 
 
 

 
Change By: 
 Patrick Grant  
 
 
CS Priority: 
 Needs Priority  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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.328673.1570644934000.307.1571740260373%40Atlassian.JIRA.


Jira (PUP-10097) Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent

2019-10-22 Thread Mihai Buzgau (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mihai Buzgau updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10097  
 
 
  Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent   
 

  
 
 
 
 

 
Change By: 
 Mihai Buzgau  
 
 
Zendesk Ticket IDs: 
 36615  
 
 
Zendesk Ticket Count: 
 1  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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.328673.1570644934000.85.1571735821299%40Atlassian.JIRA.


Jira (PUP-10097) Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent

2019-10-11 Thread Brett Gray (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Brett Gray commented on  PUP-10097  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent   
 

  
 
 
 
 

 
 Ok Henrik Lindberg, I will raise a new ticket and let you know when I have done it.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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.328673.1570644934000.139720.1570779240199%40Atlassian.JIRA.


Jira (PUP-10097) Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent

2019-10-11 Thread Henrik Lindberg (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Henrik Lindberg commented on  PUP-10097  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent   
 

  
 
 
 
 

 
 Brett Gray it cannot be the very same issue since this ticket is about Binary not working on Puppet 5 even after turning on the (then experimental) support for rich data in catalogs. Your problem must be something else as you are on Puppet 6. It would help If you can help us with a simple reproducer for your issue and file a separate ticket.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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.328673.1570644934000.139714.1570778460239%40Atlassian.JIRA.


Jira (PUP-10097) Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent

2019-10-11 Thread Brett Gray (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Brett Gray commented on  PUP-10097  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent   
 

  
 
 
 
 

 
 I have this issue in 6.4.3 as well  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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.328673.1570644934000.139702.1570773780346%40Atlassian.JIRA.


Jira (PUP-10097) Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent

2019-10-10 Thread Vadym Chepkov (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Vadym Chepkov commented on  PUP-10097  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent   
 

  
 
 
 
 

 
 Still no Puppet 6 based PE LTS...   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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.328673.1570644934000.137823.1570715640191%40Atlassian.JIRA.


Jira (PUP-10097) Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent

2019-10-10 Thread Henrik Lindberg (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Henrik Lindberg commented on  PUP-10097  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent   
 

  
 
 
 
 

 
 Sorry, Binary is pretty much not a working feature in catalogs/agents before Puppet 6. I doubt we will be able to backport all required fixes to Puppet 5.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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.328673.1570644934000.137682.1570690680186%40Atlassian.JIRA.


Jira (PUP-10097) Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent

2019-10-09 Thread Vadym Chepkov (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Vadym Chepkov commented on  PUP-10097  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent   
 

  
 
 
 
 

 
 I have enabled rich_data on both servers and agent, restarted puppetserver, receive new error:  
 
 
 
 
 Error: Could not retrieve catalog from remote server: Could not intern from application/json: Internal Error: Puppet Context ':loaders' missing  
 
 
 Warning: Not using cache on failed catalog  
 
 
 Error: Could not retrieve catalog; skipping run  
 
 
 
  
 
 
 
   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
   

Jira (PUP-10097) Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent

2019-10-09 Thread Henrik Lindberg (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Henrik Lindberg commented on  PUP-10097  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent   
 

  
 
 
 
 

 
 Before 6 you had to configure both the agent and master with "rich_data=true" setting IIRC, and I think there was other issues as well that were addressed in Puppet 6 where rich data catalog is now both the default and is negotiated between agent and master.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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.328673.1570644934000.137188.1570656660270%40Atlassian.JIRA.


Jira (PUP-10097) Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent

2019-10-09 Thread Garrett Guillotte (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Garrett Guillotte commented on  PUP-10097  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent   
 

  
 
 
 
 

 
 Confirmed that I cannot reproduce on 6.4.3 / PE 2019.1.1.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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.328673.1570644934000.136643.1570647240286%40Atlassian.JIRA.


Jira (PUP-10097) Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent

2019-10-09 Thread Garrett Guillotte (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Garrett Guillotte commented on  PUP-10097  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent   
 

  
 
 
 
 

 
 This might be a duplicate of PUP-9110 / PUP-3600. If so, the inability to handle Binary type data in catalogs should be noted as a known issue in Puppet 5.5 that is resolved in Puppet 6.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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.328673.1570644934000.136632.1570646760151%40Atlassian.JIRA.


Jira (PUP-10097) Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent

2019-10-09 Thread Garrett Guillotte (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Garrett Guillotte updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10097  
 
 
  Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent   
 

  
 
 
 
 

 
Change By: 
 Garrett Guillotte  
 
 
Zendesk Ticket IDs: 
 36615  
 
 
Zendesk Ticket Count: 
 1  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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.328673.1570644934000.136600.1570646460299%40Atlassian.JIRA.


Jira (PUP-10097) Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent

2019-10-09 Thread Garrett Guillotte (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Garrett Guillotte updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10097  
 
 
  Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent   
 

  
 
 
 
 

 
Change By: 
 Garrett Guillotte  
 

  
 
 
 
 

 
 *Puppet Version:* 5.5.16*Puppet Server Version:* PE 2018.1.9*OS Name/Version:* RHEL 7.6*Desired Behavior:*{{puppet agent}} can manage the contents of a {{file}} resource that uses a {{Binary}} type for its contents, with behavior consistent with {{puppet apply}} running the same manifest.*Actual Behavior:*Attempting to write binary file content represented in hex as {{c7 d1 fc 84}}, converted to base64 and passed as {{Binary('x9H8hA==')}}, editing {{/etc/puppetlabs/code/environments/production/manifests/site.pp}}:{code}[root@pe-201819-master manifests]# cat site.pp## site.pp ### This file (/etc/puppetlabs/puppet/manifests/site.pp) is the main entry point...node default {  # This is where you can declare classes for all nodes.  # Example:  #   class { 'my_class': }  file { '/tmp/test':ensure  => present,content => Binary('x9H8hA=='),  }}[root@pe-201819-master manifests]# puppet apply site.ppNotice: Compiled catalog for pe-201819-master.puppetdebug.vlan in environment production in 0.02 secondsNotice: /Stage[main]/Main/Node[default]/File[/tmp/test]/ensure: defined content as '{md5}387d16f3cb61048e6fb16cfd81367ce8'Notice: Applied catalog in 0.20 seconds[root@pe-201819-master manifests]# od -t x1 /tmp/test000 c7 d1 fc 84004{code}This is the expected result of applying the manifest. {{puppet apply}} works as expected.Running as {{puppet agent}} fails:{code}[root@pe-201819-master manifests]# puppet agent --testInfo: Using configured environment 'production'Info: Retrieving pluginfactsInfo: Retrieving pluginInfo: Retrieving localesInfo: Loading factsInfo: Caching catalog for pe-201819-master.puppetdebug.vlanInfo: Applying configuration version '1570644420'Notice: /Stage[main]/Main/Node[default]/File[/tmp/test]/content: Received a Log attribute with invalid encoding:"\n--- /tmp/test\t2019-10-09 18:06:34.850138853 +\n+++ /tmp/puppet-file20191009-20057-12z3c2w\t2019-10-09 18:07:15.397076080 +\n@@ -1 +1 @@\n-\xC7\xD1\xFC\x84\n\\ No newline at end of file\n+x9H8hA==\n\\ No newline at end of file\n"\nBacktrace:/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:190:in `newmessage'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:313:in `initialize'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:88:in `new'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:88:in `create'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/logging.rb:11:in `send_log'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/logging.rb:20:in `block (2 levels) in '/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/data_sync.rb:45:in `block in checksum_insync?'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/data_sync.rb:19:in `write_temporarily'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/data_sync.rb:44:in 

Jira (PUP-10097) Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent

2019-10-09 Thread Garrett Guillotte (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Garrett Guillotte updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10097  
 
 
  Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent   
 

  
 
 
 
 

 
Change By: 
 Garrett Guillotte  
 

  
 
 
 
 

 
 *Puppet Version:* 5.5.16*Puppet Server Version:* PE 2018.1.9*OS Name/Version:* RHEL 7.6*Desired Behavior:*{{puppet agent}} can manage the contents of a {{file}} resource that uses a {{Binary}} type for its contents, with behavior consistent with {{puppet apply}} running the same manifest.*Actual Behavior:*Attempting to write binary file content represented in hex as {{c7 d1 fc 84}}, converted to base64 and passed as {{Binary('x9H8hA==')}}, editing {{/etc/puppetlabs/code/environments/production/manifests/site.pp}}:{code}[root@pe-201819-master manifests]# cat site.pp## site.pp ### This file (/etc/puppetlabs/puppet/manifests/site.pp) is the main entry point...node default {  # This is where you can declare classes for all nodes.  # Example:  #   class { 'my_class': }  file { '/tmp/test':ensure  => present,content => Binary('x9H8hA=='),  }}[root@pe-201819-master manifests]# puppet apply site.ppNotice: Compiled catalog for pe-201819-master.puppetdebug.vlan in environment production in 0.02 secondsNotice: /Stage[main]/Main/Node[default]/File[/tmp/test]/ensure: defined content as '{md5}387d16f3cb61048e6fb16cfd81367ce8'Notice: Applied catalog in 0.20 seconds[root@pe-201819-master manifests]# od -t x1 /tmp/test000 c7 d1 fc 84004{code}This is the expected result of applying the manifest. {{puppet apply}} works as expected.Running as {{puppet agent}} fails:{code}[root@pe-201819-master manifests]# puppet agent --testInfo: Using configured environment 'production'Info: Retrieving pluginfactsInfo: Retrieving pluginInfo: Retrieving localesInfo: Loading factsInfo: Caching catalog for pe-201819-master.puppetdebug.vlanInfo: Applying configuration version '1570644420'Notice: /Stage[main]/Main/Node[default]/File[/tmp/test]/content: Received a Log attribute with invalid encoding:"\n--- /tmp/test\t2019-10-09 18:06:34.850138853 +\n+++ /tmp/puppet-file20191009-20057-12z3c2w\t2019-10-09 18:07:15.397076080 +\n@@ -1 +1 @@\n-\xC7\xD1\xFC\x84\n\\ No newline at end of file\n+x9H8hA==\n\\ No newline at end of file\n"\nBacktrace:/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:190:in `newmessage'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:313:in `initialize'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:88:in `new'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:88:in `create'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/logging.rb:11:in `send_log'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/logging.rb:20:in `block (2 levels) in '/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/data_sync.rb:45:in `block in checksum_insync?'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/data_sync.rb:19:in `write_temporarily'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/data_sync.rb:44:in 

Jira (PUP-10097) Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent

2019-10-09 Thread Garrett Guillotte (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Garrett Guillotte created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10097  
 
 
  Using Binary type as a File resource's contents works in puppet apply, but not in puppet agent   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Affects Versions: 
 PUP 5.5.16  
 
 
Assignee: 
 Unassigned  
 
 
Created: 
 2019/10/09 11:15 AM  
 
 
Priority: 
  Normal  
 
 
Reporter: 
 Garrett Guillotte  
 

  
 
 
 
 

 
 Puppet Version: 5.5.16 Puppet Server Version: PE 2018.1.9 OS Name/Version: RHEL 7.6 Desired Behavior: puppet agent can manage the contents of a file resource that uses a Binary type for its contents, with behavior consistent with puppet apply running the same manifest. Actual Behavior: Attempting to write binary file content represented in hex as c7 d1 fc 84, converted to base64 and passed as Binary('x9H8hA=='), editing /etc/puppetlabs/code/environments/production/manifests/site.pp:  
 
 
 
 
 [root@pe-201819-master manifests]# cat site.pp  
 
 
 ## site.pp ##  
 
 
    
 
 
 # This file (/etc/puppetlabs/puppet/manifests/site.pp) is the main entry point