Exception handling in cascaded function call in ec2 create_node is needed.
--------------------------------------------------------------------------
Key: LIBCLOUD-85
URL: https://issues.apache.org/jira/browse/LIBCLOUD-85
Project: Libcloud
Issue Type: Bug
Components: Compute
Affects Versions: 0.4.1, 0.5.0
Reporter: Philip Schwartz
In create_node for ec2, a call to ex_create_tags.
for node in nodes:
self.ex_create_tags(node=node, tags={'Name': kwargs['name']})
This should catch an exception and clean up the failed create if an exception
is thrown. Currently when the ex_create_tags fails due to a node not being
registered correctly yet (but created), an exception of node id does not exist
is thrown. This cascades as a failure of the full call to any code calling
create_node when in fact the node was created.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira