Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-5686

puppetlabs-dsc : dsc_reboot warning

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: dsc, powershell
    • Labels:
      None
    • Template:
      MODULES Bug Template
    • Epic Link:
    • Team:
      Windows
    • Method Found:
      Customer Feedback
    • QA Risk Assessment:
      Needs Assessment

      Description

      Basic Info
      Module Version: 1.4.0
      Puppet Version: 4.8.2
      OS Name/Version: Windows Server 2016

      After rebuilding puppetlabs-dsc module with a new DSC resource (xSystemVirtualMemory), and using it to apply a configuration a message is presented and the machine is not rebooted.

      xSystemVirtualMemory DSC resource available here: https://github.com/msperrin/xSystemVirtualMemory/blob/master/DSCResources/xSystemVirtualMemory/xSystemVirtualMemory.psm1

      This resource tries to reboot the machine after changing the page file. Before, on puppetlabs-dsc version 1.3.0 this resource was working properly and rebooting after changing the page file. Now starting from version 1.3.1, the PowerShell provider was updated (https://github.com/puppetlabs/puppetlabs-dsc/blob/master/lib/puppet/provider/base_dsc/powershell.rb), the xSystemVirtualMemory is applied but it does not reboot and gives the following warning:

       
      No reboot resource found in the graph that has 'dsc_reboot' as its name. Cannot signal reboot to Puppet. 

      Desired Behavior:
      reboot the computer after applying the xSystemVirtualMemory resource

      Actual Behavior: After the puppet run, the agent gives a warning and the machine is not rebooted.

      Manifest used:

      # test a custom resource dsc_xsystemvirtualmemory { 'set-pagefile-with-dsc': dsc_configureoption => 'CustomSize', 
      dsc_initialsize => 2176,
      dsc_maximumsize => 4224, 
      dsc_driveletter => 'C:' }
      

        Attachments

          Activity

            People

            Assignee:
            james.pogran James Pogran
            Reporter:
            ricardogaspar2 Ricardo Gaspar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support