libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [1/2] git commit: Update OpenStack driver to map more node states to states recognized by Libcloud.
Date Tue, 19 Aug 2014 16:24:02 GMT
Repository: libcloud
Updated Branches:
  refs/heads/trunk c849b95af -> f3f600028


Update OpenStack driver to map more node states to states recognized by
Libcloud.

Patch by Chris DeRamus.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/52070382
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/52070382
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/52070382

Branch: refs/heads/trunk
Commit: 520703820c3fe7204ffefe75d2eca4c37998c1d2
Parents: c849b95
Author: Tomaz Muraus <tomaz@apache.org>
Authored: Tue Aug 19 13:43:47 2014 +0200
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Tue Aug 19 13:43:47 2014 +0200

----------------------------------------------------------------------
 CHANGES.rst                           | 4 ++++
 libcloud/compute/drivers/openstack.py | 4 +++-
 2 files changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/52070382/CHANGES.rst
----------------------------------------------------------------------
diff --git a/CHANGES.rst b/CHANGES.rst
index a7943bb..4a547aa 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -66,6 +66,10 @@ Compute
   (GITHUB-347)
   [Eddy Reyes]
 
+- Update OpenStack driver to map more node states to states recognized by
+  Libcloud.
+  [Chris DeRamus]
+
 Storage
 ~~~~~~~
 

http://git-wip-us.apache.org/repos/asf/libcloud/blob/52070382/libcloud/compute/drivers/openstack.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/openstack.py b/libcloud/compute/drivers/openstack.py
index 93834dc..af306e0 100644
--- a/libcloud/compute/drivers/openstack.py
+++ b/libcloud/compute/drivers/openstack.py
@@ -86,7 +86,8 @@ class OpenStackNodeDriver(NodeDriver, OpenStackDriverMixin):
         'BUILD': NodeState.PENDING,
         'REBUILD': NodeState.PENDING,
         'ACTIVE': NodeState.RUNNING,
-        'SUSPENDED': NodeState.TERMINATED,
+        'SUSPENDED': NodeState.STOPPED,
+        'SHUTOFF': NodeState.STOPPED,
         'DELETED': NodeState.TERMINATED,
         'QUEUE_RESIZE': NodeState.PENDING,
         'PREP_RESIZE': NodeState.PENDING,
@@ -98,6 +99,7 @@ class OpenStackNodeDriver(NodeDriver, OpenStackDriverMixin):
         'SHARE_IP': NodeState.PENDING,
         'SHARE_IP_NO_CONFIG': NodeState.PENDING,
         'DELETE_IP': NodeState.PENDING,
+        'ERROR': NodeState.ERROR,
         'UNKNOWN': NodeState.UNKNOWN
     }
 


Mime
View raw message