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
3b4f250c
Commit
3b4f250c
authored
Jul 26, 2018
by
foxyriver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix error log
parent
ad97a03e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
scheduling_queue.go
pkg/scheduler/core/scheduling_queue.go
+3
-3
factory.go
pkg/scheduler/factory/factory.go
+1
-1
scheduler.go
pkg/scheduler/scheduler.go
+1
-1
No files found.
pkg/scheduler/core/scheduling_queue.go
View file @
3b4f250c
...
...
@@ -267,7 +267,7 @@ func (p *PriorityQueue) AddIfNotPresent(pod *v1.Pod) error {
}
err
:=
p
.
activeQ
.
Add
(
pod
)
if
err
!=
nil
{
glog
.
Errorf
(
"Error adding pod %v
to the scheduling queue: %v"
,
pod
.
Name
,
err
)
glog
.
Errorf
(
"Error adding pod %v
/%v to the scheduling queue: %v"
,
pod
.
Namespace
,
pod
.
Name
,
err
)
}
else
{
p
.
addNominatedPodIfNeeded
(
pod
)
p
.
cond
.
Broadcast
()
...
...
@@ -410,7 +410,7 @@ func (p *PriorityQueue) MoveAllToActiveQueue() {
defer
p
.
lock
.
Unlock
()
for
_
,
pod
:=
range
p
.
unschedulableQ
.
pods
{
if
err
:=
p
.
activeQ
.
Add
(
pod
);
err
!=
nil
{
glog
.
Errorf
(
"Error adding pod %v
to the scheduling queue: %v"
,
pod
.
Name
,
err
)
glog
.
Errorf
(
"Error adding pod %v
/%v to the scheduling queue: %v"
,
pod
.
Namespace
,
pod
.
Name
,
err
)
}
}
p
.
unschedulableQ
.
clear
()
...
...
@@ -425,7 +425,7 @@ func (p *PriorityQueue) movePodsToActiveQueue(pods []*v1.Pod) {
if
err
:=
p
.
activeQ
.
Add
(
pod
);
err
==
nil
{
p
.
unschedulableQ
.
delete
(
pod
)
}
else
{
glog
.
Errorf
(
"Error adding pod %v
to the scheduling queue: %v"
,
pod
.
Name
,
err
)
glog
.
Errorf
(
"Error adding pod %v
/%v to the scheduling queue: %v"
,
pod
.
Namespace
,
pod
.
Name
,
err
)
}
}
p
.
receivedMoveRequest
=
true
...
...
pkg/scheduler/factory/factory.go
View file @
3b4f250c
...
...
@@ -1191,7 +1191,7 @@ func (c *configFactory) getPluginArgs() (*PluginFactoryArgs, error) {
func
(
c
*
configFactory
)
getNextPod
()
*
v1
.
Pod
{
pod
,
err
:=
c
.
podQueue
.
Pop
()
if
err
==
nil
{
glog
.
V
(
4
)
.
Infof
(
"About to try and schedule pod %v
"
,
pod
.
Name
)
glog
.
V
(
4
)
.
Infof
(
"About to try and schedule pod %v
/%v"
,
pod
.
Namespace
,
pod
.
Name
)
return
pod
}
glog
.
Errorf
(
"Error while retrieving next pod from scheduling queue: %v"
,
err
)
...
...
pkg/scheduler/scheduler.go
View file @
3b4f250c
...
...
@@ -232,7 +232,7 @@ func (sched *Scheduler) preempt(preemptor *v1.Pod, scheduleErr error) (string, e
nodeName
=
node
.
Name
err
=
sched
.
config
.
PodPreemptor
.
SetNominatedNodeName
(
preemptor
,
nodeName
)
if
err
!=
nil
{
glog
.
Errorf
(
"Error in preemption process. Cannot update pod %v
annotations: %v"
,
preemptor
.
Name
,
err
)
glog
.
Errorf
(
"Error in preemption process. Cannot update pod %v
/%v annotations: %v"
,
preemptor
.
Namespace
,
preemptor
.
Name
,
err
)
return
""
,
err
}
for
_
,
victim
:=
range
victims
{
...
...
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