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

service_provider for debian wrong on buster

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: PUP 6.7.2
    • Fix Version/s: None
    • Component/s: Catalog Application
    • Labels:
    • Template:
      PUP Bug Template
    • Team:
      Night's Watch
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: 6.7.2
      Puppet Server Version: n/a
      OS Name/Version: Debian 10

      Services cannot be managed correctly on Debian buster because the `service_provider` code does not consider buster a systemd distribution.

      Desired Behavior:

      Puppet using systemd.

      Actual Behavior:

      Debug: Executing: '/usr/sbin/service puppet status'
      dpkg: error: --compare-versions takes three arguments: <version> <relation> <version>
       
      Type dpkg --help for help about installing and deinstalling packages [*];
      Use 'apt' or 'aptitude' for user-friendly package management;
      Type dpkg -Dhelp for a list of dpkg debug flag values;
      Type dpkg --force-help for a list of forcing options;
      Type dpkg-deb --help for help about manipulating *.deb files;
       
      Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
      Debug: Executing: '/usr/sbin/update-rc.d -f puppet remove'
      Debug: Executing: '/usr/sbin/update-rc.d puppet stop 00 1 2 3 4 5 6 .'
      Error: Execution of '/usr/sbin/update-rc.d puppet stop 00 1 2 3 4 5 6 .' returned 1: update-rc.d: error: unable to read /etc/init.d/puppet
      Error: /Stage[main]/Profile::Base/Service[puppet]/enable: change from 'true' to 'false' failed: Execution of '/usr/sbin/update-rc.d puppet stop 00 1 2 3 4 5 6 .' returned 1: update-rc.d: error: unable to read /etc/init.d/puppet
      

      The cause is following code in /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/service/systemd.rb:

        defaultfor :operatingsystem => :debian, :operatingsystemmajrelease => ["8", "stretch/sid", "9", "buster/sid"]
      

      This should not be a whitelist anymore. IMHO, it should be set as the Debian default, especially as PE 2018.1, as the oldest still supported version, has a minimum OS requirement of Debian 8 ('jessie') for the agent, which is a systemd distribution.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              towo Tobias Wolter
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support