You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@libcloud.apache.org by "Philip Schwartz (JIRA)" <ji...@apache.org> on 2011/05/11 21:03:48 UTC

[libcloud] [jira] [Resolved] (LIBCLOUD-85) Exception handling in cascaded function call in ec2 create_node is needed.

     [ https://issues.apache.org/jira/browse/LIBCLOUD-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Philip Schwartz resolved LIBCLOUD-85.
-------------------------------------

    Resolution: Fixed

Resolved with Patch in comments and github pull request.

> 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