Jira (PUP-11034) Unable to 'mask' a 'static' systemd service

2021-05-19 Thread Claire Cadman (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Claire Cadman updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11034  
 
 
  Unable to 'mask' a 'static' systemd service   
 

  
 
 
 
 

 
Change By: 
 Claire Cadman  
 
 
Labels: 
 community  doc-reviewed  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)  
 
 

 
   
 

  
 

  
 

   





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


Jira (PUP-11034) Unable to 'mask' a 'static' systemd service

2021-05-17 Thread Gabriel Nagy (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Gabriel Nagy updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11034  
 
 
  Unable to 'mask' a 'static' systemd service   
 

  
 
 
 
 

 
Change By: 
 Gabriel Nagy  
 
 
Fix Version/s: 
 PUP 7.7.0  
 
 
Fix Version/s: 
 PUP 6.23.0  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)  
 
 

 
   
 

  
 

  
 

   





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


Jira (PUP-11034) Unable to 'mask' a 'static' systemd service

2021-05-17 Thread Gabriel Nagy (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Gabriel Nagy commented on  PUP-11034  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Unable to 'mask' a 'static' systemd service   
 

  
 
 
 
 

 
 Merged to 6.x in https://github.com/puppetlabs/puppet/commit/807671f0f0b424b0c7ee4e9465f362578eb1ed2c  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)  
 
 

 
   
 

  
 

  
 

   





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


Jira (PUP-11034) Unable to 'mask' a 'static' systemd service

2021-04-29 Thread Mihai Buzgau (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mihai Buzgau updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11034  
 
 
  Unable to 'mask' a 'static' systemd service   
 

  
 
 
 
 

 
Change By: 
 Mihai Buzgau  
 
 
Labels: 
 community  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)  
 
 

 
   
 

  
 

  
 

   





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


Jira (PUP-11034) Unable to 'mask' a 'static' systemd service

2021-04-28 Thread Nick Maludy (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Nick Maludy updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11034  
 
 
  Unable to 'mask' a 'static' systemd service   
 

  
 
 
 
 

 
Change By: 
 Nick Maludy  
 

  
 
 
 
 

 
 *Puppet Version: 7.6.1* *Puppet Server Version: N/A* *OS Name/Version: CentOS 8.3*I'm trying to translate the following command into Puppet:{code:java}systemctl stop systemd-coredump.socketsystemctl mask systemd-coredump.socket{code}The Puppet code i've written to do this is:{code:java}service { 'systemd-coredump.socket':   ensure => 'stopped',   enable => 'mask',}{code}*Desired Behavior:*I would expect the service to be stopped and masked.*Actual Behavior:*The service is a 'static' service on the system and is resulting in a debug log being printed:{code:java}debug - Puppet - Executing: '/bin/systemctl is-enabled -- systemd-coredump.socket'debug - Puppet - Unable to enable or disable static service systemd-coredump.socket{code}Running the systemctl commands manually, works just fine.Doing a little digging, i found the following code:[https://github.com/puppetlabs/puppet/blob/main/lib/puppet/provider/service/systemd.rb#L42-L56]The comment in the block is accurate, however a little misleading because 'static' services are allowed to be 'masked'.   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)  
 
 

 
   

Jira (PUP-11034) Unable to 'mask' a 'static' systemd service

2021-04-28 Thread Nick Maludy (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Nick Maludy commented on  PUP-11034  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Unable to 'mask' a 'static' systemd service   
 

  
 
 
 
 

 
 Workaround:  
 
 
 
 
   exec { "systemctl mask -- ${service}":  
 
 
 path   => ['/usr/bin/', '/sbin', '/bin'],  
 
 
 unless => "systemctl status -- ${service} | grep -q masked",  
 
 
   }   
 
 
 
   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the 

Jira (PUP-11034) Unable to 'mask' a 'static' systemd service

2021-04-28 Thread Nick Maludy (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Nick Maludy updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11034  
 
 
  Unable to 'mask' a 'static' systemd service   
 

  
 
 
 
 

 
Change By: 
 Nick Maludy  
 

  
 
 
 
 

 
 *Puppet Version: 7.6.1* *Puppet Server Version: N/A* *OS Name/Version: CentOS 8.3*I'm trying to translate the following command into Puppet:{code:java}  systemctl stop systemd-coredump.socketsystemctl mask systemd-coredump.socket{code}The Puppet code i've written to do this is:{code:java}  service { 'systemd-coredump.socket':   ensure => 'stopped',   enable => 'mask',}{code}*Desired Behavior:*I would expect the service to be stopped and masked.*Actual Behavior:*The service is a 'static' service on the system and is resulting in a debug log being printed:{code:java}  debug - Puppet -  Executing: '/bin/systemctl is-enabled -- systemd-coredump.socket'debug - Puppet -  Unable to enable or disable static service systemd-coredump.socket {code} ` Please take a moment and attach any relevant log output and/or manifests. This will help us immensely when troubleshooting Running  the  issue  systemctl commands manually, works just fine . Examples Doing a little digging, i found the following code :  Run puppet agent with --test --trace --debugRelevant sections of {{ [https: / var / log github.com /puppetlabs/ puppetserver puppet / puppetserver blob/main/lib/puppet/provider/service/systemd . log}} or any applicable logs from the same directory. rb#L42-L56]  For more detailed information turn up the server logs by upping the log level The comment  in the  server's logback.xmlRelevant sections of configurations files (puppet.conf  block is accurate ,  hiera.conf, Server  however a little misleading because ' s conf static' services are allowed to be 'masked' . d, defaults/sysconfig)  For memory issues with server heap dumps are also helpful.    
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

Jira (PUP-11034) Unable to 'mask' a 'static' systemd service

2021-04-28 Thread Nick Maludy (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Nick Maludy created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11034  
 
 
  Unable to 'mask' a 'static' systemd service   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Affects Versions: 
 PUP 7.6.0  
 
 
Assignee: 
 Unassigned  
 
 
Created: 
 2021/04/28 12:55 PM  
 
 
Priority: 
  Normal  
 
 
Reporter: 
 Nick Maludy  
 

  
 
 
 
 

 
 Puppet Version: 7.6.1 Puppet Server Version: N/A OS Name/Version: CentOS 8.3 I'm trying to translate the following command into Puppet:  
 
 
 
 
 systemctl stop systemd-coredump.socket  
 
 
 systemctl mask systemd-coredump.socket  
 
 
 
  The Puppet code i've written to do this is:  
 
 
 
 
 service { 'systemd-coredump.socket':  
 
 
ensure => 'stopped',