Obs/bin/ObsDep/content/Powershell/Common/ClusterHelpers.psm1

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


Import-Module -Name $PSScriptRoot\Helpers.psm1 -DisableNameChecking
Import-Module -Name $PSScriptRoot\Tracer.psm1 -DisableNameChecking

<#
 .Synopsis
  Returns the active cluster nodes by checking the cluster state.
  This is expected to run only after the cluster is deployed.
#>

function Get-ActiveClusterNodes {
    [CmdletBinding()]
    Param (
        [Parameter(Mandatory = $true, ParameterSetName="Default", Position=0)]
        [Parameter(Mandatory = $true, ParameterSetName="ByCluster")]
        [CloudEngine.Configurations.EceInterfaceParameters]
        $Parameters,

        [Parameter(Mandatory = $true, ParameterSetName="ByCluster")]
        [String]
        $ClusterName
    )

    Trace-Execution "Get active cluster nodes"
    if ($ClusterName)
    {
        Trace-Execution "Filtering by cluster $ClusterName"
        $clusterNames = [string[]]$ClusterName
    }
    else
    {
        $clusterNames = $Parameters.Roles["Cluster"].PublicConfiguration.Clusters.Node | % Name
    }

    $physicalHosts = $clusterNames | % { Get-Cluster $_ | Get-ClusterNode | where { $_.State -eq 'Up' } | % Name }

    Trace-Execution "Cluster nodes returned: $physicalHosts."
    return [string[]]$physicalHosts
}

function Get-ClusterNodes {
    [CmdletBinding()]
    Param (
        [Parameter(Mandatory = $true, ParameterSetName="Default", Position=0)]
        [Parameter(Mandatory = $true, ParameterSetName="ByCluster")]
        [Parameter(Mandatory = $true, ParameterSetName="ByNodeStatus")]
        [CloudEngine.Configurations.EceInterfaceParameters]
        $Parameters,

        [Parameter(Mandatory = $true, ParameterSetName="ByCluster")]
        [String]
        $ClusterName,

        [Parameter(Mandatory = $true, ParameterSetName="ByNodeStatus")]
        [ValidateSet("NotStarted", "ProvisioningInProgress", "Complete", "RemovalInProgress", "Removed", "Failed")]
        [string]
        $ProvisioningStatus
    )

    if ($ClusterName)
    {
        $physicalMachinesRole = $Parameters.Roles["BareMetal"].PublicConfiguration
        $physicalHosts = @($physicalMachinesRole.Nodes.Node | ? RefClusterId -eq $ClusterName | % Name)
        Trace-Execution "Get nodes under cluster: $ClusterName. Result is $physicalHosts."
        return [string[]]$physicalHosts
    }
    else
    {
        $physicalMachinesRole = $Parameters.Roles["BareMetal"].PublicConfiguration
        $physicalHosts = @($physicalMachinesRole.Nodes.Node)

        if($ProvisioningStatus)
        {
            Trace-Execution "Filtering nodes by provisioning status: $ProvisioningStatus."
            $physicalHosts = $physicalHosts | ? ProvisioningStatus -eq $ProvisioningStatus
        }

        $physicalHosts = $physicalHosts | % Name
        Trace-Execution "Cluster nodes returned: $physicalHosts."
        return [string[]]$physicalHosts
    }
}

function Get-ClusterNames {
    [CmdletBinding()]
    Param (
        [Parameter(Mandatory = $true, ParameterSetName="Default", Position=0)]
        [Parameter(Mandatory = $true, ParameterSetName="ByStatus")]
        [Parameter(Mandatory = $true, ParameterSetName="ByNodeName")]
        [CloudEngine.Configurations.EceInterfaceParameters]
        $Parameters,

        [Parameter(Mandatory = $true, ParameterSetName="ByStatus")]
        [ValidateSet("NotStarted", "ProvisioningInProgress", "Complete", "RemovalInProgress", "Removed", "Failed")]
        [string]
        $ProvisioningStatus,

        [Parameter(Mandatory = $true, ParameterSetName="ByNodeName")]
        [string]
        $NodeName
    )

    if ($ProvisioningStatus)
    {
        $result = @($Parameters.Roles["Cluster"].PublicConfiguration.Clusters.Node | ? ProvisioningStatus -eq $ProvisioningStatus | % Name)
        Trace-Execution "Get $ProvisioningStatus clusters: $result"
        return [string[]]$result
    }
    elseif ($NodeName)
    {
        $result = @($Parameters.Roles["BareMetal"].PublicConfiguration.Nodes.Node | ? Name -eq $NodeName | % RefClusterId)
        Trace-Execution "Get RefClusterId $result for node $NodeName"
        return [string[]]$result
    }
    else
    {
        $result = @($Parameters.Roles["Cluster"].PublicConfiguration.Clusters.Node | % Name)
        Trace-Execution "Get all clusters: $result"
        return [string[]]$result
    }
}

function Group-NodesByCluster {
    [CmdletBinding()]
    Param (
        [Parameter(Mandatory = $true)]
        [string[]]
        $ClusterNames,

        [Parameter(Mandatory = $true)]
        [string[]]
        $NodeNames
    )

    if ($ClusterNames.Count -ne $NodeNames.Count)
    {
        Trace-Error "The length of ClusterNames [$ClusterNames] and NodeNames [$NodeNames] is not the same."
        return
    }

    $result = @{}
    for ($i = 0; $i -lt $ClusterNames.Count; $i++)
    {
        $clusterName = $ClusterNames[$i]
        if (-not $result.ContainsKey($clusterName))
        {
            $result[$clusterName] = @()
        }

        ($result[$clusterName] += $NodeNames[$i]) | Out-Null
    }

    return $result
}

Export-ModuleMember -Function Get-ActiveClusterNodes
Export-ModuleMember -Function Get-ClusterNodes
Export-ModuleMember -Function Get-ClusterNames
Export-ModuleMember -Function Group-NodesByCluster

# SIG # Begin signature block
# MIIoRgYJKoZIhvcNAQcCoIIoNzCCKDMCAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDeNYCAHxgl/1hU
# 5FR8crLIKupfeJqHefK0kDzKmRN57qCCDXYwggX0MIID3KADAgECAhMzAAADrzBA
# DkyjTQVBAAAAAAOvMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD
# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy
# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p
# bmcgUENBIDIwMTEwHhcNMjMxMTE2MTkwOTAwWhcNMjQxMTE0MTkwOTAwWjB0MQsw
# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u
# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy
# b3NvZnQgQ29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