Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
8d9a2e09
Commit
8d9a2e09
authored
Nov 28, 2017
by
Jiaying Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure node is ready before calling getLocalNode to fix test failure.
parent
85f0a1ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
gpu_device_plugin.go
test/e2e_node/gpu_device_plugin.go
+5
-1
No files found.
test/e2e_node/gpu_device_plugin.go
View file @
8d9a2e09
...
...
@@ -59,6 +59,8 @@ var _ = framework.KubeDescribe("NVIDIA GPU Device Plugin [Feature:GPUDevicePlugi
Skip
(
"Nvidia GPUs do not exist on the node. Skipping test."
)
}
framework
.
WaitForAllNodesSchedulable
(
f
.
ClientSet
,
framework
.
TestContext
.
NodeSchedulableTimeout
)
By
(
"Creating the Google Device Plugin pod for NVIDIA GPU in GKE"
)
devicePluginPod
=
f
.
PodClient
()
.
CreateSync
(
framework
.
NVIDIADevicePlugin
(
f
.
Namespace
.
Name
))
...
...
@@ -111,7 +113,9 @@ var _ = framework.KubeDescribe("NVIDIA GPU Device Plugin [Feature:GPUDevicePlugi
f
.
PodClient
()
.
Delete
(
devicePluginPod
.
Name
,
&
metav1
.
DeleteOptions
{})
By
(
"Waiting for GPUs to become unavailable on the local node"
)
Eventually
(
func
()
bool
{
return
framework
.
NumberOfNVIDIAGPUs
(
getLocalNode
(
f
))
<=
0
node
,
err
:=
f
.
ClientSet
.
CoreV1
()
.
Nodes
()
.
Get
(
framework
.
TestContext
.
NodeName
,
metav1
.
GetOptions
{})
framework
.
ExpectNoError
(
err
)
return
framework
.
NumberOfNVIDIAGPUs
(
node
)
<=
0
},
10
*
time
.
Minute
,
framework
.
Poll
)
.
Should
(
BeTrue
())
By
(
"Checking that scheduled pods can continue to run even after we delete device plugin."
)
count1
,
devIdRestart1
=
getDeviceId
(
f
,
p1
.
Name
,
p1
.
Name
,
count1
+
1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment