libcloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip Schwartz (JIRA)" <j...@apache.org>
Subject [libcloud] [jira] [Resolved] (LIBCLOUD-85) Exception handling in cascaded function call in ec2 create_node is needed.
Date Wed, 11 May 2011 19:03:48 GMT

     [ 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

Mime
View raw message