feat: fetching collect-windows-logs.ps1 during windows CSE (#2615)
This commit is contained in:
Родитель
a7c0390d5d
Коммит
453226a66b
|
@ -159,15 +159,19 @@ function Invoke-Executable
|
|||
throw "Exhausted retries for $Executable $ArgList"
|
||||
}
|
||||
|
||||
function Get-NetworkLogCollectionScripts {
|
||||
Write-Log "Getting CollectLogs.ps1 and depencencies"
|
||||
function Get-LogCollectionScripts {
|
||||
Write-Log "Getting various log collect scripts and depencencies"
|
||||
mkdir 'c:\k\debug'
|
||||
DownloadFileOverHttp -Url 'https://github.com/Azure/aks-engine/raw/master/scripts/collect-windows-logs.ps1' -DestinationPath 'c:\k\debug\collect-windows-logs.ps1'
|
||||
DownloadFileOverHttp -Url 'https://github.com/microsoft/SDN/raw/master/Kubernetes/windows/debug/collectlogs.ps1' -DestinationPath 'c:\k\debug\collectlogs.ps1'
|
||||
DownloadFileOverHttp -Url 'https://github.com/microsoft/SDN/raw/master/Kubernetes/windows/debug/dumpVfpPolicies.ps1' -DestinationPath 'c:\k\debug\dumpVfpPolicies.ps1'
|
||||
DownloadFileOverHttp -Url 'https://github.com/microsoft/SDN/raw/master/Kubernetes/windows/debug/portReservationTest.ps1' -DestinationPath 'c:\k\debug\portReservationTest.ps1'
|
||||
DownloadFileOverHttp -Url 'https://github.com/microsoft/SDN/raw/master/Kubernetes/windows/debug/starthnstrace.cmd' -DestinationPath 'c:\k\debug\starthnstrace.cmd'
|
||||
DownloadFileOverHttp -Url 'https://github.com/microsoft/SDN/raw/master/Kubernetes/windows/debug/startpacketcapture.cmd' -DestinationPath 'c:\k\debug\startpacketcapture.cmd'
|
||||
DownloadFileOverHttp -Url 'https://github.com/microsoft/SDN/raw/master/Kubernetes/windows/debug/stoppacketcapture.cmd' -DestinationPath 'c:\k\debug\stoppacketcapture.cmd'
|
||||
DownloadFileOverHttp -Url 'https://github.com/Microsoft/SDN/raw/master/Kubernetes/windows/debug/VFP.psm1' -DestinationPath 'c:\k\debug\VFP.psm1'
|
||||
DownloadFileOverHttp -Url 'https://github.com/microsoft/SDN/raw/master/Kubernetes/windows/helper.psm1' -DestinationPath 'c:\k\debug\helper.psm1'
|
||||
DownloadFileOverHttp -Url 'https://github.com/microsoft/SDN/raw/master/Kubernetes/windows/hns.psm1' -DestinationPath 'c:\k\debug\hns.psm1'
|
||||
}
|
||||
|
||||
function Register-LogsCleanupScriptTask {
|
||||
|
|
|
@ -351,7 +351,7 @@ try
|
|||
-HNSModule $global:HNSModule `
|
||||
-KubeletNodeLabels $global:KubeletNodeLabels
|
||||
|
||||
Get-NetworkLogCollectionScripts
|
||||
Get-LogCollectionScripts
|
||||
|
||||
Write-Log "Disable Internet Explorer compat mode and set homepage"
|
||||
Set-Explorer
|
||||
|
|
|
@ -40877,15 +40877,19 @@ function Invoke-Executable
|
|||
throw "Exhausted retries for $Executable $ArgList"
|
||||
}
|
||||
|
||||
function Get-NetworkLogCollectionScripts {
|
||||
Write-Log "Getting CollectLogs.ps1 and depencencies"
|
||||
function Get-LogCollectionScripts {
|
||||
Write-Log "Getting various log collect scripts and depencencies"
|
||||
mkdir 'c:\k\debug'
|
||||
DownloadFileOverHttp -Url 'https://github.com/Azure/aks-engine/raw/master/scripts/collect-windows-logs.ps1' -DestinationPath 'c:\k\debug\collect-windows-logs.ps1'
|
||||
DownloadFileOverHttp -Url 'https://github.com/microsoft/SDN/raw/master/Kubernetes/windows/debug/collectlogs.ps1' -DestinationPath 'c:\k\debug\collectlogs.ps1'
|
||||
DownloadFileOverHttp -Url 'https://github.com/microsoft/SDN/raw/master/Kubernetes/windows/debug/dumpVfpPolicies.ps1' -DestinationPath 'c:\k\debug\dumpVfpPolicies.ps1'
|
||||
DownloadFileOverHttp -Url 'https://github.com/microsoft/SDN/raw/master/Kubernetes/windows/debug/portReservationTest.ps1' -DestinationPath 'c:\k\debug\portReservationTest.ps1'
|
||||
DownloadFileOverHttp -Url 'https://github.com/microsoft/SDN/raw/master/Kubernetes/windows/debug/starthnstrace.cmd' -DestinationPath 'c:\k\debug\starthnstrace.cmd'
|
||||
DownloadFileOverHttp -Url 'https://github.com/microsoft/SDN/raw/master/Kubernetes/windows/debug/startpacketcapture.cmd' -DestinationPath 'c:\k\debug\startpacketcapture.cmd'
|
||||
DownloadFileOverHttp -Url 'https://github.com/microsoft/SDN/raw/master/Kubernetes/windows/debug/stoppacketcapture.cmd' -DestinationPath 'c:\k\debug\stoppacketcapture.cmd'
|
||||
DownloadFileOverHttp -Url 'https://github.com/Microsoft/SDN/raw/master/Kubernetes/windows/debug/VFP.psm1' -DestinationPath 'c:\k\debug\VFP.psm1'
|
||||
DownloadFileOverHttp -Url 'https://github.com/microsoft/SDN/raw/master/Kubernetes/windows/helper.psm1' -DestinationPath 'c:\k\debug\helper.psm1'
|
||||
DownloadFileOverHttp -Url 'https://github.com/microsoft/SDN/raw/master/Kubernetes/windows/hns.psm1' -DestinationPath 'c:\k\debug\hns.psm1'
|
||||
}
|
||||
|
||||
function Register-LogsCleanupScriptTask {
|
||||
|
@ -41269,7 +41273,7 @@ try
|
|||
-HNSModule $global:HNSModule ` + "`" + `
|
||||
-KubeletNodeLabels $global:KubeletNodeLabels
|
||||
|
||||
Get-NetworkLogCollectionScripts
|
||||
Get-LogCollectionScripts
|
||||
|
||||
Write-Log "Disable Internet Explorer compat mode and set homepage"
|
||||
Set-Explorer
|
||||
|
|
|
@ -55,9 +55,11 @@ function Get-FilesToCacheOnVHD
|
|||
|
||||
$map = @{
|
||||
"c:\akse-cache\" = @(
|
||||
"https://github.com/Azure/aks-engine/raw/master/scripts/collect-windows-logs.ps1",
|
||||
"https://github.com/Microsoft/SDN/raw/master/Kubernetes/flannel/l2bridge/cni/win-bridge.exe",
|
||||
"https://github.com/microsoft/SDN/raw/master/Kubernetes/windows/debug/collectlogs.ps1",
|
||||
"https://github.com/microsoft/SDN/raw/master/Kubernetes/windows/debug/dumpVfpPolicies.ps1",
|
||||
"https://github.com/microsoft/SDN/raw/master/Kubernetes/windows/debug/portReservationTest.ps1",
|
||||
"https://github.com/microsoft/SDN/raw/master/Kubernetes/windows/debug/starthnstrace.cmd",
|
||||
"https://github.com/microsoft/SDN/raw/master/Kubernetes/windows/debug/startpacketcapture.cmd",
|
||||
"https://github.com/microsoft/SDN/raw/master/Kubernetes/windows/debug/stoppacketcapture.cmd",
|
||||
|
|
Загрузка…
Ссылка в новой задаче