Obs/bin/ObsDep/content/Powershell/Roles/Common/RepairActionHelpers.psm1

<###################################################
 # #
 # Copyright (c) Microsoft. All rights reserved. #
 # #
 ##################################################>


Import-Module -Name "$PSScriptRoot\..\..\Common\Tracer.psm1" -DisableNameChecking
Import-Module -Name "$PSScriptRoot\RoleHelpers.psm1" -DisableNameChecking

function Get-SingleProvisioningRoleVM {

    [CmdletBinding()]
    param (
        [Parameter(Mandatory=$true)]
        [CloudEngine.Configurations.EceInterfaceParameters]
        $Parameters,

        [Parameter(Mandatory=$true)]
        [ValidateNotNullOrEmpty()]
        [string] $RoleId
    )

    $roleNodes = $Parameters.Roles[$RoleId].PublicConfiguration.Nodes.Node.Name
    $vmRole = $Parameters.Roles["VirtualMachines"].PublicConfiguration
    $provisioningNodes =  @($vmRole.Nodes.Node | Where-Object { $_.Name -in $roleNodes -and $_.ProvisioningStatus -ne "Complete" })

    if($provisioningNodes -and $provisioningNodes.Count -gt 1)
    {
        throw "Unexpected: More than one node is being provisioned for $RoleId. $($provisioningNodes.Name)"
    }
    elseif ($provisioningNodes -and $provisioningNodes.Count -eq 1)
    {
        Trace-Execution "Only one node is being provisioned for $RoleId. $($provisioningNodes[0].Name)"
        return $provisioningNodes[0].Name
    }
    else
    {
        Trace-Execution "No node for $RoleId is being provisioned."
        return $null
    }
}

function Get-VMNameToRestartForRepair
{
    [CmdletBinding()]
    Param (
        [Parameter(Mandatory = $true)]
        [CloudEngine.Configurations.EceInterfaceParameters]
        $Parameters,

        [Parameter(Mandatory=$true)]
        [ValidateNotNullOrEmpty()]
        [string] $RoleId
    )

    $roleNodes = $Parameters.Roles[$RoleId].PublicConfiguration.Nodes.Node.Name

    $nodeToRestart = $null
    $provisioningNodeName = Get-SingleProvisioningRoleVM -Parameters $Parameters -RoleId $RoleId
    if ($provisioningNodeName)
    {
        Trace-Execution "Temporarily setting $provisioningNodeName in provisioning to restart."
        $nodeToRestart = $provisioningNodeName
    }

    Trace-Execution "Analyzing action summary XML for related failure nodes."
    $runtimeParameters = $Parameters.RunInformation["RuntimeParameter"]
    $failureSummaryXml = $runtimeParameters["FailureSummaryXml"]
    if ($failureSummaryXml -ne $null)
    {
        $failureList = @(Read-SummaryXml -SummaryXML $failureSummaryXml)            
        $failedNodes = $failureList.ExecutionContextNode | where { $_ -in $roleNodes } | select -Unique
        if ($failedNodes.Count -eq 0)
        {
            Trace-Execution "No node specific failure for $RoleId reported in action summary XML."
        }
        elseif ($failedNodes.Count -gt 1)
        {
            throw "More than one node for $RoleId reported failure in summary XML: $failedNodes."
        }
        elseif ($provisioningNodeName -and $provisioningNodeName -ne $failedNodes)
        {
            throw "$RoleId reported failure for $failedNodes but another node is in provisioning: $provisioningNodeName."
        }
        else
        {
            Trace-Execution "Setting $failedNodes to restart."
            $nodeToRestart = $failedNodes
        }
    }

    return $nodeToRestart
}

function Get-RestartVMForRepairEvaluation
{
    [CmdletBinding()]
    [OutputType([CloudEngine.Actions.ConditionalActionDescription])]
    Param (
        [Parameter(Mandatory = $true)]
        [CloudEngine.Configurations.EceInterfaceParameters]
        $Parameters,
        [Parameter(Mandatory = $false)]
        [string] $nodeToRestart = $null

    )

    $roleId = $Parameters.Configuration.Role.Id
    if(!$nodeToRestart)
    {
        $nodeToRestart = Get-VMNameToRestartForRepair -Parameters $Parameters -RoleId $roleId
    }

    if (-not $nodeToRestart)
    {
        Trace-Execution "No node is specified to restart for $roleId. Skip restart remediation."
        return [CloudEngine.Actions.ConditionalActionDescription]::CreateNegative()
    }
    else
    {
        # Ensure ECE application quorum before restart.
        if ($roleId -eq "SeedRingServices")
        {
            Import-Module ServiceFabric
            Connect-ServiceFabricCluster | Out-Null
            $remainingNodes = Get-ServiceFabricNode | where { $_.IpAddressOrFQDN -notmatch $nodeToRestart }
            $eceServiceName = "fabric:/EnterpriseCloudEngineApplication/EnterpriseCloudEngineService"
            $remainingUnhealthyReplicas = @(Get-ServiceFabricPartition $eceServiceName | Get-ServiceFabricReplica `
                                            | where { $_.NodeName -in $remainingNodes.NodeName -and $_.HealthState -ne 'OK'})
            if ($remainingUnhealthyReplicas.Count -gt 0)
            {
                Trace-Warning "ECE replica in other VMs reported unhealthy: $($remainingUnhealthyReplicas.Name). Skip restart remediation."
                return [CloudEngine.Actions.ConditionalActionDescription]::CreateNegative()
            }
        }

        Trace-Execution "Proceed to VM restart for $nodeToRestart of role $roleId."
        $virtualMachineRolePath = "Cloud\Fabric\VirtualMachines"
        $restartForRepairActionType = "RestartVMForRepair"
        $restartExecutionContext = New-ExecutionContextXmlForNode -RoleName $roleId -NodeNames $nodeToRestart
        return [CloudEngine.Actions.ConditionalActionDescription]::CreateWithDefinedAction($virtualMachineRolePath, $restartForRepairActionType, $restartExecutionContext)
    }
}

Export-ModuleMember -Function Get-SingleProvisioningRoleVM
Export-ModuleMember -Function Get-RestartVMForRepairEvaluation
# SIG # Begin signature block
# MIIoRQYJKoZIhvcNAQcCoIIoNjCCKDICAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCCqepvQMpnd6y3y
# V1KBTHn/8OuNIBWIFDdmV+MCX/eBFKCCDXYwggX0MIID3KADAgECAhMzAAADrzBA
# DkyjTQVBAAAAAAOvMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD
# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy
# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p
# bmcgUENBIDIwMTEwHhcNMjMxMTE2MTkwOTAwWhcNMjQxMTE0MTkwOTAwWjB0MQsw
# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u
# ZDEeMBwGA1UEChMVTWlj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