libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Devin Bayer (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LIBCLOUD-708) Support 'stopping' and 'stopped' InstanceState
Date Mon, 11 May 2015 14:08:59 GMT
Devin Bayer created LIBCLOUD-708:
------------------------------------

             Summary: Support 'stopping' and 'stopped' InstanceState
                 Key: LIBCLOUD-708
                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-708
             Project: Libcloud
          Issue Type: Bug
          Components: Core
            Reporter: Devin Bayer


Amazon can return a InstanceState of 'stopping' and when libcloud receives that it throws
a KeyError since it's not in the NODE_STATE_MAP. It should at least treat these states as
unknown.

class BaseEC2NodeDriver(NodeDriver):
    NODE_STATE_MAP = {
        'pending': NodeState.PENDING,
        'running': NodeState.RUNNING,
        'shutting-down': NodeState.UNKNOWN,
        'terminated': NodeState.TERMINATED
    }

See http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_InstanceState.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message