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
326a29d7
Commit
326a29d7
authored
Jan 28, 2016
by
Fabio Yeon
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #20220 from krousey/integrationlogging
Add more logging to diagnose flake
parents
146a9e60
d2f829ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
integration.go
cmd/integration/integration.go
+3
-1
No files found.
cmd/integration/integration.go
View file @
326a29d7
...
@@ -293,7 +293,7 @@ func podsOnNodes(c *client.Client, podNamespace string, labelSelector labels.Sel
...
@@ -293,7 +293,7 @@ func podsOnNodes(c *client.Client, podNamespace string, labelSelector labels.Sel
}
}
for
i
:=
range
pods
.
Items
{
for
i
:=
range
pods
.
Items
{
pod
:=
pods
.
Items
[
i
]
pod
:=
pods
.
Items
[
i
]
podString
:=
fmt
.
Sprintf
(
"%
q/%q
"
,
pod
.
Namespace
,
pod
.
Name
)
podString
:=
fmt
.
Sprintf
(
"%
s/%s
"
,
pod
.
Namespace
,
pod
.
Name
)
glog
.
Infof
(
"Check whether pod %q exists on node %q"
,
podString
,
pod
.
Spec
.
NodeName
)
glog
.
Infof
(
"Check whether pod %q exists on node %q"
,
podString
,
pod
.
Spec
.
NodeName
)
if
len
(
pod
.
Spec
.
NodeName
)
==
0
{
if
len
(
pod
.
Spec
.
NodeName
)
==
0
{
glog
.
Infof
(
"Pod %q is not bound to a host yet"
,
podString
)
glog
.
Infof
(
"Pod %q is not bound to a host yet"
,
podString
)
...
@@ -354,6 +354,7 @@ func podRunning(c *client.Client, podNamespace string, podName string) wait.Cond
...
@@ -354,6 +354,7 @@ func podRunning(c *client.Client, podNamespace string, podName string) wait.Cond
return
func
()
(
bool
,
error
)
{
return
func
()
(
bool
,
error
)
{
pod
,
err
:=
c
.
Pods
(
podNamespace
)
.
Get
(
podName
)
pod
,
err
:=
c
.
Pods
(
podNamespace
)
.
Get
(
podName
)
if
apierrors
.
IsNotFound
(
err
)
{
if
apierrors
.
IsNotFound
(
err
)
{
glog
.
V
(
2
)
.
Infof
(
"Pod %s/%s was not found"
,
podNamespace
,
podName
)
return
false
,
nil
return
false
,
nil
}
}
if
err
!=
nil
{
if
err
!=
nil
{
...
@@ -362,6 +363,7 @@ func podRunning(c *client.Client, podNamespace string, podName string) wait.Cond
...
@@ -362,6 +363,7 @@ func podRunning(c *client.Client, podNamespace string, podName string) wait.Cond
return
false
,
nil
return
false
,
nil
}
}
if
pod
.
Status
.
Phase
!=
api
.
PodRunning
{
if
pod
.
Status
.
Phase
!=
api
.
PodRunning
{
glog
.
V
(
2
)
.
Infof
(
"Pod %s/%s is not running. In phase %q"
,
podNamespace
,
podName
,
pod
.
Status
.
Phase
)
return
false
,
nil
return
false
,
nil
}
}
return
true
,
nil
return
true
,
nil
...
...
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