AzStackHci.EnvironmentChecker.Operations.psm1

<#############################################################
# #
# Copyright (C) Microsoft Corporation. All rights reserved. #
# #
#############################################################>


function Invoke-EnvironmentValidator
{
    <#
    .SYNOPSIS
    Wrapper command to Test Environment Readiness
 
    .DESCRIPTION
    Wrapper command to test environment readiness, run locally on HCI system.
 
    .PARAMETER OperationType
    Type of Operation.
 
    .PARAMETER WaitForResult
    Wait for action plan to complete.
 
    #>

    [CmdletBinding()]
    Param(
        [Parameter(Mandatory = $true)]
        [ValidateSet('AddNode','Deploy','ScaleOut','Upgrade','Update')]
        [String]
        $OperationType,

        [Parameter(Mandatory = $true, ParameterSetName = "AddNode")]
        [ValidateNotNullOrEmpty()]
        [String]
        $Name,

        [Parameter(Mandatory = $false, ParameterSetName = "AddNode", HelpMessage = 'Use Host IPv4 address to simulate AddNode. Omit for RepairNode.')]
        [ValidateNotNullOrEmpty()]
        [String]
        $HostIpv4,

        [Parameter(Mandatory = $false, HelpMessage = 'Start step for the action plan. Use Get-EnvironmentValidatorActionPlan to get the steps.')]
        [int]
        $Start,

        [Parameter(Mandatory = $false, HelpMessage = 'End step for the action plan. Use Get-EnvironmentValidatorActionPlan to get the steps.')]
        [int]
        $End,

        [Parameter(Mandatory = $false, ParameterSetName = "Update")]
        [ValidateNotNullOrEmpty()]
        [String]
        $EnvironmentCheckerResultPath,

        [Parameter(Mandatory = $false, HelpMessage = 'Wait for action plan to conclude. Shows progress if running on the ECE owning node.')]
        [switch]$Wait
    )
    $ErrorActionPreference = 'Stop'

    # Check if we are running Orchestrator as a service or lite
    $Script:OrchestratorSvc = IsOrchestratorSvc

    # Check if action plan is running
    $RunningActionPlans = Get-AzStackHciEnvironmentCheckerActionPlan | Where-Object Status -In 'Running', 'Queued'
    if ($RunningActionPlans)
    {
        throw "Environment Validator action plan in progress"
    }

    if ($OperationType -in 'AddNode', 'ScaleOut' -and [string]::IsNullOrEmpty($Name) -and [string]::IsNullOrEmpty($HostIpv4))
    {
        throw "Parameters missing: Name and HostIpv4 must be supplied when OperationType is AddNode or ScaleOut."
    }

    # Archive Log file
    ArchiveLogFiles

    $ActionType = Get-EnvironmentValidatorActionPlan -OperationType $OperationType
    Write-Verbose "Starting Environment Validator for $OperationType"

    # TODO check if Deploy, Upgrade or AddNode ops are running here?
    $params = @{
        RolePath   = 'Cloud\Infrastructure\EnvironmentValidator'
        ActionType = $ActionType
    }

    # Add needs a node name and IP, take these from the user
    # TO DO: Remove EnvironmentValidatorAddNode
    if ($ActionType -in 'EnvironmentValidatorAddNode','EnvironmentValidatorScaleOut')
    {
        if ([string]::IsNullOrEmpty($Name))
        {
            throw "Parameters missing: Name and HostIpv4 must be supplied when OperationType is AddNode."
        }

        $params += @{
            runtimeParameters = @{
                NodeName  = $Name
            }
        }
        if ($HostIpv4)
        {
            $params += @{
                runtimeParameters = @{
                    IpAddress = $HostIpv4
                }
            }
        }
        else
        {
            Write-Verbose "HostIpv4 not supplied, simiulating RepairNode"
        }
    }

    # Update needs a path to the result file, take this from the user, or set to a test value so we dont overwrite the real one.
    if ($ActionType -eq 'EnvironmentValidatorPreUpdate')
    {
        if ([string]::IsNullOrEmpty($EnvironmentCheckerResultPath))
        {
            $EnvironmentCheckerResultPath = "$($env:LocalRootFolderPath)\MasLogs\Invoke-EnvironmentValidator-EnvironmentCheckerUpdateResult.json"
        }
        $params += @{
            runtimeParameters = @{
                EnvironmentCheckerResultPath  = $EnvironmentCheckerResultPath
            }
        }
    }

    if ($Script:OrchestratorSvc)
    {
        if ($Start -and $End)
        {
            Write-Verbose "Starting Environment Validator for $OperationType from step $StartStep to $EndStep"
            $params += @{
                Start = $Start
                End = $End
            }
        }
        else
        {
            Write-Verbose "Starting Environment Validator for $OperationType"
        }

        Write-Verbose "Invoke-ActionPlanInstance with params: `r`n $($params | Out-String)"

        $ActionPlanInstanceId = Invoke-ActionPlanInstance @params 4>$null
        if (-not $wait) {
            Write-Verbose "To check progress, open a powershell session to $(GetOrchestratorOwner) and call: 'Get-AzStackHciEnvironmentCheckerProgress -Path $($env:LocalRootFolderPath)\MasLogs\AzStackHciEnvironmentProgress.json'"
            Write-Verbose "Run the following to get the action plan progress Get-ActionPlanInstance -actionPlanInstanceID $ActionPlanInstanceId"
        }
    }
    else
    {
        Invoke-EceAction @params
        if (-not $wait) {
            Write-Verbose "To check progress, call: 'Get-AzStackHciEnvironmentCheckerProgress -Path $($env:LocalRootFolderPath)\MasLogs\AzStackHciEnvironmentProgress.json'"
        }
    }

    Start-Sleep -Seconds 5
    for ($i = 0; $i -lt 30; $i++)
    {
        $ActionPlan = Get-AzStackHciEnvironmentCheckerActionPlan | Sort-Object LastModifiedDateTime -Descending | Select-Object -First 1
        switch ($ActionPlan.Status)
        {
            { $_ -in "Failed", "Cancelled" }
            {
                throw "$ActionType is $($actionPlan.Status). Please resume please review: `n $($actionPlan.ProgressAsXml)"
            }
            { $_ -in "Waiting", "Pending" }
            {
                Write-Verbose "$ActionType is currently $($actionPlan.Status)"
            }
            { $_ -eq "Running" }
            {
                Write-Verbose "$ActionType is currently $($actionPlan.Status)"
                if ($Wait)
                {
                    if ($ENV:COMPUTERNAME -eq (GetOrchestratorOwner))
                    {
                        Get-AzStackHciEnvironmentCheckerProgress | Format-Table Result, StartTime, EndTime, DurationSeconds, Name, Description -AutoSize
                    }
                }
                else
                {
                    break outer
                }
            }
            { $_ -eq 'Completed' }
            {
                if ($ENV:COMPUTERNAME -eq (GetOrchestratorOwner))
                {
                    Get-AzStackHciEnvironmentCheckerProgress | Format-Table Result, StartTime, EndTime, DurationSeconds, Name, Description -AutoSize
                }
                break outer
            }
            default
            {
                Write-Warning "$ActionType cannot be started due to unknown status of last run"
                return
            }
        }
        Start-Sleep -Seconds 30
    }
    Write-Verbose "$ActionType $($ActionPlanResult.Status) Action Plan ID: $($ActionPlanInstanceId.Guid)"
}


