nodecontroller: Log when a node changes pool
A customer is implementing "control upgrade of group of nodes"
by changing pools.  I think zone ordering is the right fix to this,
but let's be verbose and explicit when a node changes pool so it's
easier to debug things.
@@ -460,6 +460,12 @@ func (ctrl *Controller) updateNode(old, cur interface{}) {
}
glog.V(4).Infof("Node %s updated", curNode.Name)
+ // Let's be verbose when a node changes pool
+ oldPool, err := ctrl.getPrimaryPoolForNode(oldNode)
+ if err == nil && oldPool.Name != pool.Name {
+ ctrl.logPoolNode(pool, curNode, "changed from pool %s", oldPool.Name)
+ }
+
var changed bool
oldReadyErr := checkNodeReady(oldNode)
newReadyErr := checkNodeReady(curNode)
