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

service : "enable => delayed" triggers error on Server 2019

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      Windows Server 2019 - 1809 (OS Build 17763.107)

      Tested issue on VMware and Dell bare-metal server platform.

    • Template:
    • Acceptance Criteria:
      Hide

      Ability to set service to delayed start in Server 2019.

      Show
      Ability to set service to delayed start in Server 2019.
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Basic Info
      Module Version:
      Puppet Version: 6.9.0
      OS Name/Version: Windows Server 2019 - 1809 (OS Build 17763.107)

      Describe your issue in as much detail as possible...

      When attempting to set a service to delayed start using enable => delayed Puppet throws an error. I performed a sanity check on Server 2012 and did not get the error.

      Here is the code block for more context:

         'windows': {
            package { 'sfxcollector':
              ensure            => 'latest',
              provider          => 'chocolatey',
              install_options   => ['-pre'],
              uninstall_options => ['-r'],
            }
            service { 'sfxcollector':
              ensure => 'running',
              enable => delayed,
            }
          }
      

      I spoke with James Pogran in Slack and he suggested I create a ticket.

      Desired Behavior:

      Notice: /Stage[main]/Sfxcollector/Service[sfxcollector]/enable: current_value 'true', should be 'delayed' (noop)
      Notice: Class[Sfxcollector]: Would have triggered 'refresh' from 1 event{code}
      

      Actual Behavior:
       

      Error: The windows provider can not handle attribute enable
      Error: /Stage[main]/Sfxcollector/Service[sfxcollector]/enable: change from 'true' to 'delayed' failed: The windows provider can not handle attribute enable
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              james.pogran James Pogran
              Reporter:
              jzhang_stackoverflow Josh Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support