incubator-libcloud mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip Schwartz (JIRA)" <j...@apache.org>
Subject [libcloud] [jira] [Created] (LIBCLOUD-85) Exception handling in cascaded function call in ec2 create_node is needed.
Date Wed, 11 May 2011 17:33:47 GMT
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