@@ -260,16 +260,16 @@ func (p *PriorityQueue) Add(pod *v1.Pod) error {
260
260
defer p .lock .Unlock ()
261
261
pInfo := p .newPodInfo (pod )
262
262
if err := p .activeQ .Add (pInfo ); err != nil {
263
- klog .Errorf ("Error adding pod %v/%v to the scheduling queue: %v" , pod . Namespace , pod . Name , err )
263
+ klog .Errorf ("Error adding pod %v to the scheduling queue: %v" , nsNameForPod ( pod ) , err )
264
264
return err
265
265
}
266
266
if p .unschedulableQ .get (pod ) != nil {
267
- klog .Errorf ("Error: pod %v/%v is already in the unschedulable queue." , pod . Namespace , pod . Name )
267
+ klog .Errorf ("Error: pod %v is already in the unschedulable queue." , nsNameForPod ( pod ) )
268
268
p .unschedulableQ .delete (pod )
269
269
}
270
270
// Delete pod from backoffQ if it is backing off
271
271
if err := p .podBackoffQ .Delete (pInfo ); err == nil {
272
- klog .Errorf ("Error: pod %v/%v is already in the podBackoff queue." , pod . Namespace , pod . Name )
272
+ klog .Errorf ("Error: pod %v is already in the podBackoff queue." , nsNameForPod ( pod ) )
273
273
}
274
274
metrics .SchedulerQueueIncomingPods .WithLabelValues ("active" , PodAdd ).Inc ()
275
275
p .nominatedPods .add (pod , "" )
@@ -329,16 +329,16 @@ func (p *PriorityQueue) AddUnschedulableIfNotPresent(pInfo *framework.PodInfo, p
329
329
defer p .lock .Unlock ()
330
330
pod := pInfo .Pod
331
331
if p .unschedulableQ .get (pod ) != nil {
332
- return fmt .Errorf ("pod is already present in unschedulableQ" )
332
+ return fmt .Errorf ("pod: %v is already present in unschedulable queue" , nsNameForPod ( pod ) )
333
333
}
334
334
335
335
// Refresh the timestamp since the pod is re-added.
336
336
pInfo .Timestamp = p .clock .Now ()
337
337
if _ , exists , _ := p .activeQ .Get (pInfo ); exists {
338
- return fmt .Errorf ("pod is already present in the activeQ" )
338
+ return fmt .Errorf ("pod: %v is already present in the active queue" , nsNameForPod ( pod ) )
339
339
}
340
340
if _ , exists , _ := p .podBackoffQ .Get (pInfo ); exists {
341
- return fmt .Errorf ("pod is already present in the backoffQ" )
341
+ return fmt .Errorf ("pod %v is already present in the backoff queue" , nsNameForPod ( pod ) )
342
342
}
343
343
344
344
// Every unschedulable pod is subject to backoff timers.
@@ -373,7 +373,7 @@ func (p *PriorityQueue) flushBackoffQCompleted() {
373
373
pod := rawPodInfo .(* framework.PodInfo ).Pod
374
374
boTime , found := p .podBackoff .GetBackoffTime (nsNameForPod (pod ))
375
375
if ! found {
376
- klog .Errorf ("Unable to find backoff value for pod %v in backoffQ " , nsNameForPod (pod ))
376
+ klog .Errorf ("Unable to find backoff value for pod %v in backoff queue " , nsNameForPod (pod ))
377
377
p .podBackoffQ .Pop ()
378
378
p .activeQ .Add (rawPodInfo )
379
379
metrics .SchedulerQueueIncomingPods .WithLabelValues ("active" , BackoffComplete ).Inc ()
@@ -386,7 +386,7 @@ func (p *PriorityQueue) flushBackoffQCompleted() {
386
386
}
387
387
_ , err := p .podBackoffQ .Pop ()
388
388
if err != nil {
389
- klog .Errorf ("Unable to pop pod %v from backoffQ despite backoff completion." , nsNameForPod (pod ))
389
+ klog .Errorf ("Unable to pop pod %v from backoff queue despite backoff completion." , nsNameForPod (pod ))
390
390
return
391
391
}
392
392
p .activeQ .Add (rawPodInfo )
0 commit comments