libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [1/2] libcloud git commit: Cloudstack: add migrating state to node and volume
Date Fri, 05 Aug 2016 02:01:06 GMT
Repository: libcloud
Updated Branches:
  refs/heads/trunk 90f967c64 -> 0dced6dae


Cloudstack: add migrating state to node and volume

Closes #847


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

Branch: refs/heads/trunk
Commit: fb2936afd2428a135e966ea4064b8aeb8209779d
Parents: 90f967c
Author: Marc-Aurèle Brothier <m@brothier.org>
Authored: Thu Aug 4 13:05:54 2016 +0200
Committer: Anthony Shaw <anthonyshaw@apache.org>
Committed: Fri Aug 5 11:59:00 2016 +1000

----------------------------------------------------------------------
 libcloud/compute/drivers/cloudstack.py | 4 +++-
 libcloud/compute/types.py              | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/fb2936af/libcloud/compute/drivers/cloudstack.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/cloudstack.py b/libcloud/compute/drivers/cloudstack.py
index aff5192..44ef8f5 100644
--- a/libcloud/compute/drivers/cloudstack.py
+++ b/libcloud/compute/drivers/cloudstack.py
@@ -1235,6 +1235,7 @@ class CloudStackNodeDriver(CloudStackDriverMixIn, NodeDriver):
     NODE_STATE_MAP = {
         'Running': NodeState.RUNNING,
         'Starting': NodeState.REBOOTING,
+        'Migrating': NodeState.MIGRATING,
         'Stopped': NodeState.STOPPED,
         'Stopping': NodeState.PENDING,
         'Destroyed': NodeState.TERMINATED,
@@ -1251,7 +1252,8 @@ class CloudStackNodeDriver(CloudStackDriverMixIn, NodeDriver):
         'Allocated': StorageVolumeState.AVAILABLE,
         'Ready': StorageVolumeState.AVAILABLE,
         'Snapshotting': StorageVolumeState.BACKUP,
-        'UploadError': StorageVolumeState.ERROR
+        'UploadError': StorageVolumeState.ERROR,
+        'Migrating': StorageVolumeState.MIGRATING
     }
 
     def __init__(self, key, secret=None, secure=True, host=None,

http://git-wip-us.apache.org/repos/asf/libcloud/blob/fb2936af/libcloud/compute/types.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/types.py b/libcloud/compute/types.py
index 49f63a3..740b688 100644
--- a/libcloud/compute/types.py
+++ b/libcloud/compute/types.py
@@ -271,6 +271,7 @@ class NodeState(Type):
     ERROR = 'error'
     PAUSED = 'paused'
     RECONFIGURING = 'reconfiguring'
+    MIGRATING = 'migrating'
 
 
 class StorageVolumeState(Type):
@@ -286,6 +287,7 @@ class StorageVolumeState(Type):
     BACKUP = 'backup'
     ATTACHING = 'attaching'
     UNKNOWN = 'unknown'
+    MIGRATING = 'migrating'
 
 
 class VolumeSnapshotState(Type):


Mime
View raw message