ceph: improve watcher debug message when node is not tolerable

When a node is not tolerable, also output the node name so it's clear
which not it is which is not tolerable.

Signed-off-by: Thomas Bechtold <tbechtold@suse.com>
This commit is contained in:
Thomas Bechtold
2020-10-12 14:19:17 +02:00
parent 010a2804f6
commit ede4b9cb1a
+1 -1
View File
@@ -63,7 +63,7 @@ func (c *clientCluster) onK8sNode(object runtime.Object) bool {
}
if !k8sutil.NodeIsTolerable(*node, cephv1.GetOSDPlacement(cluster.Spec.Placement).Tolerations, false) {
logger.Debugf("node watcher: node since it is not tolerable for cluster %q, skipping", cluster.Namespace)
logger.Debugf("node watcher: node %q is not tolerable for cluster %q, skipping", node.Name, cluster.Namespace)
return false
}