From b7edfda82857fd65867f3de7b23bb7d6fda112c7 Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Tue, 28 Feb 2017 10:17:33 -0500 Subject: [PATCH] volumes: Add logging when removing node fails --- pkg/controller/volume/attachdetach/attach_detach_controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/controller/volume/attachdetach/attach_detach_controller.go b/pkg/controller/volume/attachdetach/attach_detach_controller.go index 4d9487ee48b..e2175cd5155 100644 --- a/pkg/controller/volume/attachdetach/attach_detach_controller.go +++ b/pkg/controller/volume/attachdetach/attach_detach_controller.go @@ -309,7 +309,8 @@ func (adc *attachDetachController) nodeDelete(obj interface{}) { nodeName := types.NodeName(node.Name) if err := adc.desiredStateOfWorld.DeleteNode(nodeName); err != nil { - glog.V(10).Infof("%v", err) + // This might happen during drain, but we still want it to appear in our logs + glog.Infof("error removing node %q from desired-state-of-world: %v", nodeName, err) } adc.processVolumesInUse(nodeName, node.Status.VolumesInUse)