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

'puppet resource service' does not return all active services on Ubuntu

    XMLWordPrintable

    Details

    • Template:
      PUP Bug Template
    • Team:
      Night's Watch
    • Story Points:
      3
    • Sprint:
      NW - 2020-04-15, NW - 2020-04-29
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Consistency fix in puppet's behaviour when listing information about a single specific service and all available ones by showing services in a 'bad' state in both cases.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: 6.14.0
      Puppet Server Version: whatever's in PE 2019.5.0
      OS Name/Version: Ubuntu 18.04.4

      $ puppet resource service pe-postgresql
      service { 'pe-postgresql':
        ensure   => 'running',
        enable   => 'true',
        provider => 'systemd',
      }
      $ puppet resource service | grep pe-postgresql
      $ 

      Desired Behavior:

      pe-postgresql should be listed when listing all services, because it definitely exists.

      Actual Behavior:

      Seems to be omitted. Some related debugging

      systemctl list-unit-files --type service --full | grep pe-postgresql
      pe-postgresql.service                  bad
      pe-postgresql11.service                static
      pe-postgresql96.service                static

       

        Attachments

          Activity

            People

            Assignee:
            luchian.nemes Luchian Nemes
            Reporter:
            michael.smith Michael Smith
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support