4751: Node Manager considers ping times for stricter node pairing.
authorBrett Smith <brett@curoverse.com>
Mon, 2 Mar 2015 16:27:59 +0000 (11:27 -0500)
committerBrett Smith <brett@curoverse.com>
Mon, 2 Mar 2015 19:07:53 +0000 (14:07 -0500)
commit212b58706f2dd0f5fc925cf058e384ca66149d75
treedcea37ef121cd4c292bfa74e76c198da12ea87da
parent3e5f2c7fef459bdbfda9da8f2eefd1d2bbe8e384
4751: Node Manager considers ping times for stricter node pairing.

Because the pairing decision is currently based on IP address alone,
Node Manager will occasionally pair a cloud node with the wrong
Arvados node after an IP address is reused.  Fix that by bringing the
node's first_ping_at into consideration: if it's older than the cloud
node, refuse to pair.
services/nodemanager/arvnodeman/computenode/dispatch/__init__.py
services/nodemanager/tests/test_computenode_dispatch.py
services/nodemanager/tests/test_daemon.py
services/nodemanager/tests/testutil.py