You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2014/02/12 16:41:54 UTC

[1/2] git commit: Update vCloud 'Powered Off' Node state mapping introduced in v0.14.0

Updated Branches:
  refs/heads/trunk 77fb3491e -> 38111c5ac


Update vCloud 'Powered Off' Node state mapping introduced in v0.14.0

vCloud state 8 is powered off, can be turned back on. NodeState.TERMINATED now means 'cant be started later on'

Signed-off-by: Tomaz Muraus <to...@apache.org>


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

Branch: refs/heads/trunk
Commit: e00db45fb3fdd490ea2fcae575d876b243e9d56e
Parents: 77fb349
Author: Ash Berlin <as...@firemirror.com>
Authored: Tue Feb 11 12:19:11 2014 +0000
Committer: Tomaz Muraus <to...@apache.org>
Committed: Wed Feb 12 16:34:23 2014 +0100

----------------------------------------------------------------------
 libcloud/compute/drivers/vcloud.py   | 2 +-
 libcloud/test/compute/test_vcloud.py | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/e00db45f/libcloud/compute/drivers/vcloud.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/vcloud.py b/libcloud/compute/drivers/vcloud.py
index 3b289d4..7bf78b4 100644
--- a/libcloud/compute/drivers/vcloud.py
+++ b/libcloud/compute/drivers/vcloud.py
@@ -947,7 +947,7 @@ class VCloud_1_5_NodeDriver(VCloudNodeDriver):
                       '5': NodeState.RUNNING,
                       '6': NodeState.UNKNOWN,
                       '7': NodeState.UNKNOWN,
-                      '8': NodeState.TERMINATED,
+                      '8': NodeState.STOPPED,
                       '9': NodeState.UNKNOWN,
                       '10': NodeState.UNKNOWN}
 

http://git-wip-us.apache.org/repos/asf/libcloud/blob/e00db45f/libcloud/test/compute/test_vcloud.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_vcloud.py b/libcloud/test/compute/test_vcloud.py
index 2682cf3..787fa9f 100644
--- a/libcloud/test/compute/test_vcloud.py
+++ b/libcloud/test/compute/test_vcloud.py
@@ -208,13 +208,13 @@ class VCloud_1_5_Tests(unittest.TestCase, TestCaseMixin):
         node = self.driver.ex_undeploy_node(
             Node('https://test/api/vApp/undeployTest', 'testNode', state=0,
                  public_ips=[], private_ips=[], driver=self.driver))
-        self.assertEqual(node.state, NodeState.TERMINATED)
+        self.assertEqual(node.state, NodeState.STOPPED)
 
     def test_ex_undeploy_with_error(self):
         node = self.driver.ex_undeploy_node(
             Node('https://test/api/vApp/undeployErrorTest', 'testNode',
                  state=0, public_ips=[], private_ips=[], driver=self.driver))
-        self.assertEqual(node.state, NodeState.TERMINATED)
+        self.assertEqual(node.state, NodeState.STOPPED)
 
     def test_ex_find_node(self):
         node = self.driver.ex_find_node('testNode')


[2/2] git commit: Update CHANGES.

Posted by to...@apache.org.
Update CHANGES.


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

Branch: refs/heads/trunk
Commit: 38111c5aca1861a2b76052340b01f241dc9dde80
Parents: e00db45
Author: Tomaz Muraus <to...@apache.org>
Authored: Wed Feb 12 16:35:08 2014 +0100
Committer: Tomaz Muraus <to...@apache.org>
Committed: Wed Feb 12 16:35:08 2014 +0100

----------------------------------------------------------------------
 CHANGES.rst | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/38111c5a/CHANGES.rst
----------------------------------------------------------------------
diff --git a/CHANGES.rst b/CHANGES.rst
index 7e55df2..65b95d7 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -26,6 +26,10 @@ Compute
   (LIBCLOUD-516, GITHUB-249)
   [Chris DeRamus]
 
+- Map "Powered Off" state in the vCloud driver from "TERMINATED" to "STOPPED".
+  (GITHUB-251)
+  [Ash Berlin]
+
 Changes with Apache Libcloud 0.14.1
 -----------------------------------