libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject git commit: Add two new default node states:
Date Mon, 28 Jul 2014 14:08:40 GMT
Repository: libcloud
Updated Branches:
  refs/heads/trunk 075383509 -> b09c1bef7


Add two new default node states:

- NodeState.SUSPENDED
- NodeState.ERROR


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

Branch: refs/heads/trunk
Commit: b09c1bef78e13688e3c5739e5fd620e226a16672
Parents: 0753835
Author: Tomaz Muraus <tomaz@apache.org>
Authored: Mon Jul 28 16:07:50 2014 +0200
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Mon Jul 28 16:07:50 2014 +0200

----------------------------------------------------------------------
 CHANGES.rst               | 4 ++++
 libcloud/compute/types.py | 6 ++++++
 2 files changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/b09c1bef/CHANGES.rst
----------------------------------------------------------------------
diff --git a/CHANGES.rst b/CHANGES.rst
index bef4c9d..4d7842e 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -7,6 +7,10 @@ Changes with Apache Libcloud in development
 Compute
 ~~~~~~~
 
+- Add two new default node states - ``NodeState.SUSPENDED`` and
+  ``NodeState.ERROR``.
+  [Tomaz Muraus]
+
 - Fix to join networks properly in ``deploy_node`` in the CloudStack
   driver.
   (LIBCLOUD-593, GITUHB-336)

http://git-wip-us.apache.org/repos/asf/libcloud/blob/b09c1bef/libcloud/compute/types.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/types.py b/libcloud/compute/types.py
index 9f7a308..602d8e8 100644
--- a/libcloud/compute/types.py
+++ b/libcloud/compute/types.py
@@ -184,6 +184,10 @@ class NodeState(object):
     :cvar TERMINATED: Node is terminated. This node can't be started later on.
     :cvar STOPPED: Node is stopped. This node can be started later on.
     :cvar PENDING: Node is pending.
+    :cvar STOPPED: Node is stopped.
+    :cvar SUSPENDED: Node is suspended.
+    :cvar ERROR: Node is an error state. Usually no operations can be performed
+                 on the node once it ends up in the error state.
     :cvar UNKNOWN: Node state is unknown.
     """
     RUNNING = 0
@@ -192,6 +196,8 @@ class NodeState(object):
     PENDING = 3
     UNKNOWN = 4
     STOPPED = 5
+    SUSPENDED = 6
+    ERROR = 7
 
 
 class Architecture(object):


Mime
View raw message