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
2172e0de
Commit
2172e0de
authored
Feb 12, 2016
by
Mike Danese
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #21108 from mml/slow-flake
Include some debug output when the API server never appears.
parents
5516b868
7a2e6497
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
util.sh
cluster/gce/util.sh
+12
-0
e2e-up.sh
hack/e2e-internal/e2e-up.sh
+1
-1
No files found.
cluster/gce/util.sh
View file @
2172e0de
...
@@ -744,6 +744,18 @@ function check-cluster() {
...
@@ -744,6 +744,18 @@ function check-cluster() {
local
elapsed
=
$(($(
date
+%s
)
-
${
start_time
}))
local
elapsed
=
$(($(
date
+%s
)
-
${
start_time
}))
if
[[
${
elapsed
}
-gt
${
KUBE_CLUSTER_INITIALIZATION_TIMEOUT
}
]]
;
then
if
[[
${
elapsed
}
-gt
${
KUBE_CLUSTER_INITIALIZATION_TIMEOUT
}
]]
;
then
echo
-e
"
${
color_red
}
Cluster failed to initialize within
${
KUBE_CLUSTER_INITIALIZATION_TIMEOUT
}
seconds.
${
color_norm
}
"
>
&2
echo
-e
"
${
color_red
}
Cluster failed to initialize within
${
KUBE_CLUSTER_INITIALIZATION_TIMEOUT
}
seconds.
${
color_norm
}
"
>
&2
if
[[
${
KUBE_TEST_DEBUG
-
}
=
~ ^[yY]
$
]]
;
then
local
tmp_log
=
"
$(
mktemp
)
"
local
file
for
file
in
/var/log/startupscript.log /var/log/kube-apiserver.log
;
do
echo
"
${
MASTER_NAME
}
:
${
file
}
contents:"
if
gcloud compute copy-files
--project
"
${
PROJECT
}
"
\
--zone
"
${
ZONE
}
"
"
${
MASTER_NAME
}
:
${
file
}
"
"
${
tmp_log
}
"
;
then
cat
"
${
tmp_log
}
"
fi
done
rm
-f
"
${
tmp_log
}
"
fi
exit
2
exit
2
fi
fi
printf
"."
printf
"."
...
...
hack/e2e-internal/e2e-up.sh
View file @
2172e0de
...
@@ -31,5 +31,5 @@ source "${KUBE_VERSION_ROOT}/cluster/${KUBERNETES_PROVIDER}/util.sh"
...
@@ -31,5 +31,5 @@ source "${KUBE_VERSION_ROOT}/cluster/${KUBERNETES_PROVIDER}/util.sh"
prepare-e2e
prepare-e2e
"
${
KUBE_VERSION_ROOT
}
/cluster/kube-up.sh"
KUBE_TEST_DEBUG
=
y
"
${
KUBE_VERSION_ROOT
}
/cluster/kube-up.sh"
test-setup
test-setup
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