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
5f6699eb
Commit
5f6699eb
authored
Nov 28, 2017
by
Seth Jennings
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kubelet: include runtime error in event on CreatePodSandbox failure
parent
85f0a1ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
kuberuntime_manager.go
pkg/kubelet/kuberuntime/kuberuntime_manager.go
+7
-7
No files found.
pkg/kubelet/kuberuntime/kuberuntime_manager.go
View file @
5f6699eb
...
@@ -645,20 +645,20 @@ func (m *kubeGenericRuntimeManager) SyncPod(pod *v1.Pod, _ v1.PodStatus, podStat
...
@@ -645,20 +645,20 @@ func (m *kubeGenericRuntimeManager) SyncPod(pod *v1.Pod, _ v1.PodStatus, podStat
if
err
!=
nil
{
if
err
!=
nil
{
createSandboxResult
.
Fail
(
kubecontainer
.
ErrCreatePodSandbox
,
msg
)
createSandboxResult
.
Fail
(
kubecontainer
.
ErrCreatePodSandbox
,
msg
)
glog
.
Errorf
(
"createPodSandbox for pod %q failed: %v"
,
format
.
Pod
(
pod
),
err
)
glog
.
Errorf
(
"createPodSandbox for pod %q failed: %v"
,
format
.
Pod
(
pod
),
err
)
ref
,
err
:=
ref
.
GetReference
(
legacyscheme
.
Scheme
,
pod
)
ref
,
ref
err
:=
ref
.
GetReference
(
legacyscheme
.
Scheme
,
pod
)
if
err
!=
nil
{
if
ref
err
!=
nil
{
glog
.
Errorf
(
"Couldn't make a ref to pod %q: '%v'"
,
format
.
Pod
(
pod
),
err
)
glog
.
Errorf
(
"Couldn't make a ref to pod %q: '%v'"
,
format
.
Pod
(
pod
),
ref
err
)
}
}
m
.
recorder
.
Eventf
(
ref
,
v1
.
EventTypeWarning
,
events
.
FailedCreatePodSandBox
,
"Failed create pod sandbox
."
)
m
.
recorder
.
Eventf
(
ref
,
v1
.
EventTypeWarning
,
events
.
FailedCreatePodSandBox
,
"Failed create pod sandbox
: %v"
,
err
)
return
return
}
}
glog
.
V
(
4
)
.
Infof
(
"Created PodSandbox %q for pod %q"
,
podSandboxID
,
format
.
Pod
(
pod
))
glog
.
V
(
4
)
.
Infof
(
"Created PodSandbox %q for pod %q"
,
podSandboxID
,
format
.
Pod
(
pod
))
podSandboxStatus
,
err
:=
m
.
runtimeService
.
PodSandboxStatus
(
podSandboxID
)
podSandboxStatus
,
err
:=
m
.
runtimeService
.
PodSandboxStatus
(
podSandboxID
)
if
err
!=
nil
{
if
err
!=
nil
{
ref
,
err
:=
ref
.
GetReference
(
legacyscheme
.
Scheme
,
pod
)
ref
,
ref
err
:=
ref
.
GetReference
(
legacyscheme
.
Scheme
,
pod
)
if
err
!=
nil
{
if
ref
err
!=
nil
{
glog
.
Errorf
(
"Couldn't make a ref to pod %q: '%v'"
,
format
.
Pod
(
pod
),
err
)
glog
.
Errorf
(
"Couldn't make a ref to pod %q: '%v'"
,
format
.
Pod
(
pod
),
ref
err
)
}
}
m
.
recorder
.
Eventf
(
ref
,
v1
.
EventTypeWarning
,
events
.
FailedStatusPodSandBox
,
"Unable to get pod sandbox status: %v"
,
err
)
m
.
recorder
.
Eventf
(
ref
,
v1
.
EventTypeWarning
,
events
.
FailedStatusPodSandBox
,
"Unable to get pod sandbox status: %v"
,
err
)
glog
.
Errorf
(
"Failed to get pod sandbox status: %v; Skipping pod %q"
,
err
,
format
.
Pod
(
pod
))
glog
.
Errorf
(
"Failed to get pod sandbox status: %v; Skipping pod %q"
,
err
,
format
.
Pod
(
pod
))
...
...
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