function Get-AzStackHciEnvironmentCheckerActionPlan
{
    <#
    .SYNOPSIS
        Get all Environment Validator action plan instances
    #>

    [CmdletBinding()]
    param ()

    $validatorLookup = 'EnvironmentValidator*'
    if (IsOrchestratorSvc)
    {
        Get-ActionPlanInstances | Where-Object { $_.ActionTypeName -like $validatorLookup }
    }
    else
    {
        Get-ActionProgress -ActionType $validatorLookup
    }
}

function Get-AzStackHciEnvironmentCheckerProgress
{
    <#
    .SYNOPSIS
        Intended for internal-use to retrieve multi-validator invocation progress using action plan
    #>

    [CmdletBinding()]
    param (
        [Parameter()]
        [string]
        $Path = "$($env:LocalRootFolderPath)\MasLogs\AzStackHciEnvironmentProgress.json"
    )
    Get-Content $Path -ErrorAction SilentlyContinue | ConvertFrom-Json
}

function ArchiveLogFiles
{
    <#
    .SYNOPSIS
        INTERNAL USE ONLY - Archives any supporting files for environment checker.
    #>

    [CmdletBinding()]
    param (
        [Parameter()]
        [string]
        $Path = "$($env:LocalRootFolderPath)\MASLogs"
    )
    # Archive any logs
    'AzStackHciEnvironmentChecker.log', 'AzStackHciEnvironmentProgress.json', 'AzStackHciEnvironmentReport.json', 'AzStackHciEnvironmentReport.xml' | ForEach-Object {
        Get-ChildItem -Path $Path -Filter $PSITEM -ErrorAction SilentlyContinue | ForEach-Object {
            Rename-Item -Path $PSITEM.FullName -NewName ($PSITEM.fullname -replace '(\.)', ('_{0}.' -f (Get-Date -Format yyyyMMdd-HHmmss)))
        }
    }
}

