Log when pod expires in scheduler

This commit is contained in:
Wojciech Tyczynski 2016-11-22 13:16:35 +01:00
parent e6c57c6569
commit f5ced35887

View File

@ -322,8 +322,9 @@ func (cache *schedulerCache) cleanupAssumedPods(now time.Time) {
panic("Key found in assumed set but not in podStates. Potentially a logical error.")
}
if now.After(*ps.deadline) {
glog.Warningf("Pod %s/%s expired", ps.pod.Namespace, ps.pod.Name)
if err := cache.expirePod(key, ps); err != nil {
glog.Errorf(" expirePod failed for %s: %v", key, err)
glog.Errorf("ExpirePod failed for %s: %v", key, err)
}
}
}