RebootNodeIfNeeded=False, and a reboot is required, partial configs dont finish

Welcome Forums DSC (Desired State Configuration) RebootNodeIfNeeded=False, and a reboot is required, partial configs dont finish

This topic contains 2 replies, has 3 voices, and was last updated by

 
Participant
2 years, 3 months ago.

  • Author
    Posts
  • #27225

    Participant
    Points: 0
    Rank: Member

    Hi all, I've submitted a bug on Connect (https://connect.microsoft.com/PowerShell/Feedback/Details/1515243). I probably should have checked here to see if anyone else is experiencing it before submitting.

    Has anyone else experienced this?

    Reproduction Steps

    1. Create a 2 partial configurations. The first configuration should contain a resource that requests a reboot.

    2. Define the partial configurations a meta MOF and deploy to a computer

    When you run Update-DscConfiguration against that computer, the DSC engine will stop configuring after the first partial configuration with a warning saying the computer needs to be rebooted. The DSC engine does NOT continue with the second partial configuration until a reboot is performed or a force consistency check.

    Invoke-CimMethod -ComputerName MyComputer -Name PerformRequiredConfigurationChecks -Namespace root/Microsoft/Windows/DesiredStateConfiguration -Arguments @{Flags=[Uint32]2} -ClassName MSFT_DscLocalConfigurationManager

    Expected Results

    If I configure a meta mof with a normal configuration.... (See example A), as per the MS document, the DSC engine runs ResourceA to ResourceD. This is the expected result.

    Meta MOF example (A)
    ————————-

    Normal Configuration

    ResourceA – (Declares reboot required)
    ResourceB
    ResourceC
    ResourceD

    However, if I configure a meta mof with a partial configuration.... (See example B), the DSC engine runs ResourceA to ResourceB then stops. The configuration is NOT completed.

    The expected result should be the DSC engine runs ResourceA to ResourceD if RebootNodeIfNeeded is set to False.

    Meta MOF example (B)
    ————————-

    Partial Configuration 1

    ResourceA – (Declares reboot required)
    ResourceB

    Partial Configuration 2

    ResourceC
    ResourceD

  • #27254

    Keymaster
    Points: 1,704
    Helping HandTeam Member
    Rank: Community Hero

    I suspect that logging this as a bug on Connect is the right thing to do. I know composite configs have a few oddities – like an inability to unwind DependsOn – and this may be related. I was able to duplicate what you've done, although I'd not previously tried it.

  • #50939

    Participant
    Points: 0
    Rank: Member

    Hi all,
    I also got this issue and found this thread. Does anybody know when this bug will be fixed?

The topic ‘RebootNodeIfNeeded=False, and a reboot is required, partial configs dont finish’ is closed to new replies.