[ARVADOS] created: da8c9048bf4f3a36f5691aa52e56e2db672dff3a

Git user git at public.curoverse.com
Fri Mar 17 13:27:16 EDT 2017


        at  da8c9048bf4f3a36f5691aa52e56e2db672dff3a (commit)


commit da8c9048bf4f3a36f5691aa52e56e2db672dff3a
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Fri Mar 17 13:27:03 2017 -0400

    11288: Slurm requires reason to put node in DOWN state.

diff --git a/services/nodemanager/arvnodeman/computenode/dispatch/slurm.py b/services/nodemanager/arvnodeman/computenode/dispatch/slurm.py
index be24e0f..0c8ddc2 100644
--- a/services/nodemanager/arvnodeman/computenode/dispatch/slurm.py
+++ b/services/nodemanager/arvnodeman/computenode/dispatch/slurm.py
@@ -79,7 +79,7 @@ class ComputeNodeShutdownActor(SlurmMixin, ShutdownActorBase):
 
     def _destroy_node(self):
         if self._nodename:
-            self._set_node_state(self._nodename, 'DOWN')
+            self._set_node_state(self._nodename, 'DOWN', 'Reason=Node Manager shutdown')
         super(ComputeNodeShutdownActor, self)._destroy_node()
 
 

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list