Jira (PUP-9333) Unable to mask static / oneshot services

3 views
Skip to first unread message

Oliver Freyermuth (JIRA)

unread,
Nov 27, 2018, 3:48:03 AM11/27/18
to puppe...@googlegroups.com
Oliver Freyermuth created an issue
 
Puppet / Bug PUP-9333
Unable to mask static / oneshot services
Issue Type: Bug Bug
Affects Versions: PUP 5.5.8
Assignee: Unassigned
Created: 2018/11/27 12:47 AM
Priority: Normal Normal
Reporter: Oliver Freyermuth

Puppet Version: 5.5.8
Puppet Server Version: 5.5.8
OS Name/Version: Ubuntu 18.04

Trying to mask a static / oneshot service:

puppet apply -d -e "service { 'motd-news': ensure => stopped, enable => mask }" 

silently fails, and yields the following in debug output:

Debug: Executing: '/bin/systemctl is-active motd-news'
Debug: Executing: '/bin/systemctl is-enabled motd-news'
Debug: Unable to enable or disable static service motd-news

Checking manually:

# systemctl is-active motd-news
failed
# systemctl is-enabled motd-news
static

Masking and unmasking manually works fine:

# systemctl mask motd-news
Created symlink /etc/systemd/system/motd-news.service → /dev/null.
# systemctl unmask motd-news
Removed /etc/systemd/system/motd-news.service.

 

Desired Behavior:

Mask and unmask should also work with static services, and never silently fail.

 

Actual Behavior:

Mask fails silently with static / oneshot services.

 

 

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

Josh Cooper (JIRA)

unread,
Nov 27, 2018, 8:12:02 PM11/27/18
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Team: Platform OS

Scott McClellan (JIRA)

unread,
Dec 10, 2018, 2:39:04 PM12/10/18
to puppe...@googlegroups.com
Scott McClellan updated an issue
Change By: Scott McClellan
Labels: linux service systemd type_and_provider

Paul Raines (Jira)

unread,
Aug 31, 2020, 4:32:02 PM8/31/20
to puppe...@googlegroups.com
Paul Raines commented on Bug PUP-9333
 
Re: Unable to mask static / oneshot services

Found this bug in my install of 6.16.0 on CentOS8 with

service

{ 'systemd-logind': name => 'systemd-logind', ensure => stopped, enable => mask, }

The stopping works, but it does not mask it.  Just silently fails.

 

This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Josh Cooper (Jira)

unread,
Jun 9, 2021, 10:05:03 PM6/9/21
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-9333

Marking this as a dup of PUP-7995

This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages