Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-9333

Unable to mask static / oneshot services

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: PUP 5.5.8
    • Fix Version/s: None
    • Component/s: None
    • Template:
      PUP Bug Template
    • Team:
      Platform OS
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      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.

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              olifre Oliver Freyermuth
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Zendesk Support