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
6cbedf2f
Commit
6cbedf2f
authored
Jan 11, 2016
by
Saad Ali
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #19513 from ihmccreery/sleep-tunnels
Add 5-minute sleep in GKE for dead tunnels to be removed
parents
6dd86710
a2849277
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
reboot.go
test/e2e/reboot.go
+11
-0
resize_nodes.go
test/e2e/resize_nodes.go
+12
-0
No files found.
test/e2e/reboot.go
View file @
6cbedf2f
...
@@ -68,6 +68,17 @@ var _ = Describe("Reboot [Disruptive]", func() {
...
@@ -68,6 +68,17 @@ var _ = Describe("Reboot [Disruptive]", func() {
Logf
(
"event for %v: %v %v: %v"
,
e
.
InvolvedObject
.
Name
,
e
.
Source
,
e
.
Reason
,
e
.
Message
)
Logf
(
"event for %v: %v %v: %v"
,
e
.
InvolvedObject
.
Name
,
e
.
Source
,
e
.
Reason
,
e
.
Message
)
}
}
}
}
// In GKE, our current tunneling setup has the potential to hold on to a broken tunnel (from a
// rebooted/deleted node) for up to 5 minutes before all tunnels are dropped and recreated. Most tests
// make use of some proxy feature to verify functionality. So, if a reboot test runs right before a test
// that tries to get logs, for example, we may get unlucky and try to use a closed tunnel to a node that
// was recently rebooted. There's no good way to poll for proxies being closed, so we sleep.
//
// TODO(cjcullen) reduce this sleep (#19314)
if
providerIs
(
"gke"
)
{
By
(
"waiting 5 minutes for all dead tunnels to be dropped"
)
time
.
Sleep
(
5
*
time
.
Minute
)
}
})
})
f
=
NewFramework
(
"reboot"
)
f
=
NewFramework
(
"reboot"
)
...
...
test/e2e/resize_nodes.go
View file @
6cbedf2f
...
@@ -422,6 +422,18 @@ var _ = Describe("Nodes [Disruptive]", func() {
...
@@ -422,6 +422,18 @@ var _ = Describe("Nodes [Disruptive]", func() {
if
err
:=
resizeGroup
(
testContext
.
CloudConfig
.
NumNodes
);
err
!=
nil
{
if
err
:=
resizeGroup
(
testContext
.
CloudConfig
.
NumNodes
);
err
!=
nil
{
Failf
(
"Couldn't restore the original node instance group size: %v"
,
err
)
Failf
(
"Couldn't restore the original node instance group size: %v"
,
err
)
}
}
// In GKE, our current tunneling setup has the potential to hold on to a broken tunnel (from a
// rebooted/deleted node) for up to 5 minutes before all tunnels are dropped and recreated.
// Most tests make use of some proxy feature to verify functionality. So, if a reboot test runs
// right before a test that tries to get logs, for example, we may get unlucky and try to use a
// closed tunnel to a node that was recently rebooted. There's no good way to poll for proxies
// being closed, so we sleep.
//
// TODO(cjcullen) reduce this sleep (#19314)
if
providerIs
(
"gke"
)
{
By
(
"waiting 5 minutes for all dead tunnels to be dropped"
)
time
.
Sleep
(
5
*
time
.
Minute
)
}
if
err
:=
waitForGroupSize
(
testContext
.
CloudConfig
.
NumNodes
);
err
!=
nil
{
if
err
:=
waitForGroupSize
(
testContext
.
CloudConfig
.
NumNodes
);
err
!=
nil
{
Failf
(
"Couldn't restore the original node instance group size: %v"
,
err
)
Failf
(
"Couldn't restore the original node instance group size: %v"
,
err
)
}
}
...
...
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