Jira (PUP-11459) Puppet::Util::Windows is undefined on non-Windows platforms

2022-02-17 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11459  
 
 
  Puppet::Util::Windows is undefined on non-Windows platforms   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Fix Version/s: 
 PUP 7.15.0  
 
 
Fix Version/s: 
 PUP 6.27.0  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)  
 
 

 
   
 

  
 

  
 

   





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


Jira (PUP-11459) Puppet::Util::Windows is undefined on non-Windows platforms

2022-02-17 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11459  
 
 
  Puppet::Util::Windows is undefined on non-Windows platforms   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Team: 
 Phoenix  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)  
 
 

 
   
 

  
 

  
 

   





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


Jira (PUP-11459) Puppet::Util::Windows is undefined on non-Windows platforms

2022-02-17 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11459  
 
 
  Puppet::Util::Windows is undefined on non-Windows platforms   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 

  
 
 
 
 

 
 The file {{lib/puppet/util/windows.rb}} defines a set of constants that should be available on all platforms, such as {{{Puppet::Util::Windows}}, {{{Puppet::Util::Windows::Service}} and {{Puppet::Util::Windows::Service::DEFAULT_TIMEOUT}}.It also requires Windows-specific code that is only safe to load on Windows, because the code tries to load native libraries, such as {{user32.dll}}.The problem is when puppet is running on a non-Windows platform, then {{lib/puppet/util/windows.rb}} is never loaded. As a result, trying to test a {{service}} resource using rspec-puppet fails when trying to reference the {{Puppet::Util::Windows}} constant. See PDK-1760 for steps to reproduce.A quicker reproduction is:{code}  bx $ bundle exec  ruby -e "require 'puppet'; puts Puppet::Util::Windows"Traceback (most recent call last):-e:1:in `': uninitialized constant Puppet::Util::Windows (NameError){code}  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)  
 
 

 
   
 

  
 
 

Jira (PUP-11459) Puppet::Util::Windows is undefined on non-Windows platforms

2022-02-17 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11459  
 
 
  Puppet::Util::Windows is undefined on non-Windows platforms   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Created: 
 2022/02/17 8:47 PM  
 
 
Priority: 
  Normal  
 
 
Reporter: 
 Josh Cooper  
 

  
 
 
 
 

 
 The file lib/puppet/util/windows.rb defines a set of constants that should be available on all platforms, such as {Puppet::Util::Windows, {Puppet::Util::Windows::Service and Puppet::Util::Windows::Service::DEFAULT_TIMEOUT. It also requires Windows-specific code that is only safe to load on Windows, because the code tries to load native libraries, such as user32.dll. The problem is when puppet is running on a non-Windows platform, then lib/puppet/util/windows.rb is never loaded. As a result, trying to test a service resource using rspec-puppet fails when trying to reference the Puppet::Util::Windows constant. See PDK-1760 for steps to reproduce. A quicker reproduction is:  
 
 
 
 
  bx ruby -e "require 'puppet'; puts Puppet::Util::Windows"  
 
 
 Traceback (most recent call last):  
 
 
 -e:1:in `': uninitialized constant Puppet::Util::Windows (NameError)
  
 
 
 
   
 


Jira (PUP-11458) Transaction store file is corrupt with Puppet::Util::Execution::ProcessOutput

2022-02-17 Thread Franck Jouvanceau (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Franck Jouvanceau commented on  PUP-11458  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Transaction store file is corrupt with Puppet::Util::Execution::ProcessOutput   
 

  
 
 
 
 

 
 The bug seems more at fiddyspence/sysctl module, casting the values to strings is solving the pb.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)  
 
 

 
   
 

  
 

  
 

   





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


Jira (PUP-5402) systemd: Puppet agent starts before network-online.target is reached

2022-02-17 Thread James Paton-Smith (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 James Paton-Smith commented on  PUP-5402  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: systemd: Puppet agent starts before network-online.target is reached   
 

  
 
 
 
 

 
 Looks like the same issue on Ubuntu 20.04.3 with Puppet 6.26.0  
 
 
 
 
 # /lib/systemd/system/puppet.service  
 
 
 #  
 
 
 # Local settings can be configured without being overwritten by package upgrades, for example  
 
 
 # if you want to increase puppet open-files-limit to 1,  
 
 
 # you need to increase systemd's LimitNOFILE setting, so create a file named  
 
 
 # "/etc/systemd/system/puppet.service.d/limits.conf" containing:  
 
 
 # [Service]  
 
 
 # LimitNOFILE=1  
 
 
 # You can confirm it worked by running systemctl daemon-reload  
 
 
 # then running systemctl show puppet | grep LimitNOFILE  
 
 
 #  
 
 
 [Unit]  
 
 
 Description=Puppet agent  
 

Jira (PUP-11458) Transaction store file is corrupt with Puppet::Util::Execution::ProcessOutput

2022-02-17 Thread Franck Jouvanceau (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Franck Jouvanceau created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11458  
 
 
  Transaction store file is corrupt with Puppet::Util::Execution::ProcessOutput   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Affects Versions: 
 PUP 6.22.0, PUP 6.26.0, PUP 7.14.0  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 Catalog Application  
 
 
Created: 
 2022/02/17 2:58 AM  
 
 
Priority: 
  Normal  
 
 
Reporter: 
 Franck Jouvanceau  
 

  
 
 
 
 

 
 On linux (CentOS/RedHat) with puppet agent 6 the following error appears during puppet run :  
 
 
 
 
 Error: Transaction store file /state/transactionstore.yaml is corrupt ((/state/transactionstore.yaml): Tried to load unspecified class: Puppet::Util::Execution::ProcessOutput); replacing  
 
 
 Wrapped exception:  
 
 
 Tried to load unspecified class: Puppet::Util::Execution::ProcessOutput
  
 
 
 
  in transactionstore.yaml:  
  

Jira (PUP-11457) CSR Custom Attributes / Extensions issue

2022-02-17 Thread Simon Baker (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Simon Baker commented on  PUP-11457  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: CSR Custom Attributes / Extensions issue   
 

  
 
 
 
 

 
 Excellent - thanks josh !  All working now   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)  
 
 

 
   
 

  
 

  
 

   





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