4670: Add a post-create hook to Node Manager for EC2 tagging.
authorBrett Smith <brett@curoverse.com>
Fri, 12 Dec 2014 21:16:39 +0000 (16:16 -0500)
committerBrett Smith <brett@curoverse.com>
Thu, 18 Dec 2014 21:19:50 +0000 (16:19 -0500)
commit5f401b4457cd085ce3ecc5b15c4dbaef5a3df749
treef845bf71164146ea4b3157836ac5beadea2c366d
parent6ab7cf882cd9a268374b880b5e55b4c8946406b4
4670: Add a post-create hook to Node Manager for EC2 tagging.

The previous code was relying on the post-create tagging in libcloud's
EC2 driver.  Unfortunately, that's not working out too well for us: if
it fails, you get no indication of that, and it doesn't get retried.
This moves the work up into Node Manager, where failures can be logged
and retried appropriately.

The retry support may be sufficient to resolve #4670.  If it's not,
then the additional logging will help us track down the root cause.
services/nodemanager/arvnodeman/computenode/dispatch/__init__.py
services/nodemanager/arvnodeman/computenode/driver/__init__.py
services/nodemanager/arvnodeman/computenode/driver/ec2.py
services/nodemanager/tests/test_computenode_dispatch.py
services/nodemanager/tests/test_computenode_driver_ec2.py