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