This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 558
add restarts to nvidia drivers download in cloud-init #2316
Merged
Merged
Changes from 5 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
5e8a6ee
add restarts to nvidia drivers download
jackfrancis a4dd5c6
add tests
jackfrancis 05ebfe4
add v1.8 gpu-enabled api model for e2e testing
jackfrancis b757cb0
trying Standard_NC6
jackfrancis 38a709d
e2e
jackfrancis 5fe38d5
lint
jackfrancis 681d5d0
updated comment
jackfrancis 56bae92
bad match string, less freq checks, - unused func
jackfrancis 76e3c6c
more general success determination, typo
jackfrancis cfeb408
more typo
jackfrancis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"apiVersion": "vlabs", | ||
"properties": { | ||
"orchestratorProfile": { | ||
"orchestratorType": "Kubernetes", | ||
"orchestratorRelease": "1.8" | ||
}, | ||
"masterProfile": { | ||
"count": 1, | ||
"dnsPrefix": "", | ||
"vmSize": "Standard_D2_v2" | ||
}, | ||
"agentPoolProfiles": [ | ||
{ | ||
"name": "linuxpool1", | ||
"count": 3, | ||
"vmSize": "Standard_NC6", | ||
"availabilityProfile": "AvailabilitySet" | ||
} | ||
], | ||
"linuxProfile": { | ||
"adminUsername": "azureuser", | ||
"ssh": { | ||
"publicKeys": [ | ||
{ | ||
"keyData": "" | ||
} | ||
] | ||
} | ||
}, | ||
"servicePrincipalProfile": { | ||
"clientId": "", | ||
"secret": "" | ||
}, | ||
"certificateProfile": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -371,3 +371,184 @@ func TestGetGPUDriversInstallScript(t *testing.T) { | |
t.Fatalf("VMSize without GPU should not receive a script, expected empty string, received %v", s) | ||
} | ||
} | ||
func TestIsNSeriesSKU(t *testing.T) { | ||
// VMSize with GPU and NVIDIA agreement for drivers distribution | ||
validSkus := []string{ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Assuming you got this list from somewhere, I have no idea which are which so I'm gonna trust you on this one |
||
"Standard_NC12", | ||
"Standard_NC12s_v2", | ||
"Standard_NC12s_v3", | ||
"Standard_NC24", | ||
"Standard_NC24r", | ||
"Standard_NC24rs_v2", | ||
"Standard_NC24rs_v3", | ||
"Standard_NC24s_v2", | ||
"Standard_NC24s_v3", | ||
"Standard_NC6", | ||
"Standard_NC6s_v2", | ||
"Standard_NC6s_v3", | ||
"Standard_ND12s", | ||
"Standard_ND24rs", | ||
"Standard_ND24s", | ||
"Standard_ND6s", | ||
"Standard_NV12", | ||
"Standard_NV24", | ||
"Standard_NV6", | ||
} | ||
|
||
invalidSkus := []string{ | ||
"Standard_A10", | ||
"Standard_A11", | ||
"Standard_A2", | ||
"Standard_A2_v2", | ||
"Standard_A2m_v2", | ||
"Standard_A3", | ||
"Standard_A4", | ||
"Standard_A4_v2", | ||
"Standard_A4m_v2", | ||
"Standard_A5", | ||
"Standard_A6", | ||
"Standard_A7", | ||
"Standard_A8", | ||
"Standard_A8_v2", | ||
"Standard_A8m_v2", | ||
"Standard_A9", | ||
"Standard_B2ms", | ||
"Standard_B4ms", | ||
"Standard_B8ms", | ||
"Standard_D11", | ||
"Standard_D11_v2", | ||
"Standard_D11_v2_Promo", | ||
"Standard_D12", | ||
"Standard_D12_v2", | ||
"Standard_D12_v2_Promo", | ||
"Standard_D13", | ||
"Standard_D13_v2", | ||
"Standard_D13_v2_Promo", | ||
"Standard_D14", | ||
"Standard_D14_v2", | ||
"Standard_D14_v2_Promo", | ||
"Standard_D15_v2", | ||
"Standard_D16_v3", | ||
"Standard_D16s_v3", | ||
"Standard_D2", | ||
"Standard_D2_v2", | ||
"Standard_D2_v2_Promo", | ||
"Standard_D2_v3", | ||
"Standard_D2s_v3", | ||
"Standard_D3", | ||
"Standard_D32_v3", | ||
"Standard_D32s_v3", | ||
"Standard_D3_v2", | ||
"Standard_D3_v2_Promo", | ||
"Standard_D4", | ||
"Standard_D4_v2", | ||
"Standard_D4_v2_Promo", | ||
"Standard_D4_v3", | ||
"Standard_D4s_v3", | ||
"Standard_D5_v2", | ||
"Standard_D5_v2_Promo", | ||
"Standard_D64_v3", | ||
"Standard_D64s_v3", | ||
"Standard_D8_v3", | ||
"Standard_D8s_v3", | ||
"Standard_DS11", | ||
"Standard_DS11_v2", | ||
"Standard_DS11_v2_Promo", | ||
"Standard_DS12", | ||
"Standard_DS12_v2", | ||
"Standard_DS12_v2_Promo", | ||
"Standard_DS13", | ||
"Standard_DS13-2_v2", | ||
"Standard_DS13-4_v2", | ||
"Standard_DS13_v2", | ||
"Standard_DS13_v2_Promo", | ||
"Standard_DS14", | ||
"Standard_DS14-4_v2", | ||
"Standard_DS14-8_v2", | ||
"Standard_DS14_v2", | ||
"Standard_DS14_v2_Promo", | ||
"Standard_DS15_v2", | ||
"Standard_DS3", | ||
"Standard_DS3_v2", | ||
"Standard_DS3_v2_Promo", | ||
"Standard_DS4", | ||
"Standard_DS4_v2", | ||
"Standard_DS4_v2_Promo", | ||
"Standard_DS5_v2", | ||
"Standard_DS5_v2_Promo", | ||
"Standard_E16_v3", | ||
"Standard_E16s_v3", | ||
"Standard_E2_v3", | ||
"Standard_E2s_v3", | ||
"Standard_E32-16s_v3", | ||
"Standard_E32-8s_v3", | ||
"Standard_E32_v3", | ||
"Standard_E32s_v3", | ||
"Standard_E4_v3", | ||
"Standard_E4s_v3", | ||
"Standard_E64-16s_v3", | ||
"Standard_E64-32s_v3", | ||
"Standard_E64_v3", | ||
"Standard_E64s_v3", | ||
"Standard_E8_v3", | ||
"Standard_E8s_v3", | ||
"Standard_F16", | ||
"Standard_F16s", | ||
"Standard_F16s_v2", | ||
"Standard_F2", | ||
"Standard_F2s_v2", | ||
"Standard_F32s_v2", | ||
"Standard_F4", | ||
"Standard_F4s", | ||
"Standard_F4s_v2", | ||
"Standard_F64s_v2", | ||
"Standard_F72s_v2", | ||
"Standard_F8", | ||
"Standard_F8s", | ||
"Standard_F8s_v2", | ||
"Standard_G1", | ||
"Standard_G2", | ||
"Standard_G3", | ||
"Standard_G4", | ||
"Standard_G5", | ||
"Standard_GS1", | ||
"Standard_GS2", | ||
"Standard_GS3", | ||
"Standard_GS4", | ||
"Standard_GS4-4", | ||
"Standard_GS4-8", | ||
"Standard_GS5", | ||
"Standard_GS5-16", | ||
"Standard_GS5-8", | ||
"Standard_H16", | ||
"Standard_H16m", | ||
"Standard_H16mr", | ||
"Standard_H16r", | ||
"Standard_H8", | ||
"Standard_H8m", | ||
"Standard_L16s", | ||
"Standard_L32s", | ||
"Standard_L4s", | ||
"Standard_L8s", | ||
"Standard_M128-32ms", | ||
"Standard_M128-64ms", | ||
"Standard_M128ms", | ||
"Standard_M128s", | ||
"Standard_M64-16ms", | ||
"Standard_M64-32ms", | ||
"Standard_M64ms", | ||
"Standard_M64s", | ||
} | ||
|
||
for _, sku := range validSkus { | ||
if !isNSeriesSKU(&api.AgentPoolProfile{VMSize: sku}) { | ||
t.Fatalf("Expected isNSeriesSKU(%s) to be true", sku) | ||
} | ||
} | ||
|
||
for _, sku := range invalidSkus { | ||
if isNSeriesSKU(&api.AgentPoolProfile{VMSize: sku}) { | ||
t.Fatalf("Expected isNSeriesSKU(%s) to be false", sku) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: should simply read "VMSize with GPU" instead. We only have agreement for NC6, NC12, NC24, NV6, NV12 and NV24 so far. This is very minor, but I don't want anyone to get confused on this agreement stuff and distributes drivers without NVIDIA approval by mistake.