Commit 38195704 authored by Michail Kargakis's avatar Michail Kargakis

Add more logs in the progress check path

parent d953402c
...@@ -763,6 +763,7 @@ func (dc *DeploymentController) checkNextItemForProgress() bool { ...@@ -763,6 +763,7 @@ func (dc *DeploymentController) checkNextItemForProgress() bool {
utilruntime.HandleError(err) utilruntime.HandleError(err)
} }
if err == nil && needsResync { if err == nil && needsResync {
glog.V(2).Infof("Deployment %q has failed progressing - syncing it back to the main queue for an update", key.(string))
dc.queue.AddRateLimited(key) dc.queue.AddRateLimited(key)
} }
dc.progressQueue.Forget(key) dc.progressQueue.Forget(key)
...@@ -796,5 +797,6 @@ func (dc *DeploymentController) checkForProgress(key string) (bool, error) { ...@@ -796,5 +797,6 @@ func (dc *DeploymentController) checkForProgress(key string) (bool, error) {
if err != nil { if err != nil {
return false, err return false, err
} }
glog.V(2).Infof("Syncing deployment %q for a progress check", key)
return dc.hasFailed(d) return dc.hasFailed(d)
} }
...@@ -158,7 +158,7 @@ func (dc *DeploymentController) syncRolloutStatus(allRSs []*extensions.ReplicaSe ...@@ -158,7 +158,7 @@ func (dc *DeploymentController) syncRolloutStatus(allRSs []*extensions.ReplicaSe
currentCond != nil { currentCond != nil {
after := time.Now().Add(time.Duration(*d.Spec.ProgressDeadlineSeconds) * time.Second).Sub(currentCond.LastUpdateTime.Time) after := time.Now().Add(time.Duration(*d.Spec.ProgressDeadlineSeconds) * time.Second).Sub(currentCond.LastUpdateTime.Time)
glog.V(4).Infof("Queueing up deployment %q for a progress check after %ds", d.Name, int(after.Seconds())) glog.V(2).Infof("Queueing up deployment %q for a progress check after %ds", d.Name, int(after.Seconds()))
dc.checkProgressAfter(d, after) dc.checkProgressAfter(d, after)
} }
return nil return nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment