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

Impossible to systemctl mask non-existing service

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Duplicate
    • PUP 6.15.0
    • None
    • Catalog Application
    • Split
    • CentOS 7
    • Needs Assessment
    • Needs Assessment

    Description

      Puppet Version: 6.15.0
      Puppet Server Version: 6.15.0
      OS Name/Version: CentOS 8

      puppet apply the following snippet

      service{'non-existing.service':
         ensure => mask,
      }
      

      results in. 

      Error: Could not disable non-existing.service: 
      Error: /Stage[main]/Main/Service[non-existing.service]/enable: change from 'false' to 'mask' failed: Could not disable foobar.service:
      

       
      Desired Behavior:
      A service can be masked irrespective of if the unit exists.

      systemctl mask non-existing.service
      Unit non-existing.service does not exist, proceeding anyway.
      Created symlink /etc/systemd/system/non-existing.service → /dev/null.
      

      and this is desirable since you want to mask things to stop a vendor setting
      winning later.

      puppet should proceed with the above mask for a non-existant service.
       
      Actual Behavior:

      The non-existant unit is not masked.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              traylenator Steve Traylen
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support