controller: Log when a node has been updated
The MCC logs show when we tell a node to start, but don't show us
when it's done.  This helps the MCC logs be a centralized
aggregate of events.
Doing this now to aid debugging slowness in updates in our `e2e-aws-op`
test suite.
@@ -200,7 +200,14 @@ func (ctrl *Controller) updateNode(old, cur interface{}) {
if pool == nil {
return
}
+
+ // Specifically log when a node has completed an update so the MCC logs are a useful central aggregate of state changes
+ if oldNode.Annotations[daemonconsts.CurrentMachineConfigAnnotationKey] != oldNode.Annotations[daemonconsts.DesiredMachineConfigAnnotationKey] &&
+ curNode.Annotations[daemonconsts.CurrentMachineConfigAnnotationKey] == curNode.Annotations[daemonconsts.DesiredMachineConfigAnnotationKey] {
+ glog.Infof("Pool %s: node %s has completed update to %s", pool.Name, curNode.Name, curNode.Annotations[daemonconsts.DesiredMachineConfigAnnotationKey])
+ } else {
glog.V(4).Infof("Node %s updated", curNode.Name)
+ }
ctrl.enqueueMachineConfigPool(pool)
}