function IsOrchestratorSvc
{
    [CmdletBinding()]
    param ()
    $orchestratorSvc = Get-Service | Where-Object {$_.Name -eq 'ECE Windows Service' -or $_.Name -eq 'Azure Stack HCI Orchestrator Service'}
    if ($orchestratorSvc)
    {
        return $true
    }
    else
    {
        Import-Module C:\CloudDeployment\ECEngine\EnterpriseCloudEngine.psd1 -Force
        return $false
    }
}

function GetOrchestratorOwner
{
    [CmdletBinding()]
    param ()
    try
    {
        Get-ClusterGroup | Where-Object {$_.Name -eq 'ECE Windows Service Cluster Group' -or $_.Name -eq 'Azure Stack HCI Orchestrator Service Cluster Group'} | Select-Object -expandProperty OwnerNode | Select-Object -ExpandProperty Name
    }
    catch
    {
        return $null
    }
}

function Get-EnvironmentValidatorActionPlan
{
    param (
        [Parameter(Mandatory = $true)]
        [ValidateSet('AddNode','Deploy','ScaleOut','Upgrade','Update')]
        [string]
        $OperationType
    )

    $ActionType = switch ($OperationType)
    {
        'Deploy' { 'EnvironmentValidatorFull' }
        'Upgrade' { 'EnvironmentValidatorUpgrade' }
        'AddNode' { 'EnvironmentValidatorPreAddNode' }
        'ScaleOut' { 'EnvironmentValidatorScaleOut' }
        'Update' { 'EnvironmentValidatorPreUpdate' }
        Default {}
    }
    [xml]$xml = (Get-CloudDefinition).CloudDefinitionAsXmlString
    $apDef = $xml.SelectNodes("//Action[@Type='$ActionType']")
    $Steps = $apDef.Steps.Step
    Write-Verbose ($Steps | Out-String) -Verbose
    return $ActionType
}
# SIG # Begin signature block
# MIInwQYJKoZIhvcNAQcCoIInsjCCJ64CAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCASaGXEj2Vgt5qR
# 7qKqdaOuGj6CIS6mJwUUwNQTB1ScZaCCDXYwggX0MIID3KADAgECAhMzAAADrzBA
# DkyjTQVBAAAAAAOvMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD
# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy
# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p
# bmcgUENBIDIwMTEwHhcNMjMxMTE2MTkwOTAwWhcNMjQxMTE0MTkwOTAwWjB0MQsw
# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u
# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExV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