Browse Source

Added check against nodes_todo

feature/gpu-detector
Egon Rijpkema 3 years ago
parent
commit
2622037ea0
  1. 4
      remount_apps.py

4
remount_apps.py

@ -129,6 +129,10 @@ if __name__ == '__main__': @@ -129,6 +129,10 @@ if __name__ == '__main__':
# remount /apps on the drained nodes.
for drained_node in filter(lambda n: n.state == 'drained', nodes):
if drained_node.hostname not in nodes_todo:
# Maybe drained for another reason.
logger.info(f'Drained node {drained_node.hostname} not in nodes_todo.')
continue
update_mountpoint(drained_node)
proc = run([
'scontrol', 'update',

Loading…
Cancel
Save