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

Service { hasstatus=false/pattern } doesn't work in Puppet 4

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: PUP 4.0.0
    • Fix Version/s: None
    • Component/s: Types and Providers
    • Labels:
      None
    • Environment:

      Puppet SC1

    • Template:

      Description

      The following resource:

           service { 'netbackup':
            ensure    => 'running',
            enable    => true,
            start     => '/opt/symantec/netbackup/netbackup/bin/bp.start_all',
            stop      => '/opt/symantec/netbackup/netbackup/bin/bp.kill_all',
            hasstatus => false,
            pattern   => 'bpcd',
            require   => File['bp.conf']
           }

      Doesn't work on RHEL6:

      Error: /Stage[main]/Netbackup/Service[netbackup]: Could not evaluate: private method `getpid' called for #<Puppet::Type::Service::ProviderRedhat:0x00000002bd4ed8>

      The pattern we're searching for exists in the process table:

      # ps auwx | grep bpcd
      root     49588  0.0  0.1 158148  3072 ?        S    16:03   0:00 /usr/openv/netbackup/bin/bpcd -standalone

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                kylo Kylo Ginsberg
                Reporter:
                alex.jurkiewicz Alex Jurkiewicz
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: