7286: Add comments clarifying arvados_node_missing() and broken(). Also bump
[arvados.git] / services / nodemanager / arvnodeman / computenode / driver / azure.py
index ca6ed7c9786a258e8e72ef62894652d521342ca8..b1ec5e6abc95e923e1b6583d3c33e49a3247368d 100644 (file)
@@ -84,6 +84,8 @@ class ComputeNodeDriver(BaseComputeNodeDriver):
 
     def broken(self, cloud_node):
         """Return true if libcloud has indicated the node is in a "broken" state."""
+        # UNKNOWN means the node state is unrecognized, which in practice means some combination
+        # of failure that the Azure libcloud driver doesn't know how to interpret.
         return (cloud_node.state in (cloud_types.NodeState.ERROR, cloud_types.NodeState.UNKNOWN))
 
     @classmethod