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

Puppet can't mask systemd's static unit

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: PUP 4.10.6
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      lsb_release -a
      LSB Version: :core-4.1-amd64:core-4.1-noarch
      Distributor ID: CentOS
      Description: CentOS Linux release 7.3.1611 (Core)
      Release: 7.3.1611
      Codename: Core

      puppet --version
      4.10.6

    • Template:
    • Team:
      Platform OS
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      I'm trying to stop rpc-svcgssd.service on some servers.

      This service is marked as static:
      systemctl status rpc-svcgssd.service
      rpc-svcgssd.service - RPC security service for NFS server
      Loaded: loaded (/usr/lib/systemd/system/rpc-svcgssd.service; static; vendor preset: disabled)
      Active: inactive (dead)

      And that prevent it to be masked;
      puppet resource service rpc-svcgssd.service enable=mask
      service

      { 'rpc-svcgssd.service': enable => 'true', }

      And I I launch with --debug:
      Debug: Executing: '/usr/bin/systemctl is-enabled rpc-svcgssd.service'
      Debug: Unable to enable or disable static service rpc-svcgssd.service

      Indeed, that's why I want to mask it instead of simply disable it.

      systemctl says:
      /usr/bin/systemctl is-enabled rpc-svcgssd.service
      static

      But worst;
      If I put that in my modules:
      service

      {'rpc-svcgssd': enable => mask, }

      It don't fails, so I'm even not aware that masking fails.

      The easy work around is to add a symlink to /dev/null, that's how mask works.

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                fbacchella Fabrice Bacchella
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: