8872: Bugfix Node Manager's node search after node create failure.
authorBrett Smith <brett@curoverse.com>
Wed, 6 Apr 2016 18:23:11 +0000 (14:23 -0400)
committerBrett Smith <brett@curoverse.com>
Thu, 7 Apr 2016 21:30:14 +0000 (17:30 -0400)
commitc244fbb0d880b45a44300e9ed650a32a954fd7d9
treece36f473de68b26c4f6af3189cd3744e8601f477
parent86996de865c2b4d395c2a3977b05f7278924f627
8872: Bugfix Node Manager's node search after node create failure.

search_for raises ValueError if the thing isn't found.  create_node
seems to be expecting it to return None instead.  Bring create_node in
line with search_for's documented API.

In order to get the tests to pass, I had to separate out the raw
search code from the caching, and use that in create_node.  Otherwise,
the cloud node from the "node found" test would be cached and returned
in the "node not found" test.
services/nodemanager/arvnodeman/computenode/driver/__init__.py
services/nodemanager/arvnodeman/computenode/driver/azure.py
services/nodemanager/arvnodeman/computenode/driver/ec2.py
services/nodemanager/arvnodeman/computenode/driver/gce.py
services/nodemanager/tests/testutil.py