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
02429978
Commit
02429978
authored
Nov 03, 2016
by
bprashanth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stricter timeouts for nodePort curling
parent
c83a9246
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
9 deletions
+13
-9
density.go
test/e2e/density.go
+1
-1
empty.go
test/e2e/empty.go
+1
-1
networking_utils.go
test/e2e/framework/networking_utils.go
+3
-3
util.go
test/e2e/framework/util.go
+7
-3
load.go
test/e2e/load.go
+1
-1
No files found.
test/e2e/density.go
View file @
02429978
...
@@ -313,7 +313,7 @@ var _ = framework.KubeDescribe("Density", func() {
...
@@ -313,7 +313,7 @@ var _ = framework.KubeDescribe("Density", func() {
// In large clusters we may get to this point but still have a bunch
// In large clusters we may get to this point but still have a bunch
// of nodes without Routes created. Since this would make a node
// of nodes without Routes created. Since this would make a node
// unschedulable, we need to wait until all of them are schedulable.
// unschedulable, we need to wait until all of them are schedulable.
framework
.
ExpectNoError
(
framework
.
WaitForAllNodesSchedulable
(
c
))
framework
.
ExpectNoError
(
framework
.
WaitForAllNodesSchedulable
(
c
,
framework
.
NodeSchedulableTimeout
))
masters
,
nodes
=
framework
.
GetMasterAndWorkerNodesOrDie
(
c
)
masters
,
nodes
=
framework
.
GetMasterAndWorkerNodesOrDie
(
c
)
nodeCount
=
len
(
nodes
.
Items
)
nodeCount
=
len
(
nodes
.
Items
)
Expect
(
nodeCount
)
.
NotTo
(
BeZero
())
Expect
(
nodeCount
)
.
NotTo
(
BeZero
())
...
...
test/e2e/empty.go
View file @
02429978
...
@@ -32,7 +32,7 @@ var _ = framework.KubeDescribe("Empty [Feature:Empty]", func() {
...
@@ -32,7 +32,7 @@ var _ = framework.KubeDescribe("Empty [Feature:Empty]", func() {
ns
:=
f
.
Namespace
.
Name
ns
:=
f
.
Namespace
.
Name
// TODO: respect --allow-notready-nodes flag in those functions.
// TODO: respect --allow-notready-nodes flag in those functions.
framework
.
ExpectNoError
(
framework
.
WaitForAllNodesSchedulable
(
c
))
framework
.
ExpectNoError
(
framework
.
WaitForAllNodesSchedulable
(
c
,
framework
.
NodeSchedulableTimeout
))
framework
.
WaitForAllNodesHealthy
(
c
,
time
.
Minute
)
framework
.
WaitForAllNodesHealthy
(
c
,
time
.
Minute
)
err
:=
framework
.
CheckTestingNSDeletedExcept
(
c
,
ns
)
err
:=
framework
.
CheckTestingNSDeletedExcept
(
c
,
ns
)
...
...
test/e2e/framework/networking_utils.go
View file @
02429978
...
@@ -223,7 +223,7 @@ func (config *NetworkingTestConfig) DialFromNode(protocol, targetIP string, targ
...
@@ -223,7 +223,7 @@ func (config *NetworkingTestConfig) DialFromNode(protocol, targetIP string, targ
// busybox timeout doesn't support non-integer values.
// busybox timeout doesn't support non-integer values.
cmd
=
fmt
.
Sprintf
(
"echo 'hostName' | timeout -t 2 nc -w 1 -u %s %d"
,
targetIP
,
targetPort
)
cmd
=
fmt
.
Sprintf
(
"echo 'hostName' | timeout -t 2 nc -w 1 -u %s %d"
,
targetIP
,
targetPort
)
}
else
{
}
else
{
cmd
=
fmt
.
Sprintf
(
"
curl -q -s --connect-timeout 1
http://%s:%d/hostName"
,
targetIP
,
targetPort
)
cmd
=
fmt
.
Sprintf
(
"
timeout -t 15 curl -q -s --connect-timeout 1 --max-time 10
http://%s:%d/hostName"
,
targetIP
,
targetPort
)
}
}
// TODO: This simply tells us that we can reach the endpoints. Check that
// TODO: This simply tells us that we can reach the endpoints. Check that
...
@@ -435,7 +435,7 @@ func (config *NetworkingTestConfig) setup(selector map[string]string) {
...
@@ -435,7 +435,7 @@ func (config *NetworkingTestConfig) setup(selector map[string]string) {
config
.
setupCore
(
selector
)
config
.
setupCore
(
selector
)
By
(
"Getting node addresses"
)
By
(
"Getting node addresses"
)
ExpectNoError
(
WaitForAllNodesSchedulable
(
config
.
f
.
ClientSet
))
ExpectNoError
(
WaitForAllNodesSchedulable
(
config
.
f
.
ClientSet
,
10
*
time
.
Minute
))
nodeList
:=
GetReadySchedulableNodesOrDie
(
config
.
f
.
ClientSet
)
nodeList
:=
GetReadySchedulableNodesOrDie
(
config
.
f
.
ClientSet
)
config
.
ExternalAddrs
=
NodeAddresses
(
nodeList
,
api
.
NodeExternalIP
)
config
.
ExternalAddrs
=
NodeAddresses
(
nodeList
,
api
.
NodeExternalIP
)
if
len
(
config
.
ExternalAddrs
)
<
2
{
if
len
(
config
.
ExternalAddrs
)
<
2
{
...
@@ -486,7 +486,7 @@ func shuffleNodes(nodes []api.Node) []api.Node {
...
@@ -486,7 +486,7 @@ func shuffleNodes(nodes []api.Node) []api.Node {
}
}
func
(
config
*
NetworkingTestConfig
)
createNetProxyPods
(
podName
string
,
selector
map
[
string
]
string
)
[]
*
api
.
Pod
{
func
(
config
*
NetworkingTestConfig
)
createNetProxyPods
(
podName
string
,
selector
map
[
string
]
string
)
[]
*
api
.
Pod
{
ExpectNoError
(
WaitForAllNodesSchedulable
(
config
.
f
.
ClientSet
))
ExpectNoError
(
WaitForAllNodesSchedulable
(
config
.
f
.
ClientSet
,
10
*
time
.
Minute
))
nodeList
:=
GetReadySchedulableNodesOrDie
(
config
.
f
.
ClientSet
)
nodeList
:=
GetReadySchedulableNodesOrDie
(
config
.
f
.
ClientSet
)
// To make this test work reasonably fast in large clusters,
// To make this test work reasonably fast in large clusters,
...
...
test/e2e/framework/util.go
View file @
02429978
...
@@ -170,6 +170,10 @@ const (
...
@@ -170,6 +170,10 @@ const (
// TODO(justinsb): Avoid hardcoding this.
// TODO(justinsb): Avoid hardcoding this.
awsMasterIP
=
"172.20.0.9"
awsMasterIP
=
"172.20.0.9"
// Default time to wait for nodes to become schedulable.
// Set so high for scale tests.
NodeSchedulableTimeout
=
4
*
time
.
Hour
)
)
var
(
var
(
...
@@ -2437,11 +2441,11 @@ func GetReadySchedulableNodesOrDie(c clientset.Interface) (nodes *api.NodeList)
...
@@ -2437,11 +2441,11 @@ func GetReadySchedulableNodesOrDie(c clientset.Interface) (nodes *api.NodeList)
return
nodes
return
nodes
}
}
func
WaitForAllNodesSchedulable
(
c
clientset
.
Interface
)
error
{
func
WaitForAllNodesSchedulable
(
c
clientset
.
Interface
,
timeout
time
.
Duration
)
error
{
Logf
(
"Waiting up to %v for all (but %d) nodes to be schedulable"
,
4
*
time
.
Hour
,
TestContext
.
AllowedNotReadyNodes
)
Logf
(
"Waiting up to %v for all (but %d) nodes to be schedulable"
,
timeout
,
TestContext
.
AllowedNotReadyNodes
)
var
notSchedulable
[]
*
api
.
Node
var
notSchedulable
[]
*
api
.
Node
return
wait
.
PollImmediate
(
30
*
time
.
Second
,
4
*
time
.
Hour
,
func
()
(
bool
,
error
)
{
return
wait
.
PollImmediate
(
30
*
time
.
Second
,
timeout
,
func
()
(
bool
,
error
)
{
notSchedulable
=
nil
notSchedulable
=
nil
opts
:=
api
.
ListOptions
{
opts
:=
api
.
ListOptions
{
ResourceVersion
:
"0"
,
ResourceVersion
:
"0"
,
...
...
test/e2e/load.go
View file @
02429978
...
@@ -101,7 +101,7 @@ var _ = framework.KubeDescribe("Load capacity", func() {
...
@@ -101,7 +101,7 @@ var _ = framework.KubeDescribe("Load capacity", func() {
// In large clusters we may get to this point but still have a bunch
// In large clusters we may get to this point but still have a bunch
// of nodes without Routes created. Since this would make a node
// of nodes without Routes created. Since this would make a node
// unschedulable, we need to wait until all of them are schedulable.
// unschedulable, we need to wait until all of them are schedulable.
framework
.
ExpectNoError
(
framework
.
WaitForAllNodesSchedulable
(
clientset
))
framework
.
ExpectNoError
(
framework
.
WaitForAllNodesSchedulable
(
clientset
,
framework
.
NodeSchedulableTimeout
))
ns
=
f
.
Namespace
.
Name
ns
=
f
.
Namespace
.
Name
nodes
:=
framework
.
GetReadySchedulableNodesOrDie
(
clientset
)
nodes
:=
framework
.
GetReadySchedulableNodesOrDie
(
clientset
)
...
...
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