12199: Keep SLURM's node properties up to date.
authorTom Clegg <tclegg@veritasgenetics.com>
Tue, 30 Jan 2018 18:33:12 +0000 (13:33 -0500)
committerTom Clegg <tclegg@veritasgenetics.com>
Tue, 30 Jan 2018 18:33:12 +0000 (13:33 -0500)
commit3ccc70f4bb06bab6c0b3c71f555cba24cc5c6a47
tree3ef9c2a21c913694895f81d0fd768265ff00305a
parent5120666e073018f6821bab07f0bbb788098f97b1
12199: Keep SLURM's node properties up to date.

Change the semantics of ComputeNodeUpdateActor.sync_node so it gets
called every time a new Arvados node record appears, even if hostnames
match. The base actor's implementation now compares hostnames itself
before calling the cloud driver.

This allows the slurm update actor's sync_node method to sync SLURM
state periodically, even if hostnames don't go out of sync.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>
services/nodemanager/arvnodeman/computenode/dispatch/__init__.py
services/nodemanager/arvnodeman/computenode/dispatch/slurm.py
services/nodemanager/arvnodeman/daemon.py
services/nodemanager/tests/test_computenode_dispatch.py
services/nodemanager/tests/test_computenode_dispatch_slurm.py
services/nodemanager/tests/testutil.